line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of Dist-Zilla-Plugin-AuthorSignatureTest |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is copyright (c) 2017 by Michael Schout. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software; you can redistribute it and/or modify it under |
7
|
|
|
|
|
|
|
# the same terms as the Perl 5 programming language system itself. |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::AuthorSignatureTest; |
10
|
|
|
|
|
|
|
$Dist::Zilla::Plugin::AuthorSignatureTest::VERSION = '0.02'; |
11
|
|
|
|
|
|
|
# ABSTRACT: An Author Distribution C<SIGNATURE> Test for L<Dist::Zilla> |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
3803073
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
14
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
1
|
|
5
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
8
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
extends 'Dist::Zilla::Plugin::InlineFiles'; |
19
|
|
|
|
|
|
|
with 'Dist::Zilla::Role::PrereqSource'; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub register_prereqs { |
23
|
1
|
|
|
1
|
0
|
99501
|
my $self = shift; |
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
|
|
26
|
$self->zilla->register_prereqs( |
26
|
|
|
|
|
|
|
{ type => 'requires', phase => 'develop' }, |
27
|
|
|
|
|
|
|
'Test::Signature' => 0); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=pod |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Dist::Zilla::Plugin::AuthorSignatureTest - An Author Distribution C<SIGNATURE> Test for L<Dist::Zilla> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 0.02 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This is an extensionof L<Dist::Zilla::Plugin::InlineFile>, providing the |
45
|
|
|
|
|
|
|
following files: |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
xt/author/signature.t - a standard Test::Signature test |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This test uses L<Test::Signature> to test the SIGNATURE file in your dist. If |
50
|
|
|
|
|
|
|
L<Test::Signature> is not installed, the test is skipped. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=for Pod::Coverage register_prereqs |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 SOURCE |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
The development version is on github at L<https://github.com/mschout/perl-dist-zilla-plugin-authorsignaturetest> |
57
|
|
|
|
|
|
|
and may be cloned from L<git://github.com/mschout/perl-dist-zilla-plugin-authorsignaturetest.git> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 BUGS |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Please report any bugs or feature requests to bug-dist-zilla-plugin-authorsignaturetest@rt.cpan.org or through the web interface at: |
62
|
|
|
|
|
|
|
http://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-AuthorSignatureTest |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 AUTHOR |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Michael Schout <mschout@cpan.org> |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Michael Schout. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
73
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
__DATA__ |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
__[ xt/author/signature.t ]__ |
80
|
|
|
|
|
|
|
#!perl -w |
81
|
|
|
|
|
|
|
# This file was automatically generated by Dist::Zilla::Plugin::AuthorSignatureTest |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
use strict; |
84
|
|
|
|
|
|
|
use warnings; |
85
|
|
|
|
|
|
|
use Test::More; |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
unless (eval { require Test::Signature; 1 }) { |
88
|
|
|
|
|
|
|
plan skip_all => 'Test::Signature is required for this test'; |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Test::Signature::signature_ok(); |
92
|
|
|
|
|
|
|
done_testing; |