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