File Coverage

blib/lib/Dist/Zilla/Role/EncodingProvider.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::EncodingProvider 6.030;
2             # ABSTRACT: something that sets a files' encoding
3              
4 5     5   4054 use Moose::Role;
  5         5339  
  5         48  
5             with 'Dist::Zilla::Role::Plugin';
6              
7 5     5   27836 use Dist::Zilla::Pragmas;
  5         14  
  5         38  
8              
9 5     5   41 use namespace::autoclean;
  5         22  
  5         39  
10              
11             #pod =head1 DESCRIPTION
12             #pod
13             #pod EncodingProvider plugins do their work after files are gathered, but before
14             #pod they're munged. They're meant to set the C<encoding> on files.
15             #pod
16             #pod The method C<set_file_encodings> is called with no arguments.
17             #pod
18             #pod =cut
19              
20             requires 'set_file_encodings';
21              
22             1;
23              
24             __END__
25              
26             =pod
27              
28             =encoding UTF-8
29              
30             =head1 NAME
31              
32             Dist::Zilla::Role::EncodingProvider - something that sets a files' encoding
33              
34             =head1 VERSION
35              
36             version 6.030
37              
38             =head1 DESCRIPTION
39              
40             EncodingProvider plugins do their work after files are gathered, but before
41             they're munged. They're meant to set the C<encoding> on files.
42              
43             The method C<set_file_encodings> is called with no arguments.
44              
45             =head1 PERL VERSION
46              
47             This module should work on any version of perl still receiving updates from
48             the Perl 5 Porters. This means it should work on any version of perl released
49             in the last two to three years. (That is, if the most recently released
50             version is v5.40, then this module should work on both v5.40 and v5.38.)
51              
52             Although it may work on older versions of perl, no guarantee is made that the
53             minimum required version will not be increased. The version may be increased
54             for any reason, and there is no promise that patches will be accepted to lower
55             the minimum required perl.
56              
57             =head1 AUTHOR
58              
59             Ricardo SIGNES 😏 <cpan@semiotic.systems>
60              
61             =head1 COPYRIGHT AND LICENSE
62              
63             This software is copyright (c) 2023 by Ricardo SIGNES.
64              
65             This is free software; you can redistribute it and/or modify it under
66             the same terms as the Perl 5 programming language system itself.
67              
68             =cut