File Coverage

blib/lib/Pod/Weaver/PluginBundle/Default.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 1 0.0
total 20 21 95.2


line stmt bran cond sub pod time code
1 4     4   13052 use strict;
  4         12  
  4         165  
2 4     4   25 use warnings;
  4         9  
  4         290  
3             package Pod::Weaver::PluginBundle::Default;
4             # ABSTRACT: a bundle for the most commonly-needed prep work for a pod document
5             $Pod::Weaver::PluginBundle::Default::VERSION = '4.017';
6             #pod =head1 OVERVIEW
7             #pod
8             #pod This is the bundle used by default (specifically by Pod::Weaver's
9             #pod C<new_with_default_config> method). It may change over time, but should remain
10             #pod fairly conservative and straightforward.
11             #pod
12             #pod It is nearly equivalent to the following:
13             #pod
14             #pod [@CorePrep]
15             #pod
16             #pod [-SingleEncoding]
17             #pod
18             #pod [Name]
19             #pod [Version]
20             #pod
21             #pod [Region / prelude]
22             #pod
23             #pod [Generic / SYNOPSIS]
24             #pod [Generic / DESCRIPTION]
25             #pod [Generic / OVERVIEW]
26             #pod
27             #pod [Collect / ATTRIBUTES]
28             #pod command = attr
29             #pod
30             #pod [Collect / METHODS]
31             #pod command = method
32             #pod
33             #pod [Collect / FUNCTIONS]
34             #pod command = func
35             #pod
36             #pod [Leftovers]
37             #pod
38             #pod [Region / postlude]
39             #pod
40             #pod [Authors]
41             #pod [Legal]
42             #pod
43             #pod =cut
44              
45 4     4   27 use namespace::autoclean;
  4         9  
  4         41  
46              
47 4     4   327 use Pod::Weaver::Config::Assembler;
  4         9  
  4         1029  
48 90     90   4859 sub _exp { Pod::Weaver::Config::Assembler->expand_package($_[0]) }
49              
50             sub mvp_bundle_config {
51             return (
52 6     6 0 14386 [ '@Default/CorePrep', _exp('@CorePrep'), {} ],
53             [ '@Default/SingleEncoding', _exp('-SingleEncoding'), {} ],
54             [ '@Default/Name', _exp('Name'), {} ],
55             [ '@Default/Version', _exp('Version'), {} ],
56              
57             [ '@Default/prelude', _exp('Region'), { region_name => 'prelude' } ],
58             [ 'SYNOPSIS', _exp('Generic'), {} ],
59             [ 'DESCRIPTION', _exp('Generic'), {} ],
60             [ 'OVERVIEW', _exp('Generic'), {} ],
61              
62             [ 'ATTRIBUTES', _exp('Collect'), { command => 'attr' } ],
63             [ 'METHODS', _exp('Collect'), { command => 'method' } ],
64             [ 'FUNCTIONS', _exp('Collect'), { command => 'func' } ],
65              
66             [ '@Default/Leftovers', _exp('Leftovers'), {} ],
67              
68             [ '@Default/postlude', _exp('Region'), { region_name => 'postlude' } ],
69              
70             [ '@Default/Authors', _exp('Authors'), {} ],
71             [ '@Default/Legal', _exp('Legal'), {} ],
72             )
73             }
74              
75             1;
76              
77             __END__
78              
79             =pod
80              
81             =encoding UTF-8
82              
83             =head1 NAME
84              
85             Pod::Weaver::PluginBundle::Default - a bundle for the most commonly-needed prep work for a pod document
86              
87             =head1 VERSION
88              
89             version 4.017
90              
91             =head1 OVERVIEW
92              
93             This is the bundle used by default (specifically by Pod::Weaver's
94             C<new_with_default_config> method). It may change over time, but should remain
95             fairly conservative and straightforward.
96              
97             It is nearly equivalent to the following:
98              
99             [@CorePrep]
100              
101             [-SingleEncoding]
102              
103             [Name]
104             [Version]
105              
106             [Region / prelude]
107              
108             [Generic / SYNOPSIS]
109             [Generic / DESCRIPTION]
110             [Generic / OVERVIEW]
111              
112             [Collect / ATTRIBUTES]
113             command = attr
114              
115             [Collect / METHODS]
116             command = method
117              
118             [Collect / FUNCTIONS]
119             command = func
120              
121             [Leftovers]
122              
123             [Region / postlude]
124              
125             [Authors]
126             [Legal]
127              
128             =head1 AUTHOR
129              
130             Ricardo SIGNES <rjbs@cpan.org>
131              
132             =head1 COPYRIGHT AND LICENSE
133              
134             This software is copyright (c) 2021 by Ricardo SIGNES.
135              
136             This is free software; you can redistribute it and/or modify it under
137             the same terms as the Perl 5 programming language system itself.
138              
139             =cut