| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
1
|
|
|
1
|
|
1688108
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
25
|
|
|
2
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
48
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Dist::Zilla::PluginBundle::DAGOLDEN; |
|
5
|
|
|
|
|
|
|
# ABSTRACT: Dist::Zilla configuration the way DAGOLDEN does it |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.077'; |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Dependencies |
|
10
|
1
|
|
|
1
|
|
4
|
use Moose 0.99; |
|
|
1
|
|
|
|
|
19
|
|
|
|
1
|
|
|
|
|
5
|
|
|
11
|
1
|
|
|
1
|
|
3831
|
use namespace::autoclean 0.09; |
|
|
1
|
|
|
|
|
16
|
|
|
|
1
|
|
|
|
|
6
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
57
|
use Dist::Zilla 5.014; # default_jobs |
|
|
1
|
|
|
|
|
12
|
|
|
|
1
|
|
|
|
|
19
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
462
|
use Dist::Zilla::PluginBundle::Filter (); |
|
|
1
|
|
|
|
|
12209
|
|
|
|
1
|
|
|
|
|
28
|
|
|
16
|
1
|
|
|
1
|
|
401
|
use Dist::Zilla::PluginBundle::Git 1.121010 (); |
|
|
1
|
|
|
|
|
455762
|
|
|
|
1
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
|
645
|
use Dist::Zilla::Plugin::Authority 1.006 (); |
|
|
1
|
|
|
|
|
167767
|
|
|
|
1
|
|
|
|
|
39
|
|
|
19
|
1
|
|
|
1
|
|
567
|
use Dist::Zilla::Plugin::Bugtracker 1.110 (); |
|
|
1
|
|
|
|
|
23659
|
|
|
|
1
|
|
|
|
|
33
|
|
|
20
|
1
|
|
|
1
|
|
499
|
use Dist::Zilla::Plugin::BumpVersionAfterRelease 0.003 (); # tweak Makefile.PL |
|
|
1
|
|
|
|
|
49103
|
|
|
|
1
|
|
|
|
|
30
|
|
|
21
|
1
|
|
|
1
|
|
553
|
use Dist::Zilla::Plugin::CheckChangesHasContent (); |
|
|
1
|
|
|
|
|
29243
|
|
|
|
1
|
|
|
|
|
28
|
|
|
22
|
1
|
|
|
1
|
|
551
|
use Dist::Zilla::Plugin::RunExtraTests (); |
|
|
1
|
|
|
|
|
26093
|
|
|
|
1
|
|
|
|
|
31
|
|
|
23
|
1
|
|
|
1
|
|
496
|
use Dist::Zilla::Plugin::CheckMetaResources 0.001 (); |
|
|
1
|
|
|
|
|
31092
|
|
|
|
1
|
|
|
|
|
37
|
|
|
24
|
1
|
|
|
1
|
|
598
|
use Dist::Zilla::Plugin::CheckPrereqsIndexed 0.002 (); |
|
|
1
|
|
|
|
|
14376
|
|
|
|
1
|
|
|
|
|
31
|
|
|
25
|
1
|
|
|
1
|
|
554
|
use Dist::Zilla::Plugin::Git::Contributors 0.007 (); |
|
|
1
|
|
|
|
|
92004
|
|
|
|
1
|
|
|
|
|
33
|
|
|
26
|
1
|
|
|
1
|
|
568
|
use Dist::Zilla::Plugin::CopyFilesFromBuild::Filtered (); |
|
|
1
|
|
|
|
|
23691
|
|
|
|
1
|
|
|
|
|
25
|
|
|
27
|
1
|
|
|
1
|
|
495
|
use Dist::Zilla::Plugin::CPANFile (); |
|
|
1
|
|
|
|
|
76153
|
|
|
|
1
|
|
|
|
|
28
|
|
|
28
|
1
|
|
|
1
|
|
634
|
use Dist::Zilla::Plugin::Git::NextVersion (); |
|
|
1
|
|
|
|
|
86523
|
|
|
|
1
|
|
|
|
|
30
|
|
|
29
|
1
|
|
|
1
|
|
632
|
use Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch (); |
|
|
1
|
|
|
|
|
251054
|
|
|
|
1
|
|
|
|
|
34
|
|
|
30
|
1
|
|
|
1
|
|
671
|
use Dist::Zilla::Plugin::GithubMeta 0.36 (); |
|
|
1
|
|
|
|
|
133606
|
|
|
|
1
|
|
|
|
|
53
|
|
|
31
|
1
|
|
|
1
|
|
603
|
use Dist::Zilla::Plugin::InsertCopyright 0.001 (); |
|
|
1
|
|
|
|
|
23851
|
|
|
|
1
|
|
|
|
|
29
|
|
|
32
|
1
|
|
|
1
|
|
526
|
use Dist::Zilla::Plugin::MetaNoIndex (); |
|
|
1
|
|
|
|
|
34905
|
|
|
|
1
|
|
|
|
|
33
|
|
|
33
|
1
|
|
|
1
|
|
574
|
use Dist::Zilla::Plugin::MetaProvides::Package 1.14 (); # hides private packages |
|
|
1
|
|
|
|
|
184942
|
|
|
|
1
|
|
|
|
|
34
|
|
|
34
|
1
|
|
|
1
|
|
593
|
use Dist::Zilla::Plugin::MinimumPerl (); |
|
|
1
|
|
|
|
|
148133
|
|
|
|
1
|
|
|
|
|
30
|
|
|
35
|
1
|
|
|
1
|
|
529
|
use Dist::Zilla::Plugin::SurgicalPodWeaver (); |
|
|
1
|
|
|
|
|
440350
|
|
|
|
1
|
|
|
|
|
33
|
|
|
36
|
1
|
|
|
1
|
|
618
|
use Dist::Zilla::Plugin::PromptIfStale 0.011 (); |
|
|
1
|
|
|
|
|
112932
|
|
|
|
1
|
|
|
|
|
33
|
|
|
37
|
1
|
|
|
1
|
|
581
|
use Dist::Zilla::Plugin::Prereqs::AuthorDeps (); |
|
|
1
|
|
|
|
|
49351
|
|
|
|
1
|
|
|
|
|
29
|
|
|
38
|
1
|
|
|
1
|
|
517
|
use Dist::Zilla::Plugin::RewriteVersion (); |
|
|
1
|
|
|
|
|
39774
|
|
|
|
1
|
|
|
|
|
30
|
|
|
39
|
1
|
|
|
1
|
|
531
|
use Dist::Zilla::Plugin::Pod2Readme (); |
|
|
1
|
|
|
|
|
12884
|
|
|
|
1
|
|
|
|
|
26
|
|
|
40
|
1
|
|
|
1
|
|
443
|
use Dist::Zilla::Plugin::TaskWeaver 0.101620 (); |
|
|
1
|
|
|
|
|
112498
|
|
|
|
1
|
|
|
|
|
44
|
|
|
41
|
1
|
|
|
1
|
|
599
|
use Dist::Zilla::Plugin::Test::Compile 2.036 (); # various features |
|
|
1
|
|
|
|
|
116095
|
|
|
|
1
|
|
|
|
|
40
|
|
|
42
|
1
|
|
|
1
|
|
556
|
use Dist::Zilla::Plugin::Test::MinimumVersion 2.000003 (); |
|
|
1
|
|
|
|
|
89227
|
|
|
|
1
|
|
|
|
|
30
|
|
|
43
|
1
|
|
|
1
|
|
617
|
use Dist::Zilla::Plugin::Test::Perl::Critic (); |
|
|
1
|
|
|
|
|
26494
|
|
|
|
1
|
|
|
|
|
31
|
|
|
44
|
1
|
|
|
1
|
|
585
|
use Dist::Zilla::Plugin::Test::PodSpelling 2.006001 (); # Pod::Wordlist |
|
|
1
|
|
|
|
|
94557
|
|
|
|
1
|
|
|
|
|
37
|
|
|
45
|
1
|
|
|
1
|
|
593
|
use Test::Portability::Files 0.06 (); # buggy before that |
|
|
1
|
|
|
|
|
5596
|
|
|
|
1
|
|
|
|
|
24
|
|
|
46
|
1
|
|
|
1
|
|
473
|
use Dist::Zilla::Plugin::Test::Portability (); |
|
|
1
|
|
|
|
|
29035
|
|
|
|
1
|
|
|
|
|
38
|
|
|
47
|
1
|
|
|
1
|
|
678
|
use Dist::Zilla::Plugin::Test::ReportPrereqs 0.016 (); # better reporting & bug fixes |
|
|
1
|
|
|
|
|
47257
|
|
|
|
1
|
|
|
|
|
33
|
|
|
48
|
1
|
|
|
1
|
|
617
|
use Dist::Zilla::Plugin::Test::Version (); |
|
|
1
|
|
|
|
|
59407
|
|
|
|
1
|
|
|
|
|
1013
|
|
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
with qw( |
|
51
|
|
|
|
|
|
|
Dist::Zilla::Role::PluginBundle::Easy |
|
52
|
|
|
|
|
|
|
Dist::Zilla::Role::PluginBundle::Config::Slicer |
|
53
|
|
|
|
|
|
|
Dist::Zilla::Role::PluginBundle::PluginRemover |
|
54
|
|
|
|
|
|
|
); |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub mvp_multivalue_args { qw/stopwords/ } |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
has stopwords => ( |
|
59
|
|
|
|
|
|
|
is => 'ro', |
|
60
|
|
|
|
|
|
|
isa => 'Maybe[ArrayRef]', |
|
61
|
|
|
|
|
|
|
lazy => 1, |
|
62
|
|
|
|
|
|
|
default => sub { |
|
63
|
|
|
|
|
|
|
exists $_[0]->payload->{stopwords} ? $_[0]->payload->{stopwords} : undef; |
|
64
|
|
|
|
|
|
|
}, |
|
65
|
|
|
|
|
|
|
); |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
has fake_release => ( |
|
68
|
|
|
|
|
|
|
is => 'ro', |
|
69
|
|
|
|
|
|
|
isa => 'Bool', |
|
70
|
|
|
|
|
|
|
lazy => 1, |
|
71
|
|
|
|
|
|
|
default => sub { $_[0]->payload->{fake_release} }, |
|
72
|
|
|
|
|
|
|
); |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
has no_git => ( |
|
75
|
|
|
|
|
|
|
is => 'ro', |
|
76
|
|
|
|
|
|
|
isa => 'Bool', |
|
77
|
|
|
|
|
|
|
lazy => 1, |
|
78
|
|
|
|
|
|
|
default => sub { $_[0]->payload->{no_git} }, |
|
79
|
|
|
|
|
|
|
); |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
has no_critic => ( |
|
82
|
|
|
|
|
|
|
is => 'ro', |
|
83
|
|
|
|
|
|
|
isa => 'Bool', |
|
84
|
|
|
|
|
|
|
lazy => 1, |
|
85
|
|
|
|
|
|
|
default => sub { |
|
86
|
|
|
|
|
|
|
exists $_[0]->payload->{no_critic} ? $_[0]->payload->{no_critic} : 0; |
|
87
|
|
|
|
|
|
|
}, |
|
88
|
|
|
|
|
|
|
); |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
has no_spellcheck => ( |
|
91
|
|
|
|
|
|
|
is => 'ro', |
|
92
|
|
|
|
|
|
|
isa => 'Bool', |
|
93
|
|
|
|
|
|
|
lazy => 1, |
|
94
|
|
|
|
|
|
|
default => sub { |
|
95
|
|
|
|
|
|
|
exists $_[0]->payload->{no_spellcheck} |
|
96
|
|
|
|
|
|
|
? $_[0]->payload->{no_spellcheck} |
|
97
|
|
|
|
|
|
|
: 0; |
|
98
|
|
|
|
|
|
|
}, |
|
99
|
|
|
|
|
|
|
); |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
has no_coverage => ( |
|
102
|
|
|
|
|
|
|
is => 'ro', |
|
103
|
|
|
|
|
|
|
isa => 'Bool', |
|
104
|
|
|
|
|
|
|
lazy => 1, |
|
105
|
|
|
|
|
|
|
default => sub { |
|
106
|
|
|
|
|
|
|
exists $_[0]->payload->{no_coverage} |
|
107
|
|
|
|
|
|
|
? $_[0]->payload->{no_coverage} |
|
108
|
|
|
|
|
|
|
: 0; |
|
109
|
|
|
|
|
|
|
}, |
|
110
|
|
|
|
|
|
|
); |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
has no_minimum_perl => ( |
|
113
|
|
|
|
|
|
|
is => 'ro', |
|
114
|
|
|
|
|
|
|
isa => 'Bool', |
|
115
|
|
|
|
|
|
|
lazy => 1, |
|
116
|
|
|
|
|
|
|
default => sub { |
|
117
|
|
|
|
|
|
|
exists $_[0]->payload->{no_minimum_perl} |
|
118
|
|
|
|
|
|
|
? $_[0]->payload->{no_minimum_perl} |
|
119
|
|
|
|
|
|
|
: 0; |
|
120
|
|
|
|
|
|
|
}, |
|
121
|
|
|
|
|
|
|
); |
|
122
|
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
has is_task => ( |
|
124
|
|
|
|
|
|
|
is => 'ro', |
|
125
|
|
|
|
|
|
|
isa => 'Bool', |
|
126
|
|
|
|
|
|
|
lazy => 1, |
|
127
|
|
|
|
|
|
|
default => sub { $_[0]->payload->{is_task} }, |
|
128
|
|
|
|
|
|
|
); |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
has auto_prereq => ( |
|
131
|
|
|
|
|
|
|
is => 'ro', |
|
132
|
|
|
|
|
|
|
isa => 'Bool', |
|
133
|
|
|
|
|
|
|
lazy => 1, |
|
134
|
|
|
|
|
|
|
default => sub { |
|
135
|
|
|
|
|
|
|
exists $_[0]->payload->{auto_prereq} ? $_[0]->payload->{auto_prereq} : 1; |
|
136
|
|
|
|
|
|
|
}, |
|
137
|
|
|
|
|
|
|
); |
|
138
|
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
has tag_format => ( |
|
140
|
|
|
|
|
|
|
is => 'ro', |
|
141
|
|
|
|
|
|
|
isa => 'Str', |
|
142
|
|
|
|
|
|
|
lazy => 1, |
|
143
|
|
|
|
|
|
|
default => sub { |
|
144
|
|
|
|
|
|
|
exists $_[0]->payload->{tag_format} ? $_[0]->payload->{tag_format} : 'release-%v',; |
|
145
|
|
|
|
|
|
|
}, |
|
146
|
|
|
|
|
|
|
); |
|
147
|
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
has version_regexp => ( |
|
149
|
|
|
|
|
|
|
is => 'ro', |
|
150
|
|
|
|
|
|
|
isa => 'Str', |
|
151
|
|
|
|
|
|
|
lazy => 1, |
|
152
|
|
|
|
|
|
|
default => sub { |
|
153
|
|
|
|
|
|
|
exists $_[0]->payload->{version_regexp} |
|
154
|
|
|
|
|
|
|
? $_[0]->payload->{version_regexp} |
|
155
|
|
|
|
|
|
|
: '^release-(.+)$', |
|
156
|
|
|
|
|
|
|
; |
|
157
|
|
|
|
|
|
|
}, |
|
158
|
|
|
|
|
|
|
); |
|
159
|
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
has weaver_config => ( |
|
161
|
|
|
|
|
|
|
is => 'ro', |
|
162
|
|
|
|
|
|
|
isa => 'Str', |
|
163
|
|
|
|
|
|
|
lazy => 1, |
|
164
|
|
|
|
|
|
|
default => sub { $_[0]->payload->{weaver_config} || '@DAGOLDEN' }, |
|
165
|
|
|
|
|
|
|
); |
|
166
|
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
has github_issues => ( |
|
168
|
|
|
|
|
|
|
is => 'ro', |
|
169
|
|
|
|
|
|
|
isa => 'Str', |
|
170
|
|
|
|
|
|
|
lazy => 1, |
|
171
|
|
|
|
|
|
|
default => sub { |
|
172
|
|
|
|
|
|
|
exists $_[0]->payload->{github_issues} ? $_[0]->payload->{github_issues} : 1; |
|
173
|
|
|
|
|
|
|
}, |
|
174
|
|
|
|
|
|
|
); |
|
175
|
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
has git_remote => ( |
|
177
|
|
|
|
|
|
|
is => 'ro', |
|
178
|
|
|
|
|
|
|
isa => 'Str', |
|
179
|
|
|
|
|
|
|
lazy => 1, |
|
180
|
|
|
|
|
|
|
default => sub { |
|
181
|
|
|
|
|
|
|
exists $_[0]->payload->{git_remote} ? $_[0]->payload->{git_remote} : 'origin',; |
|
182
|
|
|
|
|
|
|
}, |
|
183
|
|
|
|
|
|
|
); |
|
184
|
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
has authority => ( |
|
186
|
|
|
|
|
|
|
is => 'ro', |
|
187
|
|
|
|
|
|
|
isa => 'Str', |
|
188
|
|
|
|
|
|
|
lazy => 1, |
|
189
|
|
|
|
|
|
|
default => sub { |
|
190
|
|
|
|
|
|
|
exists $_[0]->payload->{authority} ? $_[0]->payload->{authority} : 'cpan:DAGOLDEN'; |
|
191
|
|
|
|
|
|
|
}, |
|
192
|
|
|
|
|
|
|
); |
|
193
|
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
has darkpan => ( |
|
195
|
|
|
|
|
|
|
is => 'ro', |
|
196
|
|
|
|
|
|
|
isa => 'Bool', |
|
197
|
|
|
|
|
|
|
lazy => 1, |
|
198
|
|
|
|
|
|
|
default => sub { |
|
199
|
|
|
|
|
|
|
exists $_[0]->payload->{darkpan} ? $_[0]->payload->{darkpan} : 0; |
|
200
|
|
|
|
|
|
|
}, |
|
201
|
|
|
|
|
|
|
); |
|
202
|
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
has no_bugtracker => ( # XXX deprecated |
|
204
|
|
|
|
|
|
|
is => 'ro', |
|
205
|
|
|
|
|
|
|
isa => 'Bool', |
|
206
|
|
|
|
|
|
|
lazy => 1, |
|
207
|
|
|
|
|
|
|
default => 0, |
|
208
|
|
|
|
|
|
|
); |
|
209
|
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
has auto_version => ( |
|
211
|
|
|
|
|
|
|
is => 'ro', |
|
212
|
|
|
|
|
|
|
isa => 'Bool', |
|
213
|
|
|
|
|
|
|
lazy => 1, |
|
214
|
|
|
|
|
|
|
default => sub { $_[0]->payload->{auto_version} }, |
|
215
|
|
|
|
|
|
|
); |
|
216
|
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
sub configure { |
|
218
|
1
|
|
|
1
|
0
|
5
|
my $self = shift; |
|
219
|
|
|
|
|
|
|
|
|
220
|
1
|
|
|
|
|
2
|
my @push_to = ('origin'); |
|
221
|
1
|
50
|
|
|
|
42
|
push @push_to, $self->git_remote if $self->git_remote ne 'origin'; |
|
222
|
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
$self->add_plugins( |
|
224
|
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
# version number |
|
226
|
|
|
|
|
|
|
( $self->auto_version ? 'AutoVersion' : 'RewriteVersion' ), |
|
227
|
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
# contributors |
|
229
|
|
|
|
|
|
|
( |
|
230
|
|
|
|
|
|
|
$self->no_git |
|
231
|
|
|
|
|
|
|
? () |
|
232
|
|
|
|
|
|
|
: 'Git::Contributors' |
|
233
|
|
|
|
|
|
|
), |
|
234
|
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
# gather and prune |
|
236
|
|
|
|
|
|
|
( |
|
237
|
|
|
|
|
|
|
$self->no_git |
|
238
|
|
|
|
|
|
|
? [ 'GatherDir' => { exclude_filename => [qw/README.mkdn cpanfile Makefile.PL/] } |
|
239
|
|
|
|
|
|
|
] # core |
|
240
|
|
|
|
|
|
|
: [ |
|
241
|
|
|
|
|
|
|
'Git::GatherDir' => { exclude_filename => [qw/README.mkdn cpanfile Makefile.PL/] } |
|
242
|
|
|
|
|
|
|
] |
|
243
|
|
|
|
|
|
|
), |
|
244
|
|
|
|
|
|
|
'PruneCruft', # core |
|
245
|
|
|
|
|
|
|
'ManifestSkip', # core |
|
246
|
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
# file munging |
|
248
|
|
|
|
|
|
|
( $self->auto_version ? 'PkgVersion' : () ), |
|
249
|
|
|
|
|
|
|
'InsertCopyright', |
|
250
|
|
|
|
|
|
|
( |
|
251
|
|
|
|
|
|
|
$self->is_task |
|
252
|
|
|
|
|
|
|
? 'TaskWeaver' |
|
253
|
|
|
|
|
|
|
: [ |
|
254
|
|
|
|
|
|
|
'SurgicalPodWeaver' => { |
|
255
|
|
|
|
|
|
|
config_plugin => $self->weaver_config, |
|
256
|
|
|
|
|
|
|
replacer => 'replace_with_comment', |
|
257
|
|
|
|
|
|
|
post_code_replacer => 'replace_with_nothing', |
|
258
|
|
|
|
|
|
|
} |
|
259
|
|
|
|
|
|
|
] |
|
260
|
|
|
|
|
|
|
), |
|
261
|
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
# generated distribution files |
|
263
|
|
|
|
|
|
|
'Pod2Readme', # in build dir |
|
264
|
|
|
|
|
|
|
'License', # core |
|
265
|
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
# generated t/ tests |
|
267
|
|
|
|
|
|
|
[ |
|
268
|
|
|
|
|
|
|
'Test::Compile' => { |
|
269
|
|
|
|
|
|
|
fake_home => 1, |
|
270
|
|
|
|
|
|
|
xt_mode => 1, |
|
271
|
|
|
|
|
|
|
} |
|
272
|
|
|
|
|
|
|
], |
|
273
|
|
|
|
|
|
|
( |
|
274
|
|
|
|
|
|
|
$self->no_minimum_perl |
|
275
|
|
|
|
|
|
|
? () |
|
276
|
|
|
|
|
|
|
: [ 'Test::MinimumVersion' => { max_target_perl => '5.010' } ] |
|
277
|
|
|
|
|
|
|
), |
|
278
|
|
|
|
|
|
|
'Test::ReportPrereqs', |
|
279
|
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
# generated xt/ tests |
|
281
|
|
|
|
|
|
|
( |
|
282
|
|
|
|
|
|
|
$self->no_spellcheck ? () |
|
283
|
|
|
|
|
|
|
: [ |
|
284
|
|
|
|
|
|
|
'Test::PodSpelling' => $self->stopwords ? { stopwords => $self->stopwords } : () |
|
285
|
|
|
|
|
|
|
] |
|
286
|
|
|
|
|
|
|
), |
|
287
|
|
|
|
|
|
|
( |
|
288
|
|
|
|
|
|
|
$self->no_critic ? () |
|
289
|
|
|
|
|
|
|
: ('Test::Perl::Critic') |
|
290
|
|
|
|
|
|
|
), |
|
291
|
|
|
|
|
|
|
'MetaTests', # core |
|
292
|
|
|
|
|
|
|
'PodSyntaxTests', # core |
|
293
|
|
|
|
|
|
|
( |
|
294
|
|
|
|
|
|
|
$self->no_coverage |
|
295
|
|
|
|
|
|
|
? () |
|
296
|
|
|
|
|
|
|
: ('PodCoverageTests') # core |
|
297
|
|
|
|
|
|
|
), |
|
298
|
|
|
|
|
|
|
[ 'Test::Portability' => { options => "test_one_dot = 0" } ], |
|
299
|
|
|
|
|
|
|
'Test::Version', |
|
300
|
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
# metadata |
|
302
|
|
|
|
|
|
|
[ |
|
303
|
|
|
|
|
|
|
'Authority' => { |
|
304
|
|
|
|
|
|
|
authority => $self->authority, |
|
305
|
|
|
|
|
|
|
do_munging => 0, |
|
306
|
|
|
|
|
|
|
} |
|
307
|
|
|
|
|
|
|
], |
|
308
|
|
|
|
|
|
|
'MinimumPerl', |
|
309
|
|
|
|
|
|
|
( |
|
310
|
|
|
|
|
|
|
$self->auto_prereq |
|
311
|
|
|
|
|
|
|
? [ 'AutoPrereqs' => { skip => "^t::lib" } ] |
|
312
|
|
|
|
|
|
|
: () |
|
313
|
|
|
|
|
|
|
), |
|
314
|
|
|
|
|
|
|
[ |
|
315
|
|
|
|
|
|
|
MetaNoIndex => { |
|
316
|
|
|
|
|
|
|
directory => [qw/t xt examples corpus/], |
|
317
|
|
|
|
|
|
|
'package' => [qw/DB/] |
|
318
|
|
|
|
|
|
|
} |
|
319
|
|
|
|
|
|
|
], |
|
320
|
|
|
|
|
|
|
[ 'MetaProvides::Package' => { meta_noindex => 1 } ], # AFTER MetaNoIndex |
|
321
|
|
|
|
|
|
|
( |
|
322
|
|
|
|
|
|
|
$self->darkpan |
|
323
|
|
|
|
|
|
|
? () |
|
324
|
|
|
|
|
|
|
: [ |
|
325
|
|
|
|
|
|
|
GithubMeta => { |
|
326
|
|
|
|
|
|
|
remote => [qw(origin github)], |
|
327
|
|
|
|
|
|
|
issues => $self->github_issues, |
|
328
|
|
|
|
|
|
|
} |
|
329
|
|
|
|
|
|
|
], |
|
330
|
|
|
|
|
|
|
), |
|
331
|
|
|
|
|
|
|
( |
|
332
|
|
|
|
|
|
|
( $self->no_git || $self->darkpan || !$self->github_issues ) ? ( |
|
333
|
|
|
|
|
|
|
# fake out Pod::Weaver::Section::Support |
|
334
|
|
|
|
|
|
|
[ |
|
335
|
|
|
|
|
|
|
'Bugtracker' => |
|
336
|
|
|
|
|
|
|
{ mailto => '', $self->darkpan ? ( web => "http://localhost/" ) : () } |
|
337
|
|
|
|
|
|
|
], |
|
338
|
|
|
|
|
|
|
) |
|
339
|
|
|
|
|
|
|
: () |
|
340
|
|
|
|
|
|
|
), |
|
341
|
|
|
|
|
|
|
( |
|
342
|
|
|
|
|
|
|
( $self->no_git || $self->darkpan ) |
|
343
|
|
|
|
|
|
|
? ( |
|
344
|
|
|
|
|
|
|
# fake out Pod::Weaver::Section::Support |
|
345
|
|
|
|
|
|
|
[ |
|
346
|
1
|
50
|
33
|
|
|
34
|
'MetaResources' => { map { ; "repository.$_" => "http://localhost/" } qw/url web/ } |
|
|
2
|
50
|
33
|
|
|
42
|
|
|
|
|
50
|
33
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
347
|
|
|
|
|
|
|
], |
|
348
|
|
|
|
|
|
|
) |
|
349
|
|
|
|
|
|
|
: () |
|
350
|
|
|
|
|
|
|
), |
|
351
|
|
|
|
|
|
|
|
|
352
|
|
|
|
|
|
|
'Prereqs::AuthorDeps', |
|
353
|
|
|
|
|
|
|
'MetaYAML', # core |
|
354
|
|
|
|
|
|
|
'MetaJSON', # core |
|
355
|
|
|
|
|
|
|
'CPANFile', |
|
356
|
|
|
|
|
|
|
|
|
357
|
|
|
|
|
|
|
# build system |
|
358
|
|
|
|
|
|
|
'ExecDir', # core |
|
359
|
|
|
|
|
|
|
'ShareDir', # core |
|
360
|
|
|
|
|
|
|
[ 'MakeMaker' => { eumm_version => '6.17', default_jobs => 9 } ], # core |
|
361
|
|
|
|
|
|
|
|
|
362
|
|
|
|
|
|
|
# are we up to date? |
|
363
|
|
|
|
|
|
|
[ |
|
364
|
|
|
|
|
|
|
'PromptIfStale' => { |
|
365
|
|
|
|
|
|
|
modules => [qw/Dist::Zilla Dist::Zilla::PluginBundle::DAGOLDEN/], |
|
366
|
|
|
|
|
|
|
check_all_plugins => 1, |
|
367
|
|
|
|
|
|
|
} |
|
368
|
|
|
|
|
|
|
], |
|
369
|
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
# copy files from build back to root for inclusion in VCS; |
|
371
|
|
|
|
|
|
|
# for auto_version we want cpanfile. For embedded version we want Makefile.PL |
|
372
|
|
|
|
|
|
|
[ |
|
373
|
|
|
|
|
|
|
'CopyFilesFromBuild::Filtered' => |
|
374
|
|
|
|
|
|
|
{ copy => $self->auto_version ? 'cpanfile' : 'Makefile.PL' } |
|
375
|
|
|
|
|
|
|
], |
|
376
|
|
|
|
|
|
|
|
|
377
|
|
|
|
|
|
|
# manifest -- must come after all generated files |
|
378
|
|
|
|
|
|
|
'Manifest', # core |
|
379
|
|
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
# before release |
|
381
|
|
|
|
|
|
|
( |
|
382
|
|
|
|
|
|
|
$self->no_git ? () |
|
383
|
|
|
|
|
|
|
: ('Git::CheckFor::CorrectBranch') |
|
384
|
|
|
|
|
|
|
), |
|
385
|
|
|
|
|
|
|
( |
|
386
|
|
|
|
|
|
|
$self->no_git ? () |
|
387
|
|
|
|
|
|
|
: [ |
|
388
|
|
|
|
|
|
|
'Git::Check' => |
|
389
|
|
|
|
|
|
|
{ allow_dirty => [ $self->auto_version ? 'cpanfile' : 'Makefile.PL' ] } |
|
390
|
|
|
|
|
|
|
] |
|
391
|
|
|
|
|
|
|
), |
|
392
|
|
|
|
|
|
|
'CheckMetaResources', |
|
393
|
|
|
|
|
|
|
'CheckPrereqsIndexed', |
|
394
|
|
|
|
|
|
|
'CheckChangesHasContent', |
|
395
|
|
|
|
|
|
|
[ 'RunExtraTests' => { default_jobs => 9 } ], |
|
396
|
|
|
|
|
|
|
'TestRelease', # core |
|
397
|
|
|
|
|
|
|
'ConfirmRelease', # core |
|
398
|
|
|
|
|
|
|
|
|
399
|
|
|
|
|
|
|
# release |
|
400
|
|
|
|
|
|
|
( $self->fake_release || $self->darkpan ? 'FakeRelease' : 'UploadToCPAN' ), # core |
|
401
|
|
|
|
|
|
|
|
|
402
|
|
|
|
|
|
|
# after release |
|
403
|
|
|
|
|
|
|
# Note -- NextRelease is here to get the ordering right with |
|
404
|
|
|
|
|
|
|
# git actions. It is *also* a file munger that acts earlier |
|
405
|
|
|
|
|
|
|
|
|
406
|
|
|
|
|
|
|
( |
|
407
|
|
|
|
|
|
|
$self->no_git |
|
408
|
|
|
|
|
|
|
? () |
|
409
|
|
|
|
|
|
|
: ( |
|
410
|
|
|
|
|
|
|
[ |
|
411
|
|
|
|
|
|
|
'Git::Commit' => 'Commit_Dirty_Files' => { |
|
412
|
|
|
|
|
|
|
commit_msg => "Update " . ( $self->auto_version ? 'cpanfile' : 'Makefile.PL' ), |
|
413
|
|
|
|
|
|
|
allow_dirty => [ $self->auto_version ? 'cpanfile' : 'Makefile.PL' ] |
|
414
|
|
|
|
|
|
|
} |
|
415
|
|
|
|
|
|
|
], |
|
416
|
|
|
|
|
|
|
[ 'Git::Tag' => { tag_format => $self->tag_format } ], |
|
417
|
|
|
|
|
|
|
) |
|
418
|
|
|
|
|
|
|
), |
|
419
|
|
|
|
|
|
|
|
|
420
|
|
|
|
|
|
|
# bumps Changes |
|
421
|
|
|
|
|
|
|
'NextRelease', # core (also munges files) |
|
422
|
|
|
|
|
|
|
|
|
423
|
|
|
|
|
|
|
# bumps $VERSION, maybe |
|
424
|
|
|
|
|
|
|
( $self->auto_version ? () : 'BumpVersionAfterRelease' ), |
|
425
|
|
|
|
|
|
|
|
|
426
|
|
|
|
|
|
|
( |
|
427
|
|
|
|
|
|
|
$self->no_git ? () |
|
428
|
|
|
|
|
|
|
: ( |
|
429
|
|
|
|
|
|
|
[ |
|
430
|
|
|
|
|
|
|
'Git::Commit' => 'Commit_Changes' => { |
|
431
|
|
|
|
|
|
|
$self->auto_version ? ( commit_msg => "After release: timestamp Changes" ) |
|
432
|
|
|
|
|
|
|
: ( |
|
433
|
|
|
|
|
|
|
commit_msg => "After release: bump \$VERSION and timestamp Changes", |
|
434
|
|
|
|
|
|
|
allow_dirty => [qw/Changes Makefile.PL/], |
|
435
|
|
|
|
|
|
|
allow_dirty_match => '^lib', |
|
436
|
|
|
|
|
|
|
) |
|
437
|
|
|
|
|
|
|
} |
|
438
|
|
|
|
|
|
|
], |
|
439
|
|
|
|
|
|
|
[ 'Git::Push' => { push_to => \@push_to } ], |
|
440
|
|
|
|
|
|
|
) |
|
441
|
|
|
|
|
|
|
), |
|
442
|
|
|
|
|
|
|
|
|
443
|
|
|
|
|
|
|
); |
|
444
|
|
|
|
|
|
|
|
|
445
|
|
|
|
|
|
|
} |
|
446
|
|
|
|
|
|
|
|
|
447
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
448
|
|
|
|
|
|
|
|
|
449
|
|
|
|
|
|
|
1; |
|
450
|
|
|
|
|
|
|
|
|
451
|
|
|
|
|
|
|
# |
|
452
|
|
|
|
|
|
|
# This file is part of Dist-Zilla-PluginBundle-DAGOLDEN |
|
453
|
|
|
|
|
|
|
# |
|
454
|
|
|
|
|
|
|
# This software is Copyright (c) 2016 by David Golden. |
|
455
|
|
|
|
|
|
|
# |
|
456
|
|
|
|
|
|
|
# This is free software, licensed under: |
|
457
|
|
|
|
|
|
|
# |
|
458
|
|
|
|
|
|
|
# The Apache License, Version 2.0, January 2004 |
|
459
|
|
|
|
|
|
|
# |
|
460
|
|
|
|
|
|
|
|
|
461
|
|
|
|
|
|
|
__END__ |
|
462
|
|
|
|
|
|
|
|
|
463
|
|
|
|
|
|
|
=pod |
|
464
|
|
|
|
|
|
|
|
|
465
|
|
|
|
|
|
|
=encoding UTF-8 |
|
466
|
|
|
|
|
|
|
|
|
467
|
|
|
|
|
|
|
=head1 NAME |
|
468
|
|
|
|
|
|
|
|
|
469
|
|
|
|
|
|
|
Dist::Zilla::PluginBundle::DAGOLDEN - Dist::Zilla configuration the way DAGOLDEN does it |
|
470
|
|
|
|
|
|
|
|
|
471
|
|
|
|
|
|
|
=head1 VERSION |
|
472
|
|
|
|
|
|
|
|
|
473
|
|
|
|
|
|
|
version 0.077 |
|
474
|
|
|
|
|
|
|
|
|
475
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
476
|
|
|
|
|
|
|
|
|
477
|
|
|
|
|
|
|
# in dist.ini |
|
478
|
|
|
|
|
|
|
[@DAGOLDEN] |
|
479
|
|
|
|
|
|
|
|
|
480
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
481
|
|
|
|
|
|
|
|
|
482
|
|
|
|
|
|
|
This is a L<Dist::Zilla> PluginBundle. It is roughly equivalent to the |
|
483
|
|
|
|
|
|
|
following dist.ini: |
|
484
|
|
|
|
|
|
|
|
|
485
|
|
|
|
|
|
|
; version provider |
|
486
|
|
|
|
|
|
|
[RewriteVersion] ; also munges |
|
487
|
|
|
|
|
|
|
|
|
488
|
|
|
|
|
|
|
; collect contributors list |
|
489
|
|
|
|
|
|
|
[Git::Contributors] |
|
490
|
|
|
|
|
|
|
|
|
491
|
|
|
|
|
|
|
; choose files to include |
|
492
|
|
|
|
|
|
|
[Git::GatherDir] ; everything from git ls-files |
|
493
|
|
|
|
|
|
|
exclude_filename = README.pod ; skip this generated file |
|
494
|
|
|
|
|
|
|
exclude_filename = README.mkdn ; skip this generated file |
|
495
|
|
|
|
|
|
|
exclude_filename = META.json ; skip this generated file |
|
496
|
|
|
|
|
|
|
exclude_filename = cpanfile ; skip this generated file |
|
497
|
|
|
|
|
|
|
exclude_filename = Makefile.PL ; skip this generated file |
|
498
|
|
|
|
|
|
|
|
|
499
|
|
|
|
|
|
|
[PruneCruft] ; default stuff to skip |
|
500
|
|
|
|
|
|
|
[ManifestSkip] ; if -f MANIFEST.SKIP, skip those, too |
|
501
|
|
|
|
|
|
|
|
|
502
|
|
|
|
|
|
|
; file modifications |
|
503
|
|
|
|
|
|
|
[InsertCopyright] ; add copyright at "# COPYRIGHT" |
|
504
|
|
|
|
|
|
|
[SurgicalPodWeaver] ; generate Pod |
|
505
|
|
|
|
|
|
|
config_plugin = @DAGOLDEN ; my own plugin allows Pod::WikiDoc |
|
506
|
|
|
|
|
|
|
replacer = replace_with_comment |
|
507
|
|
|
|
|
|
|
post_code_replacer = replace_with_nothing |
|
508
|
|
|
|
|
|
|
|
|
509
|
|
|
|
|
|
|
; generated files |
|
510
|
|
|
|
|
|
|
[License] ; boilerplate license |
|
511
|
|
|
|
|
|
|
[Pod2Readme] ; from Pod (runs after PodWeaver) |
|
512
|
|
|
|
|
|
|
|
|
513
|
|
|
|
|
|
|
; t tests |
|
514
|
|
|
|
|
|
|
[Test::ReportPrereqs] ; show prereqs in automated test output |
|
515
|
|
|
|
|
|
|
|
|
516
|
|
|
|
|
|
|
; xt tests |
|
517
|
|
|
|
|
|
|
[Test::MinimumVersion] ; xt/release/minimum-version.t |
|
518
|
|
|
|
|
|
|
max_target_perl = 5.010 ; don't use syntax/features past 5.10 |
|
519
|
|
|
|
|
|
|
[Test::PodSpelling] ; xt/author/pod-spell.t |
|
520
|
|
|
|
|
|
|
[Test::Perl::Critic]; xt/author/critic.t |
|
521
|
|
|
|
|
|
|
[MetaTests] ; xt/release/meta-yaml.t |
|
522
|
|
|
|
|
|
|
[PodSyntaxTests] ; xt/release/pod-syntax.t |
|
523
|
|
|
|
|
|
|
[PodCoverageTests] ; xt/release/pod-coverage.t |
|
524
|
|
|
|
|
|
|
[Test::Portability] ; xt/release/portability.t (of file name) |
|
525
|
|
|
|
|
|
|
options = test_one_dot = 0 |
|
526
|
|
|
|
|
|
|
[Test::Version] ; xt/release/test-version.t |
|
527
|
|
|
|
|
|
|
[Test::Compile] ; xt/author/00-compile.t |
|
528
|
|
|
|
|
|
|
fake_home = 1 ; fakes $ENV{HOME} just in case |
|
529
|
|
|
|
|
|
|
xt_mode = 1 ; make sure all files compile |
|
530
|
|
|
|
|
|
|
|
|
531
|
|
|
|
|
|
|
; metadata |
|
532
|
|
|
|
|
|
|
[AutoPrereqs] ; find prereqs from code |
|
533
|
|
|
|
|
|
|
skip = ^t::lib |
|
534
|
|
|
|
|
|
|
|
|
535
|
|
|
|
|
|
|
[Authority] |
|
536
|
|
|
|
|
|
|
authority = cpan:DAGOLDEN |
|
537
|
|
|
|
|
|
|
do_munging = 0 |
|
538
|
|
|
|
|
|
|
|
|
539
|
|
|
|
|
|
|
[MinimumPerl] ; determine minimum perl version |
|
540
|
|
|
|
|
|
|
|
|
541
|
|
|
|
|
|
|
[MetaNoIndex] ; sets 'no_index' in META |
|
542
|
|
|
|
|
|
|
directory = t |
|
543
|
|
|
|
|
|
|
directory = xt |
|
544
|
|
|
|
|
|
|
directory = examples |
|
545
|
|
|
|
|
|
|
directory = corpus |
|
546
|
|
|
|
|
|
|
package = DB ; just in case |
|
547
|
|
|
|
|
|
|
|
|
548
|
|
|
|
|
|
|
[GithubMeta] ; set META resources |
|
549
|
|
|
|
|
|
|
remote = origin |
|
550
|
|
|
|
|
|
|
remote = github |
|
551
|
|
|
|
|
|
|
issues = 1 |
|
552
|
|
|
|
|
|
|
|
|
553
|
|
|
|
|
|
|
[MetaProvides::Package] ; add 'provides' to META files |
|
554
|
|
|
|
|
|
|
meta_noindex = 1 ; respect prior no_index directives |
|
555
|
|
|
|
|
|
|
|
|
556
|
|
|
|
|
|
|
[Prereqs::AuthorDeps] ; add authordeps as develop/requires |
|
557
|
|
|
|
|
|
|
[MetaYAML] ; generate META.yml (v1.4) |
|
558
|
|
|
|
|
|
|
[MetaJSON] ; generate META.json (v2) |
|
559
|
|
|
|
|
|
|
[CPANFile] ; generate cpanfile |
|
560
|
|
|
|
|
|
|
|
|
561
|
|
|
|
|
|
|
; build system |
|
562
|
|
|
|
|
|
|
[ExecDir] ; include 'bin/*' as executables |
|
563
|
|
|
|
|
|
|
[ShareDir] ; include 'share/' for File::ShareDir |
|
564
|
|
|
|
|
|
|
[MakeMaker] ; create Makefile.PL |
|
565
|
|
|
|
|
|
|
eumm_version = 6.17 |
|
566
|
|
|
|
|
|
|
default_jobs = 9 |
|
567
|
|
|
|
|
|
|
|
|
568
|
|
|
|
|
|
|
; manifest (after all generated files) |
|
569
|
|
|
|
|
|
|
[Manifest] ; create MANIFEST |
|
570
|
|
|
|
|
|
|
|
|
571
|
|
|
|
|
|
|
; copy cpanfile back to repo dis |
|
572
|
|
|
|
|
|
|
[CopyFilesFromBuild::Filtered] |
|
573
|
|
|
|
|
|
|
copy = Makefile.PL |
|
574
|
|
|
|
|
|
|
|
|
575
|
|
|
|
|
|
|
; before release |
|
576
|
|
|
|
|
|
|
|
|
577
|
|
|
|
|
|
|
[PromptIfStale] ; check if our build tools are out of date |
|
578
|
|
|
|
|
|
|
module = Dist::Zilla |
|
579
|
|
|
|
|
|
|
module = Dist::Zilla::PluginBundle::DAGOLDEN |
|
580
|
|
|
|
|
|
|
check_all_plugins = 1 |
|
581
|
|
|
|
|
|
|
|
|
582
|
|
|
|
|
|
|
[Git::CheckFor::CorrectBranch] ; ensure on master branch |
|
583
|
|
|
|
|
|
|
|
|
584
|
|
|
|
|
|
|
[Git::Check] ; ensure all files checked in |
|
585
|
|
|
|
|
|
|
allow_dirty = dist.ini |
|
586
|
|
|
|
|
|
|
allow_dirty = Changes |
|
587
|
|
|
|
|
|
|
allow_dirty = cpanfile |
|
588
|
|
|
|
|
|
|
|
|
589
|
|
|
|
|
|
|
[CheckMetaResources] ; ensure META has 'resources' data |
|
590
|
|
|
|
|
|
|
[CheckPrereqsIndexed] ; ensure prereqs are on CPAN |
|
591
|
|
|
|
|
|
|
[CheckChangesHasContent] ; ensure Changes has been updated |
|
592
|
|
|
|
|
|
|
|
|
593
|
|
|
|
|
|
|
[RunExtraTests] ; ensure xt/ tests pass |
|
594
|
|
|
|
|
|
|
default_jobs = 9 |
|
595
|
|
|
|
|
|
|
|
|
596
|
|
|
|
|
|
|
[TestRelease] ; ensure t/ tests pass |
|
597
|
|
|
|
|
|
|
[ConfirmRelease] ; prompt before uploading |
|
598
|
|
|
|
|
|
|
|
|
599
|
|
|
|
|
|
|
; releaser |
|
600
|
|
|
|
|
|
|
[UploadToCPAN] ; uploads to CPAN |
|
601
|
|
|
|
|
|
|
|
|
602
|
|
|
|
|
|
|
; after release |
|
603
|
|
|
|
|
|
|
[Git::Commit / Commit_Dirty_Files] ; commit Changes (as released) |
|
604
|
|
|
|
|
|
|
|
|
605
|
|
|
|
|
|
|
[Git::Tag] ; tag repo with custom tag |
|
606
|
|
|
|
|
|
|
tag_format = release-%v |
|
607
|
|
|
|
|
|
|
|
|
608
|
|
|
|
|
|
|
; NextRelease acts *during* pre-release to write $VERSION and |
|
609
|
|
|
|
|
|
|
; timestamp to Changes and *after* release to add a new {{$NEXT}} |
|
610
|
|
|
|
|
|
|
; section, so to act at the right time after release, it must actually |
|
611
|
|
|
|
|
|
|
; come after Commit_Dirty_Files but before Commit_Changes in the |
|
612
|
|
|
|
|
|
|
; dist.ini. It will still act during pre-release as usual |
|
613
|
|
|
|
|
|
|
|
|
614
|
|
|
|
|
|
|
[NextRelease] |
|
615
|
|
|
|
|
|
|
[BumpVersionAfterRelease] |
|
616
|
|
|
|
|
|
|
|
|
617
|
|
|
|
|
|
|
[Git::Commit / Commit_Changes] ; commit Changes (for new dev) |
|
618
|
|
|
|
|
|
|
|
|
619
|
|
|
|
|
|
|
[Git::Push] ; push repo to remote |
|
620
|
|
|
|
|
|
|
push_to = origin |
|
621
|
|
|
|
|
|
|
|
|
622
|
|
|
|
|
|
|
=head1 USAGE |
|
623
|
|
|
|
|
|
|
|
|
624
|
|
|
|
|
|
|
To use this PluginBundle, just add it to your dist.ini. You can provide |
|
625
|
|
|
|
|
|
|
the following options: |
|
626
|
|
|
|
|
|
|
|
|
627
|
|
|
|
|
|
|
=over 4 |
|
628
|
|
|
|
|
|
|
|
|
629
|
|
|
|
|
|
|
=item * |
|
630
|
|
|
|
|
|
|
|
|
631
|
|
|
|
|
|
|
C<is_task> â this indicates whether C<TaskWeaver> or C<SurgicalPodWeaver> should be used. |
|
632
|
|
|
|
|
|
|
|
|
633
|
|
|
|
|
|
|
Default is 0. |
|
634
|
|
|
|
|
|
|
|
|
635
|
|
|
|
|
|
|
=item * |
|
636
|
|
|
|
|
|
|
|
|
637
|
|
|
|
|
|
|
C<authority> â specifies the C<x_authority> field for pause. Defaults to 'cpan:DAGOLDEN'. |
|
638
|
|
|
|
|
|
|
|
|
639
|
|
|
|
|
|
|
=item * |
|
640
|
|
|
|
|
|
|
|
|
641
|
|
|
|
|
|
|
C<auto_prereq> â this indicates whether C<AutoPrereqs> should be used or not. Default is 1. |
|
642
|
|
|
|
|
|
|
|
|
643
|
|
|
|
|
|
|
# C<auto_version> - this indicates whether C<AutoVersion> should be used or not. Default is 0. |
|
644
|
|
|
|
|
|
|
|
|
645
|
|
|
|
|
|
|
=item * |
|
646
|
|
|
|
|
|
|
|
|
647
|
|
|
|
|
|
|
C<darkpan> â for private code; uses C<FakeRelease> and fills in dummy repo/bugtracker data |
|
648
|
|
|
|
|
|
|
|
|
649
|
|
|
|
|
|
|
=item * |
|
650
|
|
|
|
|
|
|
|
|
651
|
|
|
|
|
|
|
C<fake_release> â swaps C<FakeRelease> for C<UploadToCPAN>. Mostly useful for testing a dist.ini without risking a real release. |
|
652
|
|
|
|
|
|
|
|
|
653
|
|
|
|
|
|
|
=item * |
|
654
|
|
|
|
|
|
|
|
|
655
|
|
|
|
|
|
|
C<git_remote> â where to push after release |
|
656
|
|
|
|
|
|
|
|
|
657
|
|
|
|
|
|
|
=item * |
|
658
|
|
|
|
|
|
|
|
|
659
|
|
|
|
|
|
|
C<github_issues> â whether to use github issue tracker. Defaults is 1. |
|
660
|
|
|
|
|
|
|
|
|
661
|
|
|
|
|
|
|
=item * |
|
662
|
|
|
|
|
|
|
|
|
663
|
|
|
|
|
|
|
C<stopwords> â add stopword for C<Test::PodSpelling> (can be repeated) |
|
664
|
|
|
|
|
|
|
|
|
665
|
|
|
|
|
|
|
=item * |
|
666
|
|
|
|
|
|
|
|
|
667
|
|
|
|
|
|
|
C<tag_format> â given to C<Git::Tag>. Default is 'release-%v' to be more |
|
668
|
|
|
|
|
|
|
|
|
669
|
|
|
|
|
|
|
robust than just the version number when parsing versions for |
|
670
|
|
|
|
|
|
|
L<Git::NextVersion> |
|
671
|
|
|
|
|
|
|
|
|
672
|
|
|
|
|
|
|
=item * |
|
673
|
|
|
|
|
|
|
|
|
674
|
|
|
|
|
|
|
C<weaver_config> â specifies a L<Pod::Weaver> bundle. Defaults to @DAGOLDEN. |
|
675
|
|
|
|
|
|
|
|
|
676
|
|
|
|
|
|
|
=item * |
|
677
|
|
|
|
|
|
|
|
|
678
|
|
|
|
|
|
|
C<version_regexp> â given to L<Git::NextVersion>. Default |
|
679
|
|
|
|
|
|
|
|
|
680
|
|
|
|
|
|
|
is '^release-(.+)$' |
|
681
|
|
|
|
|
|
|
|
|
682
|
|
|
|
|
|
|
=item * |
|
683
|
|
|
|
|
|
|
|
|
684
|
|
|
|
|
|
|
C<no_git> â bypass all git-dependent plugins |
|
685
|
|
|
|
|
|
|
|
|
686
|
|
|
|
|
|
|
=item * |
|
687
|
|
|
|
|
|
|
|
|
688
|
|
|
|
|
|
|
C<no_critic> â omit C<Test::Perl::Critic> tests |
|
689
|
|
|
|
|
|
|
|
|
690
|
|
|
|
|
|
|
=item * |
|
691
|
|
|
|
|
|
|
|
|
692
|
|
|
|
|
|
|
C<no_spellcheck> â omit C<Test::PodSpelling> tests |
|
693
|
|
|
|
|
|
|
|
|
694
|
|
|
|
|
|
|
=item * |
|
695
|
|
|
|
|
|
|
|
|
696
|
|
|
|
|
|
|
C<no_coverage> â omit PodCoverage tests |
|
697
|
|
|
|
|
|
|
|
|
698
|
|
|
|
|
|
|
=item * |
|
699
|
|
|
|
|
|
|
|
|
700
|
|
|
|
|
|
|
C<no_minimum_perl> â omit C<Test::MinimumVersion> tests |
|
701
|
|
|
|
|
|
|
|
|
702
|
|
|
|
|
|
|
=item * |
|
703
|
|
|
|
|
|
|
|
|
704
|
|
|
|
|
|
|
C<no_bugtracker> â DEPRECATED |
|
705
|
|
|
|
|
|
|
|
|
706
|
|
|
|
|
|
|
=back |
|
707
|
|
|
|
|
|
|
|
|
708
|
|
|
|
|
|
|
When running without git, C<GatherDir> is used instead of C<Git::GatherDir>. |
|
709
|
|
|
|
|
|
|
and all git check and commit operations are disabled. |
|
710
|
|
|
|
|
|
|
|
|
711
|
|
|
|
|
|
|
By default, versions are taken/rewritten in the source file using C<RewriteVersion> |
|
712
|
|
|
|
|
|
|
and C<BumpVersionAfterRelease>. If the C<auto_version> option is true, the version |
|
713
|
|
|
|
|
|
|
is set by C<AutoVersion> and munged with C<PkgVersion>. For C<auto_version> the |
|
714
|
|
|
|
|
|
|
generated C<cpanfile> is copied to the repo on build; otherwise, C<Makefile.PL> is |
|
715
|
|
|
|
|
|
|
copied. |
|
716
|
|
|
|
|
|
|
|
|
717
|
|
|
|
|
|
|
This PluginBundle now supports C<ConfigSlicer>, so you can pass in options to the |
|
718
|
|
|
|
|
|
|
plugins used like this: |
|
719
|
|
|
|
|
|
|
|
|
720
|
|
|
|
|
|
|
[@DAGOLDEN] |
|
721
|
|
|
|
|
|
|
Test::MinimumVersion.max_target_perl = 5.014 |
|
722
|
|
|
|
|
|
|
ExecDir.dir = scripts |
|
723
|
|
|
|
|
|
|
|
|
724
|
|
|
|
|
|
|
This PluginBundle also supports C<PluginRemover>, so dropping a plugin is as easy as this: |
|
725
|
|
|
|
|
|
|
|
|
726
|
|
|
|
|
|
|
[@DAGOLDEN] |
|
727
|
|
|
|
|
|
|
-remove = InsertCopyright |
|
728
|
|
|
|
|
|
|
|
|
729
|
|
|
|
|
|
|
=for Pod::Coverage configure mvp_multivalue_args |
|
730
|
|
|
|
|
|
|
|
|
731
|
|
|
|
|
|
|
=for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan |
|
732
|
|
|
|
|
|
|
|
|
733
|
|
|
|
|
|
|
=head1 SUPPORT |
|
734
|
|
|
|
|
|
|
|
|
735
|
|
|
|
|
|
|
=head2 Bugs / Feature Requests |
|
736
|
|
|
|
|
|
|
|
|
737
|
|
|
|
|
|
|
Please report any bugs or feature requests through the issue tracker |
|
738
|
|
|
|
|
|
|
at L<https://github.com/dagolden/Dist-Zilla-PluginBundle-DAGOLDEN/issues>. |
|
739
|
|
|
|
|
|
|
You will be notified automatically of any progress on your issue. |
|
740
|
|
|
|
|
|
|
|
|
741
|
|
|
|
|
|
|
=head2 Source Code |
|
742
|
|
|
|
|
|
|
|
|
743
|
|
|
|
|
|
|
This is open source software. The code repository is available for |
|
744
|
|
|
|
|
|
|
public review and contribution under the terms of the license. |
|
745
|
|
|
|
|
|
|
|
|
746
|
|
|
|
|
|
|
L<https://github.com/dagolden/Dist-Zilla-PluginBundle-DAGOLDEN> |
|
747
|
|
|
|
|
|
|
|
|
748
|
|
|
|
|
|
|
git clone https://github.com/dagolden/Dist-Zilla-PluginBundle-DAGOLDEN.git |
|
749
|
|
|
|
|
|
|
|
|
750
|
|
|
|
|
|
|
=head1 AUTHOR |
|
751
|
|
|
|
|
|
|
|
|
752
|
|
|
|
|
|
|
David Golden <dagolden@cpan.org> |
|
753
|
|
|
|
|
|
|
|
|
754
|
|
|
|
|
|
|
=head1 CONTRIBUTORS |
|
755
|
|
|
|
|
|
|
|
|
756
|
|
|
|
|
|
|
=for stopwords Christian Walde Eric Johnson Karen Etheridge Philippe Bruhat (BooK) Sergey Romanov ê¹ëí - Keedi Kim |
|
757
|
|
|
|
|
|
|
|
|
758
|
|
|
|
|
|
|
=over 4 |
|
759
|
|
|
|
|
|
|
|
|
760
|
|
|
|
|
|
|
=item * |
|
761
|
|
|
|
|
|
|
|
|
762
|
|
|
|
|
|
|
Christian Walde <walde.christian@googlemail.com> |
|
763
|
|
|
|
|
|
|
|
|
764
|
|
|
|
|
|
|
=item * |
|
765
|
|
|
|
|
|
|
|
|
766
|
|
|
|
|
|
|
Eric Johnson <eric.git@iijo.org> |
|
767
|
|
|
|
|
|
|
|
|
768
|
|
|
|
|
|
|
=item * |
|
769
|
|
|
|
|
|
|
|
|
770
|
|
|
|
|
|
|
Karen Etheridge <ether@cpan.org> |
|
771
|
|
|
|
|
|
|
|
|
772
|
|
|
|
|
|
|
=item * |
|
773
|
|
|
|
|
|
|
|
|
774
|
|
|
|
|
|
|
Philippe Bruhat (BooK) <book@cpan.org> |
|
775
|
|
|
|
|
|
|
|
|
776
|
|
|
|
|
|
|
=item * |
|
777
|
|
|
|
|
|
|
|
|
778
|
|
|
|
|
|
|
Sergey Romanov <complefor@rambler.ru> |
|
779
|
|
|
|
|
|
|
|
|
780
|
|
|
|
|
|
|
=item * |
|
781
|
|
|
|
|
|
|
|
|
782
|
|
|
|
|
|
|
ê¹ëí - Keedi Kim <keedi@cpan.org> |
|
783
|
|
|
|
|
|
|
|
|
784
|
|
|
|
|
|
|
=back |
|
785
|
|
|
|
|
|
|
|
|
786
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
787
|
|
|
|
|
|
|
|
|
788
|
|
|
|
|
|
|
This software is Copyright (c) 2016 by David Golden. |
|
789
|
|
|
|
|
|
|
|
|
790
|
|
|
|
|
|
|
This is free software, licensed under: |
|
791
|
|
|
|
|
|
|
|
|
792
|
|
|
|
|
|
|
The Apache License, Version 2.0, January 2004 |
|
793
|
|
|
|
|
|
|
|
|
794
|
|
|
|
|
|
|
=cut |