line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::GitHub::V3::Gitignore; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
7
|
use Moo; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.05'; |
6
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:FAYLAND'; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
340
|
use URI::Escape; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
259
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
with 'Net::GitHub::V3::Query'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub templates { |
13
|
0
|
|
|
0
|
1
|
|
my ( $self, $args ) = @_; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# for old |
16
|
0
|
0
|
|
|
|
|
unless (ref($args) eq 'HASH') { |
17
|
0
|
|
|
|
|
|
$args = { type => $args }; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
my $uri = URI->new('/gitignore/templates'); |
21
|
0
|
|
|
|
|
|
$uri->query_form($args); |
22
|
0
|
|
|
|
|
|
return $self->query($uri->as_string); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub template { |
26
|
0
|
|
|
0
|
1
|
|
my ( $self, $template, $args ) = @_; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
# for old |
29
|
0
|
0
|
|
|
|
|
unless (ref($args) eq 'HASH') { |
30
|
0
|
|
|
|
|
|
$args = { type => $args }; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
my $uri = URI->new("/gitignore/templates/" . uri_escape($template)); |
34
|
0
|
|
|
|
|
|
$uri->query_form($args); |
35
|
0
|
|
|
|
|
|
return $self->query($uri->as_string); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
1
|
|
|
1
|
|
8
|
no Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
__END__ |