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