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.037;
2             # ABSTRACT: something that provides metadata (for META.yml/json)
3              
4 7     7   798516 use Moose::Role;
  7         5001  
  7         90  
5             with 'Dist::Zilla::Role::Plugin';
6              
7 7     7   37735 use Dist::Zilla::Pragmas;
  7         13  
  7         56  
8              
9 7     7   50 use namespace::autoclean;
  7         18  
  7         59  
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.037
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
47             released in the last two to three years. (That is, if the most recently
48             released version is v5.40, then this module should work on both v5.40 and
49             v5.38.)
50              
51             Although it may work on older versions of perl, no guarantee is made that the
52             minimum required version will not be increased. The version may be increased
53             for any reason, and there is no promise that patches will be accepted to
54             lower the minimum required perl.
55              
56             =head1 METHODS
57              
58             =head2 metadata
59              
60             This method (which must be provided by classes implementing this role)
61             returns a hashref of data to be (deeply) merged together with pre-existing
62             metadata.
63              
64             =head1 SEE ALSO
65              
66             Core Dist::Zilla plugins implementing this role:
67             L<ConfigMeta|Dist::Zilla::Plugin::ConfigMeta>.
68             L<MetaNoIndex|Dist::Zilla::Plugin::MetaNoIndex>.
69              
70             Dist::Zilla plugins on the CPAN:
71             L<GithubMeta|Dist::Zilla::Plugin::GithubMeta>...
72              
73             =head1 AUTHOR
74              
75             Ricardo SIGNES 😏 <cpan@semiotic.systems>
76              
77             =head1 COPYRIGHT AND LICENSE
78              
79             This software is copyright (c) 2026 by Ricardo SIGNES.
80              
81             This is free software; you can redistribute it and/or modify it under
82             the same terms as the Perl 5 programming language system itself.
83              
84             =cut
85              
86             __END__
87              
88             #pod =head1 SEE ALSO
89             #pod
90             #pod Core Dist::Zilla plugins implementing this role:
91             #pod L<ConfigMeta|Dist::Zilla::Plugin::ConfigMeta>.
92             #pod L<MetaNoIndex|Dist::Zilla::Plugin::MetaNoIndex>.
93             #pod
94             #pod Dist::Zilla plugins on the CPAN:
95             #pod L<GithubMeta|Dist::Zilla::Plugin::GithubMeta>...
96             #pod
97             #pod =cut