File Coverage

blib/lib/Dist/Zilla/Role/NameProvider.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 name for the dist
2              
3             use Moose::Role;
4 2     2   11772 with 'Dist::Zilla::Role::Plugin';
  2         6  
  2         17  
5              
6             use Dist::Zilla::Pragmas;
7 2     2   11153  
  2         5  
  2         22  
8             #pod =head1 DESCRIPTION
9             #pod
10             #pod Plugins implementing this role must provide a C<provide_name> method that
11             #pod will be called when setting the dist's name.
12             #pod
13             #pod If a NameProvider offers a name but one has already been set, an
14             #pod exception will be raised. If C<provide_name> returns undef, it will be
15             #pod ignored.
16             #pod
17             #pod =cut
18              
19             requires 'provide_name';
20              
21             no Moose::Role;
22 2     2   16 1;
  2         6  
  2         15  
23              
24              
25             =pod
26              
27             =encoding UTF-8
28              
29             =head1 NAME
30              
31             Dist::Zilla::Role::NameProvider - something that provides a name for the dist
32              
33             =head1 VERSION
34              
35             version 6.028
36              
37             =head1 DESCRIPTION
38              
39             Plugins implementing this role must provide a C<provide_name> method that
40             will be called when setting the dist's name.
41              
42             If a NameProvider offers a name but one has already been set, an
43             exception will be raised. If C<provide_name> returns undef, it will be
44             ignored.
45              
46             =head1 PERL VERSION
47              
48             This module should work on any version of perl still receiving updates from
49             the Perl 5 Porters. This means it should work on any version of perl released
50             in the last two to three years. (That is, if the most recently released
51             version is v5.40, then this module should work on both v5.40 and 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 lower
56             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) 2022 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