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   12579 use strict;
  4         11  
  4         142  
2 4     4   79 use warnings;
  4         8  
  4         213  
3             package Pod::Weaver::PluginBundle::Default 4.019;
4             # ABSTRACT: a bundle for the most commonly-needed prep work for a pod document
5              
6             # BEGIN BOILERPLATE
7 4     4   47 use v5.20.0;
  4         17  
8 4     4   24 use warnings;
  4         67  
  4         128  
9 4     4   26 use utf8;
  4         8  
  4         29  
10 4     4   217 no feature 'switch';
  4         12  
  4         532  
11 4     4   32 use experimental qw(postderef postderef_qq); # This experiment gets mainlined.
  4         8  
  4         31  
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   560 use namespace::autoclean;
  4         8  
  4         38  
54              
55 4     4   422 use Pod::Weaver::Config::Assembler;
  4         18  
  4         1126  
56 90     90   4817 sub _exp { Pod::Weaver::Config::Assembler->expand_package($_[0]) }
57              
58             sub mvp_bundle_config {
59             return (
60 6     6 0 14249 [ '@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.019
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 released
140             in the last two to three years. (That is, if the most recently released
141             version is v5.40, then this module should work on both v5.40 and v5.38.)
142              
143             Although it may work on older versions of perl, no guarantee is made that the
144             minimum required version will not be increased. The version may be increased
145             for any reason, and there is no promise that patches will be accepted to lower
146             the minimum required perl.
147              
148             =head1 AUTHOR
149              
150             Ricardo SIGNES <cpan@semiotic.systems>
151              
152             =head1 COPYRIGHT AND LICENSE
153              
154             This software is copyright (c) 2023 by Ricardo SIGNES.
155              
156             This is free software; you can redistribute it and/or modify it under
157             the same terms as the Perl 5 programming language system itself.
158              
159             =cut