File Coverage

blib/lib/Dist/Zilla/PluginBundle/ROKR/Basic.pm
Criterion Covered Total %
statement 13 19 68.4
branch n/a
condition 0 2 0.0
subroutine 5 6 83.3
pod 0 1 0.0
total 18 28 64.2


line stmt bran cond sub pod time code
1             package Dist::Zilla::PluginBundle::ROKR::Basic;
2             BEGIN {
3 1     1   900 $Dist::Zilla::PluginBundle::ROKR::Basic::VERSION = '0.0019';
4             }
5             # ABSTRACT: An enhanced take on the @Basic plugin bundle of Dist::Zilla
6              
7              
8 1     1   15 use Moose;
  1         4  
  1         11  
9              
10             with qw/ Dist::Zilla::Role::PluginBundle /;
11              
12 1     1   7916 use Dist::Zilla::PluginBundle::Basic;
  1         79961  
  1         63  
13 1     1   1054 use Dist::Zilla::PluginBundle::Filter;
  1         27729  
  1         157  
14              
15             sub bundle_config {
16 0     0 0   my ($self, $section) = @_;
17              
18 0           my @bundle = Dist::Zilla::PluginBundle::Filter->bundle_config({
19             name => $section->{name} . '/@Basic',
20             payload => {
21             bundle => '@Basic',
22             remove => [
23             # We'll generate README from ReadmeFromPod
24             'Readme',
25             ],
26             },
27             });
28              
29 0           push @bundle, map {
30 0           my ( $name, $payload ) = @$_;
31 0   0       [ "$section->{name}/$name" => "Dist::Zilla::Plugin::$name" => $payload || {} ];
32             } (
33             [ 'CopyReadmeFromBuild' ],
34             [ 'DynamicManifest' ],
35             [ 'ReadmeFromPod' ],
36             [ 'SurgicalPkgVersion' ],
37             [ 'SurgicalPodWeaver' ],
38             # [ 'PodWeaver' ],
39             );
40              
41 0           return @bundle;
42             }
43              
44             __PACKAGE__->meta->make_immutable;
45 1     1   9 no Moose;
  1         1  
  1         7  
46             1;
47              
48             __END__
49             =pod
50              
51             =head1 NAME
52              
53             Dist::Zilla::PluginBundle::ROKR::Basic - An enhanced take on the @Basic plugin bundle of Dist::Zilla
54              
55             =head1 VERSION
56              
57             version 0.0019
58              
59             =head1 SYNOPSIS
60              
61             In your L<Dist::Zilla> C<dist.ini>:
62              
63             [@ROKR::Basic]
64              
65             =head1 DESCRIPTION
66              
67             This is an enhancement on the @Basic bundle (L<Dist::Zilla::PluginBundle::Basic>) with the following:
68              
69             @Basic (without Readme)
70             CopyReadmeFromBuild
71             DynamicManifest
72             SurgicalPkgVersion
73             SurgicalPodWeaver
74              
75             It is equivalent to:
76              
77             [@Filter]
78             bundle = @Basic
79             remove = Readme
80              
81             [CopyReadmeFromBuild]
82             [DynamicManifest]
83             [SurgicalPkgVersion]
84             [SurgicalPodWeaver]
85              
86             =head1 SEE ALSO
87              
88             L<Dist::Zilla::PluginBundle::Basic>
89              
90             L<Dist::Zilla::Plugin::CopyReadmeFromBuild>
91              
92             L<Dist::Zilla::Plugin::DynamicManifest>
93              
94             L<Dist::Zilla::Plugin::SurgicalPkgVersion>
95              
96             L<Dist::Zilla::Plugin::SurgicalPodWeaver>
97              
98             =head1 AUTHOR
99              
100             Robert Krimen <robertkrimen@gmail.com>
101              
102             =head1 COPYRIGHT AND LICENSE
103              
104             This software is copyright (c) 2011 by Robert Krimen.
105              
106             This is free software; you can redistribute it and/or modify it under
107             the same terms as the Perl 5 programming language system itself.
108              
109             =cut
110