line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of Dist-Zilla-Stash-GitHub |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is Copyright (c) 2015 by Chris Weyl. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software, licensed under: |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# The GNU Lesser General Public License, Version 2.1, February 1999 |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
package Dist::Zilla::Stash::GitHub; |
11
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:RSRCHBOY'; |
12
|
|
|
|
|
|
|
# git description: 2e7a1cf |
13
|
|
|
|
|
|
|
$Dist::Zilla::Stash::GitHub::VERSION = '0.001'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# ABSTRACT: The great new Dist::Zilla::Stash::GitHub! |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
223847
|
use Moose; |
|
1
|
|
|
|
|
97295
|
|
|
1
|
|
|
|
|
9
|
|
18
|
1
|
|
|
1
|
|
5215
|
use namespace::autoclean; |
|
1
|
|
|
|
|
969
|
|
|
1
|
|
|
|
|
4
|
|
19
|
1
|
|
|
1
|
|
563
|
use MooseX::AttributeShortcuts; |
|
1
|
|
|
|
|
230874
|
|
|
1
|
|
|
|
|
6
|
|
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
0
|
|
sub mvp_aliases { { user => 'username', id => 'username', token => 'password' } } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has username => (is => 'rwp', isa => 'Str', required => 1); |
25
|
|
|
|
|
|
|
has password => (is => 'rwp', isa => 'Str', required => 1); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::Stash::Login'; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
30
|
|
|
|
|
|
|
!!42; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=pod |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=encoding UTF-8 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=for :stopwords Chris Weyl |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=for :stopwords Wishlist flattr flattr'ed gittip gittip'ed |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 NAME |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Dist::Zilla::Stash::GitHub - The great new Dist::Zilla::Stash::GitHub! |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 VERSION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This document describes version 0.001 of Dist::Zilla::Stash::GitHub - released May 10, 2015 as part of Dist-Zilla-Stash-GitHub. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 SYNOPSIS |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# in your ~/.dzil/config.ini |
53
|
|
|
|
|
|
|
[%GitHub] |
54
|
|
|
|
|
|
|
username = RsrchBoy |
55
|
|
|
|
|
|
|
password = la la la la la |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Right now, a bog-standard, simple little stash to keep one github token in a |
60
|
|
|
|
|
|
|
central location... As everything seems to be looking for one in different |
61
|
|
|
|
|
|
|
places, or keeping their own somewhere. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Ideally, this will be less zombie-like in the not-too-distant future, and if |
64
|
|
|
|
|
|
|
the id/token information is not embedded in one's C<~/.dzil/config.ini> it |
65
|
|
|
|
|
|
|
will be looked for in the usual suspect locations. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 username |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
String, read-write-private, required. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The GitHub username. 'user' or 'id' will be accepted as aliases. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 password |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
String, read-write-private, required. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The user's password. Or, B<preferably>, a distinct identity token. Seriously. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
'token' will be accepted as an alias. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=for Pod::Coverage mvp_aliases |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 TODO |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
* "Get smarter" about looking up our github id/token. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
* Keep our id/token in a distinct config file (optionally?) |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 SEE ALSO |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Please see those modules/websites for more information related to this module. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=over 4 |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=item * |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
L<Dist::Zilla::Role::Stash::Login|Dist::Zilla::Role::Stash::Login> |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=item * |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
L<https://github.com/settings/tokens|https://github.com/settings/tokens> |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=back |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head1 BUGS |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Please report any bugs or feature requests on the bugtracker website |
110
|
|
|
|
|
|
|
https://github.com/RsrchBoy/dist-zilla-stash-github/issues |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
When submitting a bug or request, please include a test-file or a |
113
|
|
|
|
|
|
|
patch to an existing test-file that illustrates the bug or desired |
114
|
|
|
|
|
|
|
feature. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head1 AUTHOR |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Chris Weyl <cweyl@alumni.drew.edu> |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 I'm a material boy in a material world |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=begin html |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
<a href="https://gratipay.com/RsrchBoy/"><img src="http://img.shields.io/gratipay/RsrchBoy.svg" /></a> |
125
|
|
|
|
|
|
|
<a href="http://bit.ly/rsrchboys-wishlist"><img src="http://wps.io/wp-content/uploads/2014/05/amazon_wishlist.resized.png" /></a> |
126
|
|
|
|
|
|
|
<a href="https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Fdist-zilla-stash-github&title=RsrchBoy's%20CPAN%20Dist-Zilla-Stash-GitHub&tags=%22RsrchBoy's%20Dist-Zilla-Stash-GitHub%20in%20the%20CPAN%22"><img src="http://api.flattr.com/button/flattr-badge-large.png" /></a> |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=end html |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Please note B<I do not expect to be gittip'ed or flattr'ed for this work>, |
131
|
|
|
|
|
|
|
rather B<it is simply a very pleasant surprise>. I largely create and release |
132
|
|
|
|
|
|
|
works like this because I need them or I find it enjoyable; however, don't let |
133
|
|
|
|
|
|
|
that stop you if you feel like it ;) |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
L<Flattr|https://flattr.com/submit/auto?user_id=RsrchBoy&url=https%3A%2F%2Fgithub.com%2FRsrchBoy%2Fdist-zilla-stash-github&title=RsrchBoy's%20CPAN%20Dist-Zilla-Stash-GitHub&tags=%22RsrchBoy's%20Dist-Zilla-Stash-GitHub%20in%20the%20CPAN%22>, |
136
|
|
|
|
|
|
|
L<Gratipay|https://gratipay.com/RsrchBoy/>, or indulge my |
137
|
|
|
|
|
|
|
L<Amazon Wishlist|http://bit.ly/rsrchboys-wishlist>... If and *only* if you so desire. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
This software is Copyright (c) 2015 by Chris Weyl. |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
This is free software, licensed under: |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
The GNU Lesser General Public License, Version 2.1, February 1999 |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=cut |