File Coverage

blib/lib/Dist/Zilla/Role/ReleaseStatusProvider.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 provides a release status for the dist
2              
3             use Moose::Role;
4 3     3   19115 with 'Dist::Zilla::Role::Plugin';
  3         8  
  3         25  
5              
6             use Dist::Zilla::Pragmas;
7 3     3   16723  
  3         11  
  3         26  
8             use namespace::autoclean;
9 3     3   26  
  3         7  
  3         29  
10             #pod =head1 DESCRIPTION
11             #pod
12             #pod Plugins implementing this role must provide a C<provide_release_status>
13             #pod method that will be called when setting the dist's version.
14             #pod
15             #pod If C<provides_release_status> returns undef, it will be ignored.
16             #pod
17             #pod =cut
18              
19             requires 'provide_release_status';
20              
21             1;
22              
23             #pod =head1 SEE ALSO
24             #pod
25             #pod Core Dist::Zilla plugins implementing this role:
26             #pod L<AutoVersion|Dist::Zilla::Plugin::AutoVersion>.
27             #pod
28             #pod =cut
29              
30              
31             =pod
32              
33             =encoding UTF-8
34              
35             =head1 NAME
36              
37             Dist::Zilla::Role::ReleaseStatusProvider - something that provides a release status for the dist
38              
39             =head1 VERSION
40              
41             version 6.028
42              
43             =head1 DESCRIPTION
44              
45             Plugins implementing this role must provide a C<provide_release_status>
46             method that will be called when setting the dist's version.
47              
48             If C<provides_release_status> returns undef, it will be ignored.
49              
50             =head1 PERL VERSION
51              
52             This module should work on any version of perl still receiving updates from
53             the Perl 5 Porters. This means it should work on any version of perl released
54             in the last two to three years. (That is, if the most recently released
55             version is v5.40, then this module should work on both v5.40 and v5.38.)
56              
57             Although it may work on older versions of perl, no guarantee is made that the
58             minimum required version will not be increased. The version may be increased
59             for any reason, and there is no promise that patches will be accepted to lower
60             the minimum required perl.
61              
62             =head1 SEE ALSO
63              
64             Core Dist::Zilla plugins implementing this role:
65             L<AutoVersion|Dist::Zilla::Plugin::AutoVersion>.
66              
67             =head1 AUTHOR
68              
69             Ricardo SIGNES 😏 <cpan@semiotic.systems>
70              
71             =head1 COPYRIGHT AND LICENSE
72              
73             This software is copyright (c) 2022 by Ricardo SIGNES.
74              
75             This is free software; you can redistribute it and/or modify it under
76             the same terms as the Perl 5 programming language system itself.
77              
78             =cut