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