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.037;
2             # ABSTRACT: something that provides a release status for the dist
3              
4 3     3   13491 use Moose::Role;
  3         20  
  3         24  
5             with 'Dist::Zilla::Role::Plugin';
6              
7 3     3   13546 use Dist::Zilla::Pragmas;
  3         6  
  3         24  
8              
9 3     3   21 use namespace::autoclean;
  3         5  
  3         30  
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.037
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
56             released in the last two to three years. (That is, if the most recently
57             released version is v5.40, then this module should work on both v5.40 and
58             v5.38.)
59              
60             Although it may work on older versions of perl, no guarantee is made that the
61             minimum required version will not be increased. The version may be increased
62             for any reason, and there is no promise that patches will be accepted to
63             lower the minimum required perl.
64              
65             =head1 SEE ALSO
66              
67             Core Dist::Zilla plugins implementing this role:
68             L<AutoVersion|Dist::Zilla::Plugin::AutoVersion>.
69              
70             =head1 AUTHOR
71              
72             Ricardo SIGNES 😏 <cpan@semiotic.systems>
73              
74             =head1 COPYRIGHT AND LICENSE
75              
76             This software is copyright (c) 2026 by Ricardo SIGNES.
77              
78             This is free software; you can redistribute it and/or modify it under
79             the same terms as the Perl 5 programming language system itself.
80              
81             =cut