line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::CSJEWELL::BeforeBuild; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
2153
|
use 5.008003; |
|
1
|
|
|
|
|
5
|
|
4
|
1
|
|
|
1
|
|
6
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
12
|
|
5
|
1
|
|
|
1
|
|
7956
|
use Module::Build; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
188
|
|
6
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::BeforeBuild'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.990'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub before_build { |
11
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# This has the same effect as |
14
|
|
|
|
|
|
|
# "perl Build.PL && Build manifest && Build distmeta", |
15
|
|
|
|
|
|
|
# only in code. |
16
|
0
|
|
|
|
|
|
my $builder = Module::Build->new_from_context(); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# Our ACTION_distmeta depends on 'manifest', so runs it. |
19
|
0
|
|
|
|
|
|
$builder->ACTION_distmeta(); |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
return 1; |
22
|
|
|
|
|
|
|
} ## end sub before_build |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
25
|
1
|
|
|
1
|
|
8
|
no Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=for stopword Makefile yml README |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Dist::Zilla::Plugin::CSJEWELL::BeforeBuild - Let Module::Build create the meta files. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
This document describes Dist::Zilla::Plugin::CSJEWELL::BeforeBuild version 0.900. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This plugin asks Module::Build to generate the Makefile.PL, META.yml, MANIFEST, |
45
|
|
|
|
|
|
|
README, and LICENSE files. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=for Pod::Coverage before_build |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 AUTHOR |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Curtis Jewell <CSJewell@cpan.org> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SEE ALSO |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
L<Dist::Zilla::BeLike::CSJEWELL|Dist::Zilla::BeLike::CSJEWELL> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Copyright (c) 2010, Curtis Jewell C<< CSJewell@cpan.org >>. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or |
62
|
|
|
|
|
|
|
modify it under the same terms as Perl itself, either version |
63
|
|
|
|
|
|
|
5.8.1 or any later version. See L<perlartistic|perlartistic> |
64
|
|
|
|
|
|
|
and L<perlgpl|perlgpl>. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
The full text of the license can be found in the |
67
|
|
|
|
|
|
|
LICENSE file included with this module. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 DISCLAIMER OF WARRANTY |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
72
|
|
|
|
|
|
|
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
73
|
|
|
|
|
|
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
74
|
|
|
|
|
|
|
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER |
75
|
|
|
|
|
|
|
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
76
|
|
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE |
77
|
|
|
|
|
|
|
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH |
78
|
|
|
|
|
|
|
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL |
79
|
|
|
|
|
|
|
NECESSARY SERVICING, REPAIR, OR CORRECTION. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
82
|
|
|
|
|
|
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
83
|
|
|
|
|
|
|
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE |
84
|
|
|
|
|
|
|
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, |
85
|
|
|
|
|
|
|
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE |
86
|
|
|
|
|
|
|
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
87
|
|
|
|
|
|
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
88
|
|
|
|
|
|
|
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
89
|
|
|
|
|
|
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
90
|
|
|
|
|
|
|
SUCH DAMAGES. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |
93
|
|
|
|
|
|
|
|