line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Nephia::Setup::Plugin::Assets::JQuery; |
2
|
2
|
|
|
2
|
|
2986
|
use 5.008005; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
79
|
|
3
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
69
|
|
4
|
2
|
|
|
2
|
|
35
|
use warnings; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
66
|
|
5
|
2
|
|
|
2
|
|
850
|
use parent 'Nephia::Setup::Plugin'; |
|
2
|
|
|
|
|
271
|
|
|
2
|
|
|
|
|
25
|
|
6
|
2
|
|
|
2
|
|
2473
|
use File::Share ':all'; |
|
2
|
|
|
|
|
20957
|
|
|
2
|
|
|
|
|
380
|
|
7
|
2
|
|
|
2
|
|
1061
|
use File::Copy; |
|
2
|
|
|
|
|
2538
|
|
|
2
|
|
|
|
|
110
|
|
8
|
2
|
|
|
2
|
|
13
|
use File::Spec; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
383
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = "0.03"; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub fix_setup { |
13
|
1
|
|
|
1
|
1
|
34
|
my $self = shift; |
14
|
1
|
|
|
|
|
7
|
$self->setup->action_chain->append('Assets::JQuery' => \&_assets_jquery); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _assets_jquery { |
18
|
1
|
|
|
1
|
|
458
|
my ($setup, $context) = @_; |
19
|
1
|
|
|
|
|
4
|
my $jquery = dist_file('Nephia-Setup-Plugin-Assets-JQuery', 'jquery.min.js'); |
20
|
1
|
|
|
|
|
274
|
my $dest = File::Spec->catfile($setup->approot, qw/static js jquery.min.js/); |
21
|
1
|
|
|
|
|
17
|
$setup->makepath(qw/static js/); |
22
|
1
|
|
|
|
|
460
|
$setup->diag('copying jquery.min.js into '. $dest); |
23
|
1
|
|
|
|
|
70
|
copy($jquery, $dest); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
__END__ |