line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
166978
|
use strict; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
33
|
|
2
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
75
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Dist::Zilla::PluginBundle::WCS; |
5
|
|
|
|
|
|
|
$Dist::Zilla::PluginBundle::WCS::VERSION = '0.001'; |
6
|
|
|
|
|
|
|
# ABSTRACT: WCS distribution build |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
587
|
use Moose; |
|
1
|
|
|
|
|
465577
|
|
|
1
|
|
|
|
|
8
|
|
9
|
1
|
|
|
1
|
|
8350
|
use Dist::Zilla; |
|
1
|
|
|
|
|
1151879
|
|
|
1
|
|
|
|
|
69
|
|
10
|
|
|
|
|
|
|
with |
11
|
|
|
|
|
|
|
'Dist::Zilla::Role::PluginBundle::Easy', |
12
|
|
|
|
|
|
|
'Dist::Zilla::Role::PluginBundle::PluginRemover', |
13
|
|
|
|
|
|
|
'Dist::Zilla::Role::PluginBundle::Config::Slicer'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
645
|
use Dist::Zilla::PluginBundle::Basic; |
|
1
|
|
|
|
|
72907
|
|
|
1
|
|
|
|
|
45
|
|
18
|
1
|
|
|
1
|
|
618
|
use Dist::Zilla::PluginBundle::Filter; |
|
1
|
|
|
|
|
13604
|
|
|
1
|
|
|
|
|
37
|
|
19
|
1
|
|
|
1
|
|
523
|
use Dist::Zilla::PluginBundle::Git; |
|
1
|
|
|
|
|
580549
|
|
|
1
|
|
|
|
|
207
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub configure { |
22
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
|
$self->add_plugins( |
25
|
|
|
|
|
|
|
[ |
26
|
|
|
|
|
|
|
'Git::NextVersion' => { |
27
|
|
|
|
|
|
|
version_regexp => '^([0-9]+\.[0-9]+)$', |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
], |
30
|
|
|
|
|
|
|
'License', |
31
|
|
|
|
|
|
|
[ CopyFilesFromBuild => { copy => 'LICENSE', } ], |
32
|
|
|
|
|
|
|
[ GatherDir => { exclude_filename => 'LICENSE', } ], |
33
|
|
|
|
|
|
|
[ |
34
|
|
|
|
|
|
|
PkgVersion => { |
35
|
|
|
|
|
|
|
die_on_existing_version => 1, |
36
|
|
|
|
|
|
|
die_on_line_insertion => 1, |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
], |
39
|
|
|
|
|
|
|
[ |
40
|
|
|
|
|
|
|
NextRelease => { |
41
|
|
|
|
|
|
|
timezone => 'America/Chicago', |
42
|
|
|
|
|
|
|
format => '%-9v %{yyyy-MM-dd}d', |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
], |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
$self->add_bundle( |
48
|
|
|
|
|
|
|
'@Git' => { |
49
|
|
|
|
|
|
|
tag_format => '%v', |
50
|
|
|
|
|
|
|
remotes_must_exist => 0, |
51
|
|
|
|
|
|
|
push_to => [ 'origin :', 'backup :', ] |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
0
|
|
|
|
|
|
$self->add_bundle( |
56
|
|
|
|
|
|
|
'@Filter' => { |
57
|
|
|
|
|
|
|
'-bundle' => '@Basic', |
58
|
|
|
|
|
|
|
'-remove' => [ 'License', 'GatherDir' ], |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
|
62
|
0
|
|
|
|
|
|
$self->add_plugins( |
63
|
|
|
|
|
|
|
qw/ |
64
|
|
|
|
|
|
|
InstallGuide |
65
|
|
|
|
|
|
|
Git::Contributors |
66
|
|
|
|
|
|
|
GithebMeta |
67
|
|
|
|
|
|
|
MetaConfig |
68
|
|
|
|
|
|
|
MetaJSON |
69
|
|
|
|
|
|
|
PodWeaver |
70
|
|
|
|
|
|
|
/, |
71
|
|
|
|
|
|
|
[ |
72
|
|
|
|
|
|
|
ReadmeAnyFromPod => { |
73
|
|
|
|
|
|
|
type => 'pod', |
74
|
|
|
|
|
|
|
filename => 'README.pod', |
75
|
|
|
|
|
|
|
location => 'root', |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
], |
78
|
|
|
|
|
|
|
qw/ |
79
|
|
|
|
|
|
|
TaskWeaver |
80
|
|
|
|
|
|
|
AutoPrereqs |
81
|
|
|
|
|
|
|
MetaTests |
82
|
|
|
|
|
|
|
Test::ChangeHasContent |
83
|
|
|
|
|
|
|
Test::NoTabs |
84
|
|
|
|
|
|
|
/, |
85
|
|
|
|
|
|
|
[ |
86
|
|
|
|
|
|
|
'Test::EOL' => { |
87
|
|
|
|
|
|
|
trailing_whitespace => 1, |
88
|
|
|
|
|
|
|
all_reasons => 1, |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
], |
91
|
|
|
|
|
|
|
qw/ |
92
|
|
|
|
|
|
|
Test::Compile |
93
|
|
|
|
|
|
|
PodSyntaxTests |
94
|
|
|
|
|
|
|
PodCoverageTests |
95
|
|
|
|
|
|
|
Test::Pod::No404s |
96
|
|
|
|
|
|
|
Test::ReportPrereqs |
97
|
|
|
|
|
|
|
Test::Perl::Critic |
98
|
|
|
|
|
|
|
Test::Kwalitee |
99
|
|
|
|
|
|
|
/, |
100
|
|
|
|
|
|
|
[ |
101
|
|
|
|
|
|
|
'Git::CommitBuild' => { |
102
|
|
|
|
|
|
|
branch => '', |
103
|
|
|
|
|
|
|
release_branch => 'release', |
104
|
|
|
|
|
|
|
release_message => 'Build release of %v (on %b)' |
105
|
|
|
|
|
|
|
} |
106
|
|
|
|
|
|
|
], |
107
|
|
|
|
|
|
|
qw/ |
108
|
|
|
|
|
|
|
TestRelease |
109
|
|
|
|
|
|
|
ConfirmRelease |
110
|
|
|
|
|
|
|
/, |
111
|
|
|
|
|
|
|
); |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
115
|
1
|
|
|
1
|
|
11
|
no Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
1; |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
__END__ |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=pod |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=encoding UTF-8 |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=head1 NAME |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Dist::Zilla::PluginBundle::WCS - WCS distribution build |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head1 VERSION |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
version 0.001 |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=head1 DESCRIPTION |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
This is the plugin bundle that WCS uses. It is equivalent to: |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
[Git::NextVersion] |
138
|
|
|
|
|
|
|
version_regexp = '^([0-9]+\.[0-9]+)$' |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
[License] |
141
|
|
|
|
|
|
|
[CopyFilesFromBuild] |
142
|
|
|
|
|
|
|
copy = LICENSE |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
[GatherDir] |
145
|
|
|
|
|
|
|
exclude_filename = LICENSE |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
[PkgVersion] |
148
|
|
|
|
|
|
|
die_on_existing_version = 1 |
149
|
|
|
|
|
|
|
die_on_line_insertion = 1 |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
[NextRelease] |
152
|
|
|
|
|
|
|
timezone = America/Chicago |
153
|
|
|
|
|
|
|
format = %-9v %{yyyy-MM-dd}d |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
[@Git] |
156
|
|
|
|
|
|
|
tag_format = '%v' |
157
|
|
|
|
|
|
|
remotes_must_exist = 0 |
158
|
|
|
|
|
|
|
push_to = 'origin :' |
159
|
|
|
|
|
|
|
push_to = 'backup :' |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
[@Filter] |
162
|
|
|
|
|
|
|
-bundle = @Basic |
163
|
|
|
|
|
|
|
-remove = License |
164
|
|
|
|
|
|
|
-remove = GatherDir |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
[InstallGuide] |
167
|
|
|
|
|
|
|
[Git::Contributors] |
168
|
|
|
|
|
|
|
[GithubMeta] |
169
|
|
|
|
|
|
|
[MetaConfig] |
170
|
|
|
|
|
|
|
[MetaYAML] |
171
|
|
|
|
|
|
|
[MetaJSON] |
172
|
|
|
|
|
|
|
[PodWeaver] |
173
|
|
|
|
|
|
|
[ReadmeAnyFromPod |
174
|
|
|
|
|
|
|
type = pod |
175
|
|
|
|
|
|
|
filename = README.pod |
176
|
|
|
|
|
|
|
location = root |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
[AutoPrereqs] |
179
|
|
|
|
|
|
|
[MetaTests] |
180
|
|
|
|
|
|
|
[Test::ChangesHasContent] |
181
|
|
|
|
|
|
|
[Test::NoTabs] |
182
|
|
|
|
|
|
|
[Test::EOL] |
183
|
|
|
|
|
|
|
trailing_whitespace = 1 |
184
|
|
|
|
|
|
|
all_resons = 1 |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
[Test::Compile] |
187
|
|
|
|
|
|
|
[PodSyntaxTests] |
188
|
|
|
|
|
|
|
[PodCoverageTests] |
189
|
|
|
|
|
|
|
[Test::Pod::No404s] |
190
|
|
|
|
|
|
|
[Test::ReportPrereqs] |
191
|
|
|
|
|
|
|
[Test::Perl::Critic] |
192
|
|
|
|
|
|
|
[Test::Kwalitee] |
193
|
|
|
|
|
|
|
[Git::CommitBuild] |
194
|
|
|
|
|
|
|
branch = |
195
|
|
|
|
|
|
|
release_branch = release |
196
|
|
|
|
|
|
|
release_message = Build release of %v (on %b) |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
[TestRelease] |
199
|
|
|
|
|
|
|
[ConfirmRelease] |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
=head1 FUNCTIONS |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
=head2 configure |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=head1 AUTHOR |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
William C Scherz III <wcs@cpan.org> |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
This software is copyright (c) 2019 by William C Scherz III. |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
214
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
=cut |