File Coverage

blib/lib/Dist/Zilla/Role/PluginBundle.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 14 15 93.3


line stmt bran cond sub pod time code
1             package Dist::Zilla::Role::PluginBundle 6.030;
2             # ABSTRACT: something that bundles a bunch of plugins
3              
4 11     11   7786 use Moose::Role;
  11         31  
  11         106  
5              
6 11     11   62502 use Dist::Zilla::Pragmas;
  11         43  
  11         363  
7              
8 11     11   99 use namespace::autoclean;
  11         41  
  11         104  
9              
10             #pod =head1 DESCRIPTION
11             #pod
12             #pod When loading configuration, if the config reader encounters a PluginBundle, it
13             #pod will replace its place in the plugin list with the result of calling its
14             #pod C<bundle_config> method, which will be passed a Config::MVP::Section to
15             #pod configure the bundle.
16             #pod
17             #pod =cut
18              
19             sub register_component {
20 10     10 0 60 my ($class, $name, $arg, $self) = @_;
21             # ... we should register a placeholder so MetaConfig can tell us about the
22             # pluginbundle that was loaded
23             }
24              
25             requires 'bundle_config';
26              
27             1;
28              
29             __END__
30              
31             =pod
32              
33             =encoding UTF-8
34              
35             =head1 NAME
36              
37             Dist::Zilla::Role::PluginBundle - something that bundles a bunch of plugins
38              
39             =head1 VERSION
40              
41             version 6.030
42              
43             =head1 DESCRIPTION
44              
45             When loading configuration, if the config reader encounters a PluginBundle, it
46             will replace its place in the plugin list with the result of calling its
47             C<bundle_config> method, which will be passed a Config::MVP::Section to
48             configure the bundle.
49              
50             =head1 PERL VERSION
51              
52             This module should work on any version of perl still receiving updates from
53             the Perl 5 Porters. This means it should work on any version of perl released
54             in the last two to three years. (That is, if the most recently released
55             version is v5.40, then this module should work on both v5.40 and v5.38.)
56              
57             Although it may work on older versions of perl, no guarantee is made that the
58             minimum required version will not be increased. The version may be increased
59             for any reason, and there is no promise that patches will be accepted to lower
60             the minimum required perl.
61              
62             =head1 AUTHOR
63              
64             Ricardo SIGNES 😏 <cpan@semiotic.systems>
65              
66             =head1 COPYRIGHT AND LICENSE
67              
68             This software is copyright (c) 2023 by Ricardo SIGNES.
69              
70             This is free software; you can redistribute it and/or modify it under
71             the same terms as the Perl 5 programming language system itself.
72              
73             =cut