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