line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: common extra tests for META.yml |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
use Moose; |
4
|
2
|
|
|
2
|
|
2135
|
extends 'Dist::Zilla::Plugin::InlineFiles'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
30
|
|
5
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::PrereqSource'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Dist::Zilla::Pragmas; |
8
|
2
|
|
|
2
|
|
14532
|
|
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
40
|
|
9
|
|
|
|
|
|
|
use namespace::autoclean; |
10
|
2
|
|
|
2
|
|
21
|
|
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
20
|
|
11
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
12
|
|
|
|
|
|
|
#pod |
13
|
|
|
|
|
|
|
#pod This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the |
14
|
|
|
|
|
|
|
#pod following files: |
15
|
|
|
|
|
|
|
#pod |
16
|
|
|
|
|
|
|
#pod xt/author/meta-yaml.t - a standard Test::CPAN::Meta test |
17
|
|
|
|
|
|
|
#pod |
18
|
|
|
|
|
|
|
#pod L<Test::CPAN::Meta> will be added as a C<develop requires> dependency (which |
19
|
|
|
|
|
|
|
#pod can be installed via C<< dzil listdeps --author | cpanm >>). |
20
|
|
|
|
|
|
|
#pod |
21
|
|
|
|
|
|
|
#pod =head1 SEE ALSO |
22
|
|
|
|
|
|
|
#pod |
23
|
|
|
|
|
|
|
#pod Core Dist::Zilla plugins: |
24
|
|
|
|
|
|
|
#pod L<MetaResources|Dist::Zilla::Plugin::MetaResources>, |
25
|
|
|
|
|
|
|
#pod L<MetaNoIndex|Dist::Zilla::Plugin::MetaNoIndex>, |
26
|
|
|
|
|
|
|
#pod L<MetaYAML|Dist::Zilla::Plugin::MetaYAML>, |
27
|
|
|
|
|
|
|
#pod L<MetaJSON|Dist::Zilla::Plugin::MetaJSON>, |
28
|
|
|
|
|
|
|
#pod L<MetaConfig|Dist::Zilla::Plugin::MetaConfig>. |
29
|
|
|
|
|
|
|
#pod |
30
|
|
|
|
|
|
|
#pod =cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Register the author test prereq as a "develop requires" |
33
|
|
|
|
|
|
|
# so it will be listed in "dzil listdeps --author" |
34
|
|
|
|
|
|
|
my ($self) = @_; |
35
|
|
|
|
|
|
|
|
36
|
1
|
|
|
1
|
0
|
4
|
$self->zilla->register_prereqs( |
37
|
|
|
|
|
|
|
{ |
38
|
1
|
|
|
|
|
35
|
phase => 'develop', type => 'requires', |
39
|
|
|
|
|
|
|
}, |
40
|
|
|
|
|
|
|
'Test::CPAN::Meta' => 0, |
41
|
|
|
|
|
|
|
); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=pod |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=encoding UTF-8 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 NAME |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Dist::Zilla::Plugin::MetaTests - common extra tests for META.yml |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 VERSION |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
version 6.028 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 DESCRIPTION |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This is an extension of L<Dist::Zilla::Plugin::InlineFiles>, providing the |
62
|
|
|
|
|
|
|
following files: |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
xt/author/meta-yaml.t - a standard Test::CPAN::Meta test |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
L<Test::CPAN::Meta> will be added as a C<develop requires> dependency (which |
67
|
|
|
|
|
|
|
can be installed via C<< dzil listdeps --author | cpanm >>). |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 PERL VERSION |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
72
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
73
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
74
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
77
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
78
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
79
|
|
|
|
|
|
|
the minimum required perl. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 SEE ALSO |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Core Dist::Zilla plugins: |
84
|
|
|
|
|
|
|
L<MetaResources|Dist::Zilla::Plugin::MetaResources>, |
85
|
|
|
|
|
|
|
L<MetaNoIndex|Dist::Zilla::Plugin::MetaNoIndex>, |
86
|
|
|
|
|
|
|
L<MetaYAML|Dist::Zilla::Plugin::MetaYAML>, |
87
|
|
|
|
|
|
|
L<MetaJSON|Dist::Zilla::Plugin::MetaJSON>, |
88
|
|
|
|
|
|
|
L<MetaConfig|Dist::Zilla::Plugin::MetaConfig>. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 AUTHOR |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Ricardo SIGNES 😏 <cpan@semiotic.systems> |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Ricardo SIGNES. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
99
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=cut |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
___[ xt/author/distmeta.t ]___ |
104
|
|
|
|
|
|
|
#!perl |
105
|
|
|
|
|
|
|
# This file was automatically generated by Dist::Zilla::Plugin::MetaTests. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
use Test::CPAN::Meta; |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
meta_yaml_ok(); |