File Coverage

blib/lib/Pod/Weaver/PluginBundle/Default.pm
Criterion Covered Total %
statement 28 28 100.0
branch n/a
condition n/a
subroutine 11 11 100.0
pod 0 1 0.0
total 39 40 97.5


line stmt bran cond sub pod time code
1 4     4   16880 use strict;
  4         9  
  4         203  
2 4     4   26 use warnings;
  4         10  
  4         373  
3             package Pod::Weaver::PluginBundle::Default 4.020;
4             # ABSTRACT: a bundle for the most commonly-needed prep work for a pod document
5              
6             # BEGIN BOILERPLATE
7 4     4   49 use v5.20.0;
  4         16  
8 4     4   21 use warnings;
  4         8  
  4         233  
9 4     4   26 use utf8;
  4         9  
  4         35  
10 4     4   207 no feature 'switch';
  4         10  
  4         751  
11 4     4   109 use experimental qw(postderef postderef_qq); # This experiment gets mainlined.
  4         10  
  4         71  
12             # END BOILERPLATE
13              
14             #pod =head1 OVERVIEW
15             #pod
16             #pod This is the bundle used by default (specifically by Pod::Weaver's
17             #pod C<new_with_default_config> method). It may change over time, but should remain
18             #pod fairly conservative and straightforward.
19             #pod
20             #pod It is nearly equivalent to the following:
21             #pod
22             #pod [@CorePrep]
23             #pod
24             #pod [-SingleEncoding]
25             #pod
26             #pod [Name]
27             #pod [Version]
28             #pod
29             #pod [Region / prelude]
30             #pod
31             #pod [Generic / SYNOPSIS]
32             #pod [Generic / DESCRIPTION]
33             #pod [Generic / OVERVIEW]
34             #pod
35             #pod [Collect / ATTRIBUTES]
36             #pod command = attr
37             #pod
38             #pod [Collect / METHODS]
39             #pod command = method
40             #pod
41             #pod [Collect / FUNCTIONS]
42             #pod command = func
43             #pod
44             #pod [Leftovers]
45             #pod
46             #pod [Region / postlude]
47             #pod
48             #pod [Authors]
49             #pod [Legal]
50             #pod
51             #pod =cut
52              
53 4     4   516 use namespace::autoclean;
  4         10  
  4         64  
54              
55 4     4   371 use Pod::Weaver::Config::Assembler;
  4         7  
  4         1351  
56 90     90   5300 sub _exp { Pod::Weaver::Config::Assembler->expand_package($_[0]) }
57              
58             sub mvp_bundle_config {
59             return (
60 6     6 0 16809 [ '@Default/CorePrep', _exp('@CorePrep'), {} ],
61             [ '@Default/SingleEncoding', _exp('-SingleEncoding'), {} ],
62             [ '@Default/Name', _exp('Name'), {} ],
63             [ '@Default/Version', _exp('Version'), {} ],
64              
65             [ '@Default/prelude', _exp('Region'), { region_name => 'prelude' } ],
66             [ 'SYNOPSIS', _exp('Generic'), {} ],
67             [ 'DESCRIPTION', _exp('Generic'), {} ],
68             [ 'OVERVIEW', _exp('Generic'), {} ],
69              
70             [ 'ATTRIBUTES', _exp('Collect'), { command => 'attr' } ],
71             [ 'METHODS', _exp('Collect'), { command => 'method' } ],
72             [ 'FUNCTIONS', _exp('Collect'), { command => 'func' } ],
73              
74             [ '@Default/Leftovers', _exp('Leftovers'), {} ],
75              
76             [ '@Default/postlude', _exp('Region'), { region_name => 'postlude' } ],
77              
78             [ '@Default/Authors', _exp('Authors'), {} ],
79             [ '@Default/Legal', _exp('Legal'), {} ],
80             )
81             }
82              
83             1;
84              
85             __END__
86              
87             =pod
88              
89             =encoding UTF-8
90              
91             =head1 NAME
92              
93             Pod::Weaver::PluginBundle::Default - a bundle for the most commonly-needed prep work for a pod document
94              
95             =head1 VERSION
96              
97             version 4.020
98              
99             =head1 OVERVIEW
100              
101             This is the bundle used by default (specifically by Pod::Weaver's
102             C<new_with_default_config> method). It may change over time, but should remain
103             fairly conservative and straightforward.
104              
105             It is nearly equivalent to the following:
106              
107             [@CorePrep]
108              
109             [-SingleEncoding]
110              
111             [Name]
112             [Version]
113              
114             [Region / prelude]
115              
116             [Generic / SYNOPSIS]
117             [Generic / DESCRIPTION]
118             [Generic / OVERVIEW]
119              
120             [Collect / ATTRIBUTES]
121             command = attr
122              
123             [Collect / METHODS]
124             command = method
125              
126             [Collect / FUNCTIONS]
127             command = func
128              
129             [Leftovers]
130              
131             [Region / postlude]
132              
133             [Authors]
134             [Legal]
135              
136             =head1 PERL VERSION
137              
138             This module should work on any version of perl still receiving updates from
139             the Perl 5 Porters. This means it should work on any version of perl
140             released in the last two to three years. (That is, if the most recently
141             released version is v5.40, then this module should work on both v5.40 and
142             v5.38.)
143              
144             Although it may work on older versions of perl, no guarantee is made that the
145             minimum required version will not be increased. The version may be increased
146             for any reason, and there is no promise that patches will be accepted to
147             lower the minimum required perl.
148              
149             =head1 AUTHOR
150              
151             Ricardo SIGNES <cpan@semiotic.systems>
152              
153             =head1 COPYRIGHT AND LICENSE
154              
155             This software is copyright (c) 2024 by Ricardo SIGNES.
156              
157             This is free software; you can redistribute it and/or modify it under
158             the same terms as the Perl 5 programming language system itself.
159              
160             =cut