File Coverage

blib/lib/Dist/Zilla/Role/ModuleMaker.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: something that injects module files into the dist
2              
3             use Moose::Role;
4 2     2   1540 with qw(
  2         6  
  2         21  
5             Dist::Zilla::Role::Plugin
6             Dist::Zilla::Role::FileInjector
7             );
8              
9             use Dist::Zilla::Pragmas;
10 2     2   11544  
  2         7  
  2         20  
11             use namespace::autoclean;
12 2     2   22  
  2         5  
  2         16  
13             #pod =head1 DESCRIPTION
14             #pod
15             #pod Plugins implementing this role have their C<make_module> method called for each
16             #pod module requesting creation by the plugin with this name. It is passed a
17             #pod hashref with the following data:
18             #pod
19             #pod name - the name of the module to make (a MooseX::Types::Perl::ModuleName)
20             #pod
21             #pod Classes composing this role also compose
22             #pod L<FileInjector|Dist::Zilla::Role::FileInjector> and are expected to inject a
23             #pod file for the module being created.
24             #pod
25             #pod =cut
26              
27             requires 'make_module';
28              
29             1;
30              
31              
32             =pod
33              
34             =encoding UTF-8
35              
36             =head1 NAME
37              
38             Dist::Zilla::Role::ModuleMaker - something that injects module files into the dist
39              
40             =head1 VERSION
41              
42             version 6.028
43              
44             =head1 DESCRIPTION
45              
46             Plugins implementing this role have their C<make_module> method called for each
47             module requesting creation by the plugin with this name. It is passed a
48             hashref with the following data:
49              
50             name - the name of the module to make (a MooseX::Types::Perl::ModuleName)
51              
52             Classes composing this role also compose
53             L<FileInjector|Dist::Zilla::Role::FileInjector> and are expected to inject a
54             file for the module being created.
55              
56             =head1 PERL VERSION
57              
58             This module should work on any version of perl still receiving updates from
59             the Perl 5 Porters. This means it should work on any version of perl released
60             in the last two to three years. (That is, if the most recently released
61             version is v5.40, then this module should work on both v5.40 and v5.38.)
62              
63             Although it may work on older versions of perl, no guarantee is made that the
64             minimum required version will not be increased. The version may be increased
65             for any reason, and there is no promise that patches will be accepted to lower
66             the minimum required perl.
67              
68             =head1 AUTHOR
69              
70             Ricardo SIGNES 😏 <cpan@semiotic.systems>
71              
72             =head1 COPYRIGHT AND LICENSE
73              
74             This software is copyright (c) 2022 by Ricardo SIGNES.
75              
76             This is free software; you can redistribute it and/or modify it under
77             the same terms as the Perl 5 programming language system itself.
78              
79             =cut