line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pod::Weaver::PluginBundle::ReplaceBoilerplate; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: A Pod::Weaver bundle for replacing the boilerplate in a Pod document. |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
28145
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
1630
|
use namespace::autoclean; |
|
1
|
|
|
|
|
24266
|
|
|
1
|
|
|
|
|
8
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.00'; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
472
|
use Pod::Weaver::Config::Assembler; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub _exp { Pod::Weaver::Config::Assembler->expand_package($_[0]) } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub mvp_bundle_config { |
16
|
|
|
|
|
|
|
return ( |
17
|
|
|
|
|
|
|
[ '@ReplaceBoilerplate/CorePrep', _exp('@CorePrep'), {} ], |
18
|
|
|
|
|
|
|
[ '@ReplaceBoilerplate/ReplaceName', _exp('ReplaceName'), {} ], |
19
|
|
|
|
|
|
|
[ '@ReplaceBoilerplate/ReplaceVersion', _exp('ReplaceVersion'), {} ], |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
[ '@ReplaceBoilerplate/Leftovers', _exp('Leftovers'), {} ], |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
[ '@ReplaceBoilerplate/ReplaceAuthors', _exp('ReplaceAuthors'), {} ], |
24
|
|
|
|
|
|
|
[ '@ReplaceBoilerplate/ReplaceLegal', _exp('ReplaceLegal'), {} ], |
25
|
|
|
|
|
|
|
) |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Pod::Weaver::PluginBundle::ReplaceBoilerplate - A Pod::Weaver bundle for replacing the boilerplate in a Pod document. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 1.00 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 OVERVIEW |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This is a plugin bundle intended to replace use of [@Default] with equivilent |
45
|
|
|
|
|
|
|
behaviour but with L<Pod::Weaver::Role::SectionReplacer> enabled plugins. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
It is nearly equivalent to the following: |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
[@CorePrep] |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
[ReplaceName] |
52
|
|
|
|
|
|
|
[ReplaceVersion] |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
[Leftovers] |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
[ReplaceAuthors] |
57
|
|
|
|
|
|
|
[ReplaceLegal] |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=begin readme |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 INSTALLATION |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
To install this module, run the following commands: |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
perl Build.PL |
66
|
|
|
|
|
|
|
./Build |
67
|
|
|
|
|
|
|
./Build test |
68
|
|
|
|
|
|
|
./Build install |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=end readme |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=for readme stop |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=begin :internal |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 INTERNAL METHODS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=over |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item mvp_bundle_config |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Returns the config data structure to substitute for this PluginBundle. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=back |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=end :internal |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=for readme continue |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 SUPPORT AND DOCUMENTATION |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
After installing, you can find documentation for this module with the |
93
|
|
|
|
|
|
|
perldoc command. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
perldoc Pod::Weaver::PluginBundle::ReplaceBoilerplate |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
You can also look for information at: |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=over |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=item RT, CPAN's request tracker |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Pod-Weaver-PluginBundle-ReplaceBoilerplate |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=item AnnoCPAN, Annotated CPAN documentation |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
http://annocpan.org/dist/Pod-Weaver-PluginBundle-ReplaceBoilerplate |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=item CPAN Ratings |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
http://cpanratings.perl.org/d/Pod-Weaver-PluginBundle-ReplaceBoilerplate |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=item Search CPAN |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
http://search.cpan.org/dist/Pod-Weaver-PluginBundle-ReplaceBoilerplate/ |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=back |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head1 AUTHOR |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Sam Graham <libpod-weaver-pluginbundle-replaceboilerplate-perl BLAHBLAH illusori.co.uk> |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
This software is copyright (c) 2010 by Sam Graham <libpod-weaver-pluginbundle-replaceboilerplate-perl BLAHBLAH illusori.co.uk>. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
128
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=cut |