line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::InlineIncluder; |
2
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
2060
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
extends 'Dist::Zilla::Plugin::ModuleIncluder'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has module => ( |
9
|
|
|
|
|
|
|
isa => 'ArrayRef[Str]', |
10
|
|
|
|
|
|
|
traits => ['Array'], |
11
|
|
|
|
|
|
|
handles => { |
12
|
|
|
|
|
|
|
modules => 'elements', |
13
|
|
|
|
|
|
|
}, |
14
|
|
|
|
|
|
|
default => sub {[qw( |
15
|
|
|
|
|
|
|
Inline |
16
|
|
|
|
|
|
|
Inline::C |
17
|
|
|
|
|
|
|
Inline::MakeMaker |
18
|
|
|
|
|
|
|
)]}, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
has blacklist => ( |
22
|
|
|
|
|
|
|
isa => 'ArrayRef[Str]', |
23
|
|
|
|
|
|
|
traits => ['Array'], |
24
|
|
|
|
|
|
|
handles => { |
25
|
|
|
|
|
|
|
blacklisted_modules => 'elements', |
26
|
|
|
|
|
|
|
}, |
27
|
|
|
|
|
|
|
default => sub {[qw( |
28
|
|
|
|
|
|
|
XXX |
29
|
|
|
|
|
|
|
Inline::Filters |
30
|
|
|
|
|
|
|
Inline::Struct |
31
|
|
|
|
|
|
|
)]}, |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub gather_files { |
36
|
|
|
|
|
|
|
my $self = shift; |
37
|
|
|
|
|
|
|
for my $prefix (qw(.. ../..)) { |
38
|
|
|
|
|
|
|
my $inline = "$prefix/inline-pm"; |
39
|
|
|
|
|
|
|
my $inline_c = "$prefix/inline-c-pm"; |
40
|
|
|
|
|
|
|
if ( |
41
|
|
|
|
|
|
|
-d "$inline/.git" and |
42
|
|
|
|
|
|
|
-d "$inline_c/.git" |
43
|
|
|
|
|
|
|
) { |
44
|
|
|
|
|
|
|
eval "use lib '$inline/lib', '$inline_c/lib'; 1" or die $@; |
45
|
|
|
|
|
|
|
$self->SUPER::gather_files(@_); |
46
|
|
|
|
|
|
|
return; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
die "Inline and Inline-C repos missing or not in right state"; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
no Moose; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |