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   11638 use strict;
  4         9  
  4         133  
2 4     4   62 use warnings;
  4         10  
  4         202  
3             package Pod::Weaver::PluginBundle::Default 4.018;
4             # ABSTRACT: a bundle for the most commonly-needed prep work for a pod document
5              
6             # BEGIN BOILERPLATE
7 4     4   44 use v5.20.0;
  4         14  
8 4     4   20 use warnings;
  4         48  
  4         154  
9 4     4   23 use utf8;
  4         8  
  4         57  
10 4     4   195 no feature 'switch';
  4         13  
  4         454  
11 4     4   29 use experimental qw(postderef postderef_qq); # This experiment gets mainlined.
  4         8  
  4         30  
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   484 use namespace::autoclean;
  4         7  
  4         40  
54              
55 4     4   383 use Pod::Weaver::Config::Assembler;
  4         7  
  4         1053  
56 90     90   4585 sub _exp { Pod::Weaver::Config::Assembler->expand_package($_[0]) }
57              
58             sub mvp_bundle_config {
59             return (
60 6     6 0 13879 [ '@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.018
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 SUPPORT
137              
138             This module has the same support period as perl itself: it supports the two
139             most recent versions of perl. (That is, if the most recently released version
140             is v5.40, then this module should work on both v5.40 and v5.38.)
141              
142             Although it may work on older versions of perl, no guarantee is made that the
143             minimum required version will not be increased. The version may be increased
144             for any reason, and there is no promise that patches will be accepted to lower
145             the minimum required perl.
146              
147             =head1 AUTHOR
148              
149             Ricardo SIGNES <rjbs@semiotic.systems>
150              
151             =head1 COPYRIGHT AND LICENSE
152              
153             This software is copyright (c) 2021 by Ricardo SIGNES.
154              
155             This is free software; you can redistribute it and/or modify it under
156             the same terms as the Perl 5 programming language system itself.
157              
158             =cut