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.037;
2             # ABSTRACT: something that sets a files' encoding
3              
4 5     5   4131 use Moose::Role;
  5         3658  
  5         43  
5             with 'Dist::Zilla::Role::Plugin';
6              
7 5     5   24726 use Dist::Zilla::Pragmas;
  5         10  
  5         37  
8              
9 5     5   31 use namespace::autoclean;
  5         20  
  5         35  
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.037
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
49             released in the last two to three years. (That is, if the most recently
50             released version is v5.40, then this module should work on both v5.40 and
51             v5.38.)
52              
53             Although it may work on older versions of perl, no guarantee is made that the
54             minimum required version will not be increased. The version may be increased
55             for any reason, and there is no promise that patches will be accepted to
56             lower the minimum required perl.
57              
58             =head1 AUTHOR
59              
60             Ricardo SIGNES 😏 <cpan@semiotic.systems>
61              
62             =head1 COPYRIGHT AND LICENSE
63              
64             This software is copyright (c) 2026 by Ricardo SIGNES.
65              
66             This is free software; you can redistribute it and/or modify it under
67             the same terms as the Perl 5 programming language system itself.
68              
69             =cut