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.037;
2             # ABSTRACT: something that provides a name for the dist
3              
4 2     2   11214 use Moose::Role;
  2         6  
  2         19  
5             with 'Dist::Zilla::Role::Plugin';
6              
7 2     2   10031 use Dist::Zilla::Pragmas;
  2         5  
  2         19  
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   12 no Moose::Role;
  2         5  
  2         12  
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.037
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
52             released in the last two to three years. (That is, if the most recently
53             released version is v5.40, then this module should work on both v5.40 and
54             v5.38.)
55              
56             Although it may work on older versions of perl, no guarantee is made that the
57             minimum required version will not be increased. The version may be increased
58             for any reason, and there is no promise that patches will be accepted to
59             lower the minimum required perl.
60              
61             =head1 AUTHOR
62              
63             Ricardo SIGNES 😏 <cpan@semiotic.systems>
64              
65             =head1 COPYRIGHT AND LICENSE
66              
67             This software is copyright (c) 2026 by Ricardo SIGNES.
68              
69             This is free software; you can redistribute it and/or modify it under
70             the same terms as the Perl 5 programming language system itself.
71              
72             =cut