File Coverage

blib/lib/Dist/Zilla/Role/MetaProvider.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::MetaProvider 6.029;
2             # ABSTRACT: something that provides metadata (for META.yml/json)
3              
4 7     7   4785 use Moose::Role;
  7         5504  
  7         57  
5             with 'Dist::Zilla::Role::Plugin';
6              
7 7     7   38743 use Dist::Zilla::Pragmas;
  7         23  
  7         56  
8              
9 7     7   57 use namespace::autoclean;
  7         19  
  7         61  
10              
11             #pod =head1 DESCRIPTION
12             #pod
13             #pod This role provides data to merge into the distribution metadata.
14             #pod
15             #pod =method metadata
16             #pod
17             #pod This method (which must be provided by classes implementing this role)
18             #pod returns a hashref of data to be (deeply) merged together with pre-existing
19             #pod metadata.
20             #pod
21             #pod =cut
22              
23             requires 'metadata';
24              
25             1;
26              
27             =pod
28              
29             =encoding UTF-8
30              
31             =head1 NAME
32              
33             Dist::Zilla::Role::MetaProvider - something that provides metadata (for META.yml/json)
34              
35             =head1 VERSION
36              
37             version 6.029
38              
39             =head1 DESCRIPTION
40              
41             This role provides data to merge into the distribution metadata.
42              
43             =head1 PERL VERSION
44              
45             This module should work on any version of perl still receiving updates from
46             the Perl 5 Porters. This means it should work on any version of perl released
47             in the last two to three years. (That is, if the most recently released
48             version is v5.40, then this module should work on both v5.40 and v5.38.)
49              
50             Although it may work on older versions of perl, no guarantee is made that the
51             minimum required version will not be increased. The version may be increased
52             for any reason, and there is no promise that patches will be accepted to lower
53             the minimum required perl.
54              
55             =head1 METHODS
56              
57             =head2 metadata
58              
59             This method (which must be provided by classes implementing this role)
60             returns a hashref of data to be (deeply) merged together with pre-existing
61             metadata.
62              
63             =head1 SEE ALSO
64              
65             Core Dist::Zilla plugins implementing this role:
66             L<ConfigMeta|Dist::Zilla::Plugin::ConfigMeta>.
67             L<MetaNoIndex|Dist::Zilla::Plugin::MetaNoIndex>.
68              
69             Dist::Zilla plugins on the CPAN:
70             L<GithubMeta|Dist::Zilla::Plugin::GithubMeta>...
71              
72             =head1 AUTHOR
73              
74             Ricardo SIGNES 😏 <cpan@semiotic.systems>
75              
76             =head1 COPYRIGHT AND LICENSE
77              
78             This software is copyright (c) 2022 by Ricardo SIGNES.
79              
80             This is free software; you can redistribute it and/or modify it under
81             the same terms as the Perl 5 programming language system itself.
82              
83             =cut
84              
85             __END__
86              
87             #pod =head1 SEE ALSO
88             #pod
89             #pod Core Dist::Zilla plugins implementing this role:
90             #pod L<ConfigMeta|Dist::Zilla::Plugin::ConfigMeta>.
91             #pod L<MetaNoIndex|Dist::Zilla::Plugin::MetaNoIndex>.
92             #pod
93             #pod Dist::Zilla plugins on the CPAN:
94             #pod L<GithubMeta|Dist::Zilla::Plugin::GithubMeta>...
95             #pod
96             #pod =cut