File Coverage

blib/lib/Dist/Zilla/Role/ShareDir.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 picks a directory to install as shared files
2              
3             use Moose::Role;
4 11     11   6564 with 'Dist::Zilla::Role::FileFinder';
  11         34  
  11         103  
5              
6             use Dist::Zilla::Pragmas;
7 11     11   57254  
  11         31  
  11         88  
8             use namespace::autoclean;
9 11     11   91  
  11         27  
  11         76  
10             # Must return a hashref with any of the keys 'dist' and 'module'. The 'dist'
11             # must be a scalar with a directory to include and 'module' must be a hashref
12             # mapping module names to directories to include. If there are no directories
13             # to include, it must return undef.
14             requires 'share_dir_map';
15              
16             1;
17              
18              
19             =pod
20              
21             =encoding UTF-8
22              
23             =head1 NAME
24              
25             Dist::Zilla::Role::ShareDir - something that picks a directory to install as shared files
26              
27             =head1 VERSION
28              
29             version 6.028
30              
31             =head1 PERL VERSION
32              
33             This module should work on any version of perl still receiving updates from
34             the Perl 5 Porters. This means it should work on any version of perl released
35             in the last two to three years. (That is, if the most recently released
36             version is v5.40, then this module should work on both v5.40 and v5.38.)
37              
38             Although it may work on older versions of perl, no guarantee is made that the
39             minimum required version will not be increased. The version may be increased
40             for any reason, and there is no promise that patches will be accepted to lower
41             the minimum required perl.
42              
43             =head1 AUTHOR
44              
45             Ricardo SIGNES 😏 <cpan@semiotic.systems>
46              
47             =head1 COPYRIGHT AND LICENSE
48              
49             This software is copyright (c) 2022 by Ricardo SIGNES.
50              
51             This is free software; you can redistribute it and/or modify it under
52             the same terms as the Perl 5 programming language system itself.
53              
54             =cut