line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Install::Bugtracker; |
2
|
1
|
|
|
1
|
|
58700
|
use 5.006; |
|
1
|
|
|
|
|
6
|
|
3
|
1
|
|
|
1
|
|
15
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
82
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
87
|
|
5
|
1
|
|
|
1
|
|
12
|
use base qw(Module::Install::Base); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
579
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = sprintf "%d.%02d%02d", q/0.3.5/ =~ /(\d+)/g; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub auto_set_bugtracker { |
10
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
11
|
0
|
0
|
|
|
|
|
if ($self->name) { |
12
|
0
|
|
|
|
|
|
$self->include_deps('URI::Escape'); |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
require URI::Escape; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
$self->bugtracker( |
17
|
|
|
|
|
|
|
sprintf 'http://rt.cpan.org/Public/Dist/Display.html?Name=%s', |
18
|
|
|
|
|
|
|
URI::Escape::uri_escape($self->name), |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
} else { |
21
|
0
|
|
|
|
|
|
warn "can't set bugtracker if 'name' is not set\n"; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
__END__ |