blib/lib/Pod/Weaver/PluginBundle/Author/VDB.pm

filter: Statementstmt 81.5% 53 / 65 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 89.4% 17 / 19 Podpod 0.0% 0 / 1 totaltotal 82.3% 70 / 85 CC 1 SCAR 1.0
CC
1
Cov
82%
_p
2.0
mvp_bundle_config
2.0
BEGIN
1.0
CRAP 1.1
↑ Summary
1 # ---------------------------------------------------------------------- copyright and license ---
2 #
3 # file: lib/Pod/Weaver/PluginBundle/Author/VDB.pm
4 #
5 # Copyright © 2015, 2016 Van de Bugger.
6 #
7 # This file is part of perl-Pod-Weaver-PluginBundle-Author-VDB.
8 #
9 # perl-Pod-Weaver-PluginBundle-Author-VDB is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by the Free Software
11 # Foundation, either version 3 of the License, or (at your option) any later version.
12 #
13 # perl-Pod-Weaver-PluginBundle-Author-VDB is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 # PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License along with
18 # perl-Pod-Weaver-PluginBundle-Author-VDB. If not, see <http://www.gnu.org/licenses/>.
19 #
20 # ---------------------------------------------------------------------- copyright and license ---
21  
22 #pod =head1 DESCRIPTION
23 #pod
24 #pod It is unlikely that someone else will want to use it, so I will not bother with documenting it, at
25 #pod least for now.
26 #pod
27 #pod =cut
28  
29 package Pod::Weaver::PluginBundle::Author::VDB;
30  
31 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
32 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 1 ▶use version 0.77;
Subroutine BEGIN: called CC=1 SCAR=0.0
35  
36 # PODNAME: Pod::Weaver::PluginBundle::Author::VDB
37 # ABSTRACT: VDB's plugin bundle
38 1 our $VERSION = 'v0.3.4'; # VERSION
39  
40 1 ▶use Pod::Weaver::Config::Assembler;
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 # `AutoPrereqs` hints:
43 1 ▶use Pod::Weaver::PluginBundle::CorePrep qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
44 1 ▶use Pod::Weaver::Plugin::SingleEncoding qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
45 1 ▶use Pod::Weaver::Plugin::Transformer qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
46 1 ▶use Pod::Weaver::Section::Authors qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
47 1 ▶use Pod::Weaver::Section::Collect qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
48 1 ▶use Pod::Weaver::Section::Generic qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
49 1 ▶use Pod::Weaver::Section::Leftovers qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
50 1 ▶use Pod::Weaver::Section::Legal qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
51 1 ▶use Pod::Weaver::Section::Name qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
52 1 ▶use Pod::Weaver::Section::Region qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
53 1 ▶use Pod::Weaver::Section::Version qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
54 1 ▶use Pod::Elemental::Transformer::List qw{};
Subroutine BEGIN: called CC=1 SCAR=0.0
55  
56 0 ▶sub _p($) {
Subroutine _p: not called CC=1 SCAR=6.9
57 0 my ( $pkg ) = @_;
58 0 return Pod::Weaver::Config::Assembler->expand_package( $pkg );
59 };
60  
61 #pod =for Pod::Coverage mvp_bundle_config
62 #pod
63 #pod =cut
64  
65 0 ▶sub mvp_bundle_config {
Subroutine mvp_bundle_config: not called CC=1 SCAR=6.9
Pod undocumented
66  
67 0 my $me = '@Author::VDB';
68  
69 0 my $authors = _p( 'Authors' );
70 0 my $collect = _p( 'Collect' );
71 0 my $generic = _p( 'Generic' );
72 0 my $leftovers = _p( 'Leftovers' );
73 0 my $legal = _p( 'Legal' );
74 0 my $name = _p( 'Name' );
75 0 my $region = _p( 'Region' );
76 0 my $version = _p( 'Version' );
77  
78 return (
79 # Plugins and other stuff.
80 0 [ "$me/CorePrep", _p( '@CorePrep' ), {} ],
81 [ "$me/SingleEncoding", _p( '-SingleEncoding' ), {} ],
82 [ "$me/Transformer", _p( '-Transformer' ), {
83 'transformer' => 'List',
84 } ],
85 # Sections
86 [ "$me/Name", $name, {} ],
87 [ "$me/Version", $version, {
88 'format' => [
89 'Version %v, released on %{yyyy-MM-dd HH:mm zzz}d.',
90 '%T This is a B<trial release>.',
91 ],
92 } ],
93 [ 'WHAT?', $generic, {} ],
94 [ "$me/this", $region, { region_name => 'this' } ],
95 [ "$me/that", $region, { region_name => 'that' } ],
96 [ "$me/those", $region, { region_name => 'those' } ],
97 # Special processing for `=for test_synopsis` directives.
98 # By default `Pod::Weaver` moves them to the end of the weaved document (to the
99 # leftovers). However, `Test::Synopsis` v0.14 wants this directive is located *before*
100 # synopsis section.
101 [ "$me/test_synopsis", $region, { region_name => 'test_synopsis',
102 allow_nonpod => 1, # Do not require colon in fron of format name.
103 flatten => 0, # Do not drop `=for` directive, write whole region as-is.
104 } ],
105 [ 'SYNOPSIS', $generic, {} ],
106 [ 'DESCRIPTION', $generic, {} ],
107 [ 'EXPORT', $generic, {} ],
108 [ 'CONSTANTS', $collect, { command => 'const' } ],
109 [ 'CLASS METHODS', $collect, { command => 'Method' } ],
110 [ 'OBJECT ATTRIBUTES', $collect, { command => 'attr' } ],
111 [ 'OBJECT METHODS', $collect, { command => 'method' } ],
112 [ 'FUNCTIONS', $collect, { command => 'func' } ],
113 [ 'OPERATORS', $collect, { command => 'operator' } ],
114 [ 'VARIABLES', $collect, { command => 'variable' } ],
115 [ 'OPTIONS', $collect, { command => 'option' } ],
116 [ 'RETURN VALUE', $generic, {} ],
117 [ 'ERRORS', $generic, {} ],
118 [ 'EXAMPLES', $collect, { command => 'example' } ],
119 [ 'ENVIRONMENT', $generic, {} ],
120 [ 'FILES', $generic, {} ],
121 [ 'CAVEATS', $collect, { command => 'caveat' } ],
122 [ 'KNOWN BUGS', $collect, { command => 'bug' } ],
123 [ 'RESTRICTIONS', $generic, {} ],
124 [ 'NOTES', $collect, { command => 'note' } ],
125 [ 'WHY?', $generic, {} ],
126 [ "$me/Leftovers", $leftovers, {} ],
127 [ 'GLOSSARY', $generic, {} ],
128 [ 'SEE ALSO', $generic, {} ],
129 [ "$me/Authors", $authors, {} ],
130 [ 'HISTORY', $generic, {} ],
131 [ 'COPYRIGHT AND LICENSE', $generic, {} ],
132 );
133  
134 };
135  
136 1 1;
137  
138 # --------------------------------------------------------------------------------------------------
139  
140 #pod =head1 COPYRIGHT AND LICENSE
141 #pod
142 #pod Copyright (C) 2015, 2016 Van de Bugger
143 #pod
144 #pod License GPLv3+: The GNU General Public License version 3 or later
145 #pod <http://www.gnu.org/licenses/gpl-3.0.txt>.
146 #pod
147 #pod This is free software: you are free to change and redistribute it. There is
148 #pod NO WARRANTY, to the extent permitted by law.
149 #pod
150 #pod
151 #pod =cut
152  
153 # ------------------------------------------------------------------------------------------------
154 #
155 # file: doc/what.pod
156 #
157 # This file is part of perl-Pod-Weaver-PluginBundle-Author-VDB.
158 #
159 # ------------------------------------------------------------------------------------------------
160  
161 #pod =encoding UTF-8
162 #pod
163 #pod =head1 WHAT?
164 #pod
165 #pod C<Pod-Weaver-PluginBundle-Author-VDB> (or just C<@Author::VDB>) is a C<Pod::Weaver> plugin bundle used by VDB.
166 #pod
167 #pod =cut
168  
169 # end of file #
170 # ------------------------------------------------------------------------------------------------
171 #
172 # file: doc/why.pod
173 #
174 # This file is part of perl-Pod-Weaver-PluginBundle-Author-VDB.
175 #
176 # ------------------------------------------------------------------------------------------------
177  
178 #pod =encoding UTF-8
179 #pod
180 #pod =head1 WHY?
181 #pod
182 #pod I have published few distributions on CPAN. Every distribution has F<weaver.ini> file. All the
183 #pod F<weaver.ini> files are exactly the same. Maintaining multiple F<weaver.ini> files is boring.
184 #pod Plugin bundle solves the problem.
185 #pod
186 #pod =cut
187  
188 # end of file #
189  
190  
191 # end of file #
192  
193 __END__
↑ Summary