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