| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Dist::Zilla::File::Generated; |
|
2
|
|
|
|
|
|
|
$Dist::Zilla::File::Generated::VERSION = '0.0.8'; |
|
3
|
|
|
|
|
|
|
# ABSTRACT: a file whose content is built on demand and changed later |
|
4
|
2
|
|
|
2
|
|
8
|
use Moose; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
8281
|
use namespace::autoclean; |
|
|
2
|
|
|
|
|
997
|
|
|
|
2
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
extends 'Dist::Zilla::File::FromCode'; |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'content' => ( |
|
11
|
|
|
|
|
|
|
is => 'rw', |
|
12
|
|
|
|
|
|
|
isa => 'Str', |
|
13
|
|
|
|
|
|
|
lazy => 1, |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
builder => '_build_content', |
|
16
|
|
|
|
|
|
|
); |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub _build_content { |
|
20
|
4
|
|
|
4
|
|
3
|
my ($self) = @_; |
|
21
|
|
|
|
|
|
|
|
|
22
|
4
|
|
|
|
|
92
|
my $code = $self->code; |
|
23
|
|
|
|
|
|
|
|
|
24
|
4
|
|
|
|
|
22
|
return $self->$code; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding UTF-8 |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Dist::Zilla::File::Generated - a file whose content is built on demand and changed later |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 VERSION |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
version 0.0.8 |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 AUTHOR |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Nickolay Platonov <nplatonov@cpan.org> |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Nickolay Platonov. |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
53
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |