line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Zilla::Plugin::Test::Legal; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# ABSTRACT: common tests to check for copyright and license notices |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
27326
|
use 5.006; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
78
|
|
6
|
2
|
|
|
2
|
|
7
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
63
|
|
7
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
61
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
1095
|
use namespace::autoclean; |
|
2
|
|
|
|
|
36552
|
|
|
2
|
|
|
|
|
14
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
608
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
extends 'Dist::Zilla::Plugin::InlineFiles'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = '0.02'; # VERSION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=pod |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=encoding UTF-8 |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=for :stopwords Alan Young cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee |
25
|
|
|
|
|
|
|
diff irc mailto metadata placeholders metacpan |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Dist::Zilla::Plugin::Test::Legal - common tests to check for copyright and license notices |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 VERSION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This document describes v0.02 of Dist::Zilla::Plugin::Test::Legal |
34
|
|
|
|
|
|
|
Released November 21, 2014 as part of Dist-Zilla-Plugin-Test-Legal. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SYNOPSIS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
in C<dist.ini> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
[Test::Legal] |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 DESCRIPTION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This module will add a L<Test::Legal> test as a release test to your module |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 REQUIRES |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=over 4 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item * L<Moose> |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item * L<namespace::autoclean> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=back |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 SUPPORT |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 Perldoc |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
perldoc Dist::Zilla::Plugin::Test::Legal |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head2 Websites |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
The following websites have more information about this module, and may be of help to you. As always, |
67
|
|
|
|
|
|
|
in addition to those websites please use your favorite search engine to discover more resources. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=over 4 |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
MetaCPAN |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
A modern, open-source CPAN search engine, useful to view POD in HTML format. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
L<http://metacpan.org/release/Dist-Zilla-Plugin-Test-Legal> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Search CPAN |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
The default CPAN search engine, useful to view POD in HTML format. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
L<http://search.cpan.org/dist/Dist-Zilla-Plugin-Test-Legal> |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item * |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
RT: CPAN's Bug Tracker |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
L<https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Plugin-Test-Legal> |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item * |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
AnnoCPAN |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
The AnnoCPAN is a website that allows community annotations of Perl module documentation. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
L<http://annocpan.org/dist/Dist-Zilla-Plugin-Test-Legal> |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item * |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
CPAN Ratings |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
The CPAN Ratings is a website that allows community ratings and reviews of Perl modules. |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/Dist-Zilla-Plugin-Test-Legal> |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=item * |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
CPAN Forum |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
The CPAN Forum is a web forum for discussing Perl modules. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
L<http://cpanforum.com/dist/Dist-Zilla-Plugin-Test-Legal> |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=item * |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
CPANTS |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
L<http://cpants.cpanauthors.org/dist/Dist-Zilla-Plugin-Test-Legal> |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=item * |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
CPAN Testers |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
The CPAN Testers is a network of smokers who run automated tests on uploaded CPAN distributions. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
L<http://www.cpantesters.org/distro/D/Dist-Zilla-Plugin-Test-Legal> |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=item * |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
CPAN Testers Matrix |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms. |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
L<http://matrix.cpantesters.org/?dist=Dist-Zilla-Plugin-Test-Legal> |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=item * |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
CPAN Testers Dependencies |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
L<http://deps.cpantesters.org/?module=Dist::Zilla::Plugin::Test::Legal> |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=back |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head2 Email |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
You can email the author of this module at C<AYOUNG at cpan.org> asking for help with any problems you have. |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=head2 Bugs / Feature Requests |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
Please report any bugs or feature requests through the web interface at L<https://github.com/harleypig/Dist-Zilla-Plugin-Test-Legal/issues>. You will be automatically notified of any progress on the request by the system. |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=head2 Source Code |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
The code is open to the world, and available for you to hack on. Please feel free to browse it and play |
164
|
|
|
|
|
|
|
with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull |
165
|
|
|
|
|
|
|
from your repository :) |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
L<https://github.com/harleypig/Dist-Zilla-Plugin-Test-Legal> |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
git clone git://github.com/harleypig/Dist-Zilla-Plugin-Test-Legal.git |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=head1 INSTALLATION |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
See perlmodinstall for information and options on installing Perl modules. |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head1 CHANGES |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=head2 Version 0.01 (2012-01-03T20:17:03Z) |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=over 4 |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=item * |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
Initial Creation |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
=back |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
=head1 AUTHOR |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
Alan Young <ayoung@cpan.org> |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
This software is copyright (c) 2014 by Alan Young. |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
196
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
=head1 DISCLAIMER OF WARRANTY |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
201
|
|
|
|
|
|
|
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT |
202
|
|
|
|
|
|
|
WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER |
203
|
|
|
|
|
|
|
PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, |
204
|
|
|
|
|
|
|
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |
205
|
|
|
|
|
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
206
|
|
|
|
|
|
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |
207
|
|
|
|
|
|
|
SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME |
208
|
|
|
|
|
|
|
THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
211
|
|
|
|
|
|
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
212
|
|
|
|
|
|
|
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE |
213
|
|
|
|
|
|
|
TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR |
214
|
|
|
|
|
|
|
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE |
215
|
|
|
|
|
|
|
SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
216
|
|
|
|
|
|
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
217
|
|
|
|
|
|
|
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
218
|
|
|
|
|
|
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
219
|
|
|
|
|
|
|
DAMAGES. |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
=cut |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
__DATA__ |
224
|
|
|
|
|
|
|
__[ xt/release/test-legal.t ]__ |
225
|
|
|
|
|
|
|
use strict; |
226
|
|
|
|
|
|
|
use warnings; |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
use Test::More; |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
eval 'use Test::Legal'; |
231
|
|
|
|
|
|
|
plan skip_all => 'Test::Legal required for testing licenses' |
232
|
|
|
|
|
|
|
if $@ |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
copyright_ok; |
235
|
|
|
|
|
|
|
license_ok; |