File Coverage

blib/lib/Dist/Zilla/Role/FileGatherer.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::FileGatherer 6.037;
2             # ABSTRACT: something that gathers files into the distribution
3              
4 46     46   33322 use Moose::Role;
  46         116  
  46         600  
5             with 'Dist::Zilla::Role::Plugin',
6             'Dist::Zilla::Role::FileInjector';
7              
8 46     46   276085 use Dist::Zilla::Pragmas;
  46         158  
  46         526  
9              
10 46     46   388 use namespace::autoclean;
  46         105  
  46         499  
11              
12             #pod =head1 DESCRIPTION
13             #pod
14             #pod A FileGatherer plugin is a special sort of
15             #pod L<FileInjector|Dist::Zilla::Role::FileInjector> that runs early in the build
16             #pod cycle, finding files to include in the distribution. It is expected to call
17             #pod its C<add_file> method to add one or more files to inclusion.
18             #pod
19             #pod Plugins implementing FileGatherer must provide a C<gather_files> method, which
20             #pod will be called during the build process.
21             #pod
22             #pod =cut
23              
24             requires 'gather_files';
25              
26             1;
27              
28             __END__
29              
30             =pod
31              
32             =encoding UTF-8
33              
34             =head1 NAME
35              
36             Dist::Zilla::Role::FileGatherer - something that gathers files into the distribution
37              
38             =head1 VERSION
39              
40             version 6.037
41              
42             =head1 DESCRIPTION
43              
44             A FileGatherer plugin is a special sort of
45             L<FileInjector|Dist::Zilla::Role::FileInjector> that runs early in the build
46             cycle, finding files to include in the distribution. It is expected to call
47             its C<add_file> method to add one or more files to inclusion.
48              
49             Plugins implementing FileGatherer must provide a C<gather_files> method, which
50             will be called during the build process.
51              
52             =head1 PERL VERSION
53              
54             This module should work on any version of perl still receiving updates from
55             the Perl 5 Porters. This means it should work on any version of perl
56             released in the last two to three years. (That is, if the most recently
57             released version is v5.40, then this module should work on both v5.40 and
58             v5.38.)
59              
60             Although it may work on older versions of perl, no guarantee is made that the
61             minimum required version will not be increased. The version may be increased
62             for any reason, and there is no promise that patches will be accepted to
63             lower the minimum required perl.
64              
65             =head1 AUTHOR
66              
67             Ricardo SIGNES 😏 <cpan@semiotic.systems>
68              
69             =head1 COPYRIGHT AND LICENSE
70              
71             This software is copyright (c) 2026 by Ricardo SIGNES.
72              
73             This is free software; you can redistribute it and/or modify it under
74             the same terms as the Perl 5 programming language system itself.
75              
76             =cut