File Coverage

blib/lib/Pod/Weaver/PluginBundle/SLOYD.pm
Criterion Covered Total %
statement 21 25 84.0
branch n/a
condition n/a
subroutine 7 9 77.7
pod 0 1 0.0
total 28 35 80.0


line stmt bran cond sub pod time code
1             package Pod::Weaver::PluginBundle::SLOYD;
2              
3             # ABSTRACT: SLOYD's default Pod::Weaver configuration
4              
5 1     1   162488 use strict;
  1         5  
  1         31  
6 1     1   6 use warnings;
  1         2  
  1         48  
7              
8             our $VERSION = '0.0005'; # VERSION
9              
10              
11 1     1   471 use namespace::autoclean;
  1         17604  
  1         4  
12              
13 1     1   594 use Pod::Weaver::Config::Assembler;
  1         930470  
  1         47  
14              
15             # dependencies
16 1     1   565 use Pod::Weaver::Section::Contributors 0.009 ();
  1         371331  
  1         49  
17 1     1   652 use Pod::Elemental::Transformer::List 0.102 ();
  1         67909  
  1         43  
18 1     1   651 use Pod::Weaver::Plugin::Include 0.1.9 ();
  1         537380  
  1         306  
19              
20 0     0     sub _exp { Pod::Weaver::Config::Assembler->expand_package( $_[0] ) }
21              
22             sub mvp_bundle_config {
23 0     0 0   my @plugins = (
24             [ '@Default/CorePrep', _exp('@CorePrep'), {} ],
25             [ '@Default/SingleEncoding', _exp('-SingleEncoding'), {} ],
26             [ '@Default/Name', _exp('Name'), {} ],
27             [ '@Default/Version', _exp('Version'), {} ],
28              
29             [ '@Default/prelude', _exp('Region'), { region_name => 'prelude' } ],
30             [ 'STATUS', _exp('Generic'), {} ],
31             [ 'SYNOPSIS', _exp('Generic'), {} ],
32             [ 'DESCRIPTION', _exp('Generic'), {} ],
33             [ 'OVERVIEW', _exp('Generic'), {} ],
34             [ 'CONSTRUCTION', _exp('Generic'), {} ],
35              
36             [ 'ATTRIBUTES', _exp('Collect'), { command => 'attr' } ],
37             [ 'CLASS METHODS', _exp('Collect'), { command => 'classmethod' } ],
38             [ 'METHODS', _exp('Collect'), { command => 'method' } ],
39             [ 'FUNCTIONS', _exp('Collect'), { command => 'func' } ],
40              
41             [ '@Default/Leftovers', _exp('Leftovers'), {} ],
42              
43             [ '@Default/postlude', _exp('Region'), { region_name => 'postlude' } ],
44              
45             [ '@Default/Authors', _exp('Authors'), {} ],
46             [ '@SLOYD/Contributors', _exp('Contributors'), {} ],
47             [ '@Default/Legal', _exp('Legal'), {} ],
48             );
49              
50 0           push @plugins,
51             (
52             [ '@SLOYD/List', _exp('-Transformer'), { transformer => 'List' } ],
53             [
54             '@SLOYD/Include',
55             _exp('-Include'),
56             {
57             pod_path => "lib:bin:docs/pod",
58             insert_errors => 1
59             }
60             ],
61             );
62              
63 0           return @plugins;
64             }
65              
66             1;
67              
68             __END__
69              
70             =pod
71              
72             =encoding UTF-8
73              
74             =head1 NAME
75              
76             Pod::Weaver::PluginBundle::SLOYD - SLOYD's default Pod::Weaver configuration
77              
78             =head1 VERSION
79              
80             version 0.0005
81              
82             =head1 OVERVIEW
83              
84             It is nearly equivalent to the following:
85              
86             [@CorePrep]
87              
88             [-SingleEncoding]
89             [Name]
90             [Version]
91             [Region / prelude]
92             [Generic / STATUS]
93             [Generic / SYNOPSIS]
94             [Generic / DESCRIPTION]
95             [Generic / OVERVIEW]
96             [Generic / CONSTRUCTION]
97             [Collect / ATTRIBUTES]
98             command = attr
99             [Collect / CLASS METHODS]
100             command = classmethod
101             [Collect / METHODS]
102             command = method
103             [Collect / FUNCTIONS]
104             command = func
105             [Leftovers]
106             [Region / postlude]
107             [Authors]
108             [Contributors]
109             [Legal]
110              
111             [-Transformer / Lists]
112             transformer = List
113             [-Include]
114             pod_path = lib:bin:docs/pod
115             insert_errors = 1
116              
117             =head1 AUTHOR
118              
119             Stephan Loyd <sloyd@cpan.org>
120              
121             =head1 COPYRIGHT AND LICENSE
122              
123             This software is copyright (c) 2018 by Stephan Loyd.
124              
125             This is free software; you can redistribute it and/or modify it under
126             the same terms as the Perl 5 programming language system itself.
127              
128             =cut