Dist/Zilla/PluginBundle/Author/HAYOBAAN.pm

filter: Statementstmt 92.0% 138 / 150 Branchbran 48.6% 35 / 72 Conditioncond 34.1% 14 / 41 MC/DCmcdc 0.0% 0 / 23 Subroutinesub 81.0% 30 / 37 Podpod 0.0% 0 / 4 totaltotal 66.3% 217 / 327 CC 54 SCAR 42.3
CC
54
Cov
71%
configure
173.5
__ANON__
6.0
__ANON__
6.0
CRAP 69.0
↑ Summary Dist/Zilla/Plugin/Author/HAYOBAAN/NextVersion.pm »
1 package Dist::Zilla::PluginBundle::Author::HAYOBAAN;
2 2 ▶use 5.010; # For // operator
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # ABSTRACT: Hayo Baan's Dist::Zilla configuration
7 2 our $VERSION = '0.016'; # VERSION
8  
9 #pod =head1 DESCRIPTION
10 #pod
11 #pod This is a L<Dist::Zilla> PluginBundle. It installs and configures
12 #pod L<Dist::Zilla> plugins according to HAYOBAAN's preferences. The
13 #pod following plugins are (conditionally) installed and configured:
14 #pod
15 #pod =for :list
16 #pod * L<AutoVersion|Dist::Zilla::Plugin::AutoVersion>
17 #pod * L<Author::HAYOBAAN::NextVersion|Dist::Zilla::Plugin::Author::HAYOBAAN::NextVersion>
18 #pod * L<OurPkgVersion|Dist::Zilla::Plugin::OurPkgVersion>
19 #pod * L<GatherDir|Dist::Zilla::Plugin::GatherDir>
20 #pod * L<Git::GatherDir|Dist::Zilla::Plugin::Git::GatherDir>
21 #pod * L<PruneCruft|Dist::Zilla::Plugin::PruneCruft>
22 #pod * L<ManifestSkip|Dist::Zilla::Plugin::ManifestSkip>
23 #pod * L<PodWeaver|Dist::Zilla::Plugin::PodWeaver> (and L<SurgicalPodWeaver|Dist::Zilla::Plugin::SurgicalPodWeaver> when enabled)
24 #pod * L<ReadmeAnyFromPod|Dist::Zilla::Plugin::ReadmeAnyFromPod> (both Text and Markdown generation are configured)
25 #pod * L<Dist::Zilla::Plugin::MetaYAML>
26 #pod * L<License|Dist::Zilla::Plugin::License>
27 #pod * L<InstallGuide|Dist::Zilla::Plugin::InstallGuide>
28 #pod * L<MinimumPerl|Dist::Zilla::Plugin::MinimumPerl>
29 #pod * L<AutoPrereqs|Dist::Zilla::Plugin::AutoPrereqs>
30 #pod * L<MetaNoIndex|Dist::Zilla::Plugin::MetaNoIndex>
31 #pod * L<GitHub::Meta|Dist::Zilla::Plugin::GitHub::Meta>
32 #pod * L<MetaJSON|Dist::Zilla::Plugin::MetaJSON>
33 #pod * L<MetaYAML|Dist::Zilla::Plugin::MetaYAML>
34 #pod * L<MetaProvides::Package|Dist::Zilla::Plugin::MetaProvides::Package>
35 #pod * L<MetaProvides::Class|Dist::Zilla::Plugin::MetaProvides::Class>
36 #pod * L<ExecDir|Dist::Zilla::Plugin::ExecDir>
37 #pod * L<ShareDir|Dist::Zilla::Plugin::ShareDir>
38 #pod * L<MakeMaker|Dist::Zilla::Plugin::MakeMaker> (default)
39 #pod * L<ModuleBuild|Dist::Zilla::Plugin::ModuleBuild> (optional)
40 #pod * L<Manifest|Dist::Zilla::Plugin::Manifest>
41 #pod * L<CopyFilesFromBuild|Dist::Zilla::Plugin::CopyFilesFromBuild>
42 #pod * L<Run::AfterBuild|Dist::Zilla::Plugin::Run::AfterBuild>
43 #pod * L<GitHubREADME::Badge|Dist::Zilla::Plugin::GitHubREADME::Badge>
44 #pod * L<CheckChangesHasContent|Dist::Zilla::Plugin::CheckChangesHasContent>
45 #pod * L<Git::CheckFor::CorrectBranch|Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch>
46 #pod * L<Git::Check|Dist::Zilla::Plugin::Git::Check>
47 #pod * L<CheckMetaResources|Dist::Zilla::Plugin::CheckMetaResources>
48 #pod * L<CheckPrereqsIndexed|Dist::Zilla::Plugin::CheckPrereqsIndexed>
49 #pod * L<Test::Compile|Dist::Zilla::Plugin::Test::Compile>
50 #pod * L<Test::Perl::Critic|Dist::Zilla::Plugin::Test::Perl::Critic>
51 #pod * L<Test::EOL|Dist::Zilla::Plugin::Test::EOL>
52 #pod * L<Test::NoTabs|Dist::Zilla::Plugin::Test::NoTabs>
53 #pod * L<Test::Version|Dist::Zilla::Plugin::Test::Version>
54 #pod * L<Test::MinimumVersion|Dist::Zilla::Plugin::Test::MinimumVersion>
55 #pod * L<MojibakeTests|Dist::Zilla::Plugin::MojibakeTests>
56 #pod * L<Test::Kwalitee|Dist::Zilla::Plugin::Test::Kwalitee>
57 #pod * L<Test::Portability|Dist::Zilla::Plugin::Test::Portability>
58 #pod * L<Test::UnusedVars|Dist::Zilla::Plugin::Test::UnusedVars>
59 #pod * L<Test::CPAN::Changes|Dist::Zilla::Plugin::Test::CPAN::Changes>
60 #pod * L<Test::DistManifest|Dist::Zilla::Plugin::Test::DistManifest>
61 #pod * L<Test::CPAN::Meta::JSON|Dist::Zilla::Plugin::Test::CPAN::Meta::JSON>
62 #pod * L<MetaTests|Dist::Zilla::Plugin::MetaTests>
63 #pod * L<PodSyntaxTests|Dist::Zilla::Plugin::PodSyntaxTests>
64 #pod * L<PodCoverageTests|Dist::Zilla::Plugin::PodCoverageTests>
65 #pod * L<Author::HAYOBAAN::LinkCheck|Dist::Zilla::Plugin::Author::HAYOBAAN::LinkCheck>
66 #pod * L<Test::Synopsis|Dist::Zilla::Plugin::Test::Synopsis>
67 #pod * L<TestRelease|Dist::Zilla::Plugin::TestRelease>
68 #pod * L<RunExtraTests|Dist::Zilla::Plugin::RunExtraTests>
69 #pod * L<ConfirmRelease|Dist::Zilla::Plugin::ConfirmRelease>
70 #pod * L<UploadToCPAN|Dist::Zilla::Plugin::UploadToCPAN>
71 #pod * L<FakeRelease|Dist::Zilla::Plugin::FakeRelease>
72 #pod * L<NextRelease|Dist::Zilla::Plugin::NextRelease>
73 #pod * L<Git::Commit|Dist::Zilla::Plugin::Git::Commit>
74 #pod * L<Git::Tag|Dist::Zilla::Plugin::Git::Tag>
75 #pod * L<Git::Push|Dist::Zilla::Plugin::Git::Push>
76 #pod * L<GitHub::Update|Dist::Zilla::Plugin::GitHub::Update>
77 #pod * L<Run::AfterRelease|Dist::Zilla::Plugin::Run::AfterRelease>
78 #pod * L<Clean|Dist::Zilla::Plugin::Clean>
79 #pod
80 #pod =head1 USAGE
81 #pod
82 #pod # In dist.ini
83 #pod [@Author::HAYOBAAN]
84 #pod
85 #pod =head1 OPTIONS
86 #pod
87 #pod The following additional command-line option is available for the C<dzil> command.
88 #pod
89 #pod =head2 --local-release-only
90 #pod
91 #pod Adding this option to the C<dzil> command will set the
92 #pod L</local_release_only> attribute to I<true>.
93 #pod
94 #pod C<--local>, C<--local-only>, and C<--local-release> are synonyms for
95 #pod this option.
96 #pod
97 #pod =head2 --make-minor-release
98 #pod
99 #pod Adding this option to the C<dzil> command will set the
100 #pod L</make_minor_release> attribute to I<true>.
101 #pod
102 #pod C<--minor>, C<--minor-release>, and C<--make-minor> are synonyms for
103 #pod this option.
104 #pod
105 #pod Note: Implied with L</--local-release-only>, overriden by L</--make-major-release>.
106 #pod
107 #pod =head2 --make-major-release
108 #pod
109 #pod Adding this option to the C<dzil> command will set the
110 #pod L</make_major_release> attribute to true.
111 #pod
112 #pod C<--major>, C<--major-release>, and C<--make-major> are synonyms for
113 #pod this option.
114 #pod
115 #pod Note: Overrides L<--make-minor-release>.
116 #pod
117 #pod =head2 --keep-version
118 #pod
119 #pod Adding this option will force keep the version number the same (regardless of the other settings above!).
120 #pod
121 #pod C<--keep> is a synonym for this option.
122 #pod
123 #pod =head1 CREDITS
124 #pod
125 #pod I took inspiration from many people's L<Dist::Zilla> and L<Pod::Weaver> PluginBundles. Most notably from:
126 #pod
127 #pod =for :list
128 #pod * David Golden L<DAGOLDEN|Dist::Zilla::PluginBundle::DAGOLDEN>
129 #pod * Mike Doherty L<DOHERTY|Dist::Zilla::PluginBundle::Author::DOHERTY>
130 #pod
131 #pod =cut
132  
133 2 ▶use Getopt::Long;
Subroutine BEGIN: called CC=1 SCAR=0.0
134  
135 2 ▶use Moose 0.99;
Subroutine BEGIN: called CC=1 SCAR=0.0
136 2 ▶use namespace::autoclean 0.09;
Subroutine BEGIN: called CC=1 SCAR=0.0
137 2 ▶use Dist::Zilla 5.014; # default_jobs
Subroutine BEGIN: called CC=1 SCAR=0.0
138 2 with 'Dist::Zilla::Role::PluginBundle::Easy';
139  
140 # Required non-core Dist::Zilla plugins:
141 2 require Dist::Zilla::Plugin::OurPkgVersion;
142 2 require Dist::Zilla::Plugin::Git::GatherDir;
143 2 require Dist::Zilla::Plugin::PodWeaver; # And Dist::Zilla::Plugin::SurgicalPodWeaver if enabled
144 2 ▶use Dist::Zilla::Plugin::ReadmeAnyFromPod 0.161150;
Subroutine BEGIN: called CC=1 SCAR=0.0
145 2 require Dist::Zilla::Plugin::MetaYAML;
146 2 require Dist::Zilla::Plugin::InstallGuide;
147 2 require Dist::Zilla::Plugin::MinimumPerl;
148 2 require Dist::Zilla::Plugin::GitHub::Meta;
149 2 require Dist::Zilla::Plugin::MetaProvides::Package;
150 2 require Dist::Zilla::Plugin::MetaProvides::Class;
151 2 require Dist::Zilla::Plugin::CopyFilesFromBuild;
152 2 require Dist::Zilla::Plugin::Run;
153 2 require Dist::Zilla::Plugin::GitHubREADME::Badge;
154 2 require Dist::Zilla::Plugin::CheckChangesHasContent;
155 2 require Dist::Zilla::Plugin::Git::CheckFor::CorrectBranch;
156 2 require Dist::Zilla::Plugin::Git::Check;
157 2 require Dist::Zilla::Plugin::CheckMetaResources;
158 2 require Dist::Zilla::Plugin::CheckPrereqsIndexed;
159 2 require Dist::Zilla::Plugin::Test::Compile;
160 2 require Dist::Zilla::Plugin::Test::Perl::Critic;
161 2 require Test::Perl::Critic;
162 2 require Dist::Zilla::Plugin::Test::EOL;
163 2 require Dist::Zilla::Plugin::Test::NoTabs;
164 2 require Dist::Zilla::Plugin::Test::Version;
165 2 require Dist::Zilla::Plugin::Test::MinimumVersion;
166 2 require Dist::Zilla::Plugin::MojibakeTests;
167 2 require Dist::Zilla::Plugin::Test::Kwalitee;
168 2 require Dist::Zilla::Plugin::Test::Portability;
169 2 require Dist::Zilla::Plugin::Test::UnusedVars;
170 2 require Dist::Zilla::Plugin::Test::CPAN::Changes;
171 2 require Dist::Zilla::Plugin::Test::DistManifest;
172 2 require Dist::Zilla::Plugin::Test::CPAN::Meta::JSON;
173 2 require Test::CPAN::Meta::JSON;
174 2 require Test::CPAN::Meta;
175 2 require Test::Pod::Coverage;
176 2 require Pod::Coverage::TrustPod;
177 2 require Dist::Zilla::Plugin::Author::HAYOBAAN::LinkCheck;
178 2 require Pod::Weaver::PluginBundle::Author::HAYOBAAN;
179 2 require Pod::Weaver::Section::Author::HAYOBAAN::Bugs;
180 2 require Dist::Zilla::Plugin::Test::Synopsis;
181 2 require Dist::Zilla::Plugin::RunExtraTests;
182 2 require Dist::Zilla::Plugin::Git::Commit;
183 2 require Dist::Zilla::Plugin::Git::Tag;
184 2 require Dist::Zilla::Plugin::Git::Push;
185 2 require Dist::Zilla::Plugin::GitHub::Update;
186 2 require Dist::Zilla::Plugin::Clean;
187  
188 1 ▶sub mvp_multivalue_args { return qw(git_remote run_after_build run_after_release additional_test disable_test) }
Subroutine mvp_multivalue_args: called CC=1 SCAR=0.0
Pod undocumented
189  
190 1 ▶sub mvp_aliases {
Subroutine mvp_aliases: called CC=1 SCAR=0.0
Pod undocumented
191 return {
192 1 local => "local_release_only",
193 local_only => "local_release_only",
194 local_release => "local_release_only",
195 minor => "make_minor_release",
196 minor_relase => "make_minor_release",
197 make_minor => "make_minor_release",
198 major => "make_major_release",
199 major_relase => "make_major_release",
200 make_major => "make_major_release",
201 }
202 }
203  
204 #pod =for Pod::Coverage mvp_multivalue_args mvp_aliases
205 #pod
206 #pod =attr is_cpan
207 #pod
208 #pod Specifies that this is a distribution that is destined for CPAN. When
209 #pod true, releases are uploaded to CPAN using
210 #pod L<UploadToCPAN|Dist::Zilla::Plugin::UploadToCPAN>. If false, releases
211 #pod are made using L<FakeRelease|Dist::Zilla::Plugin::FakeRelease>.
212 #pod
213 #pod Default: I<false>.
214 #pod
215 #pod =cut
216  
217 has is_cpan => (
218 is => 'ro',
219 isa => 'Bool',
220 lazy => 1,
221 1 ▶ default => sub { $_[0]->payload->{is_cpan} },
Subroutine __ANON__: called CC=1 SCAR=0.0
222 2 );
223  
224 #pod =attr is_github_hosted
225 #pod
226 #pod Specifies that the distribution's repository is hosted on GitHub.
227 #pod
228 #pod Default: I<false> (note: setting L</is_cpan> enforces L</is_github_hosted>
229 #pod to I<true>)
230 #pod
231 #pod =cut
232  
233 has is_github_hosted => (
234 is => 'ro',
235 isa => 'Bool',
236 lazy => 1,
237 1 ▶ default => sub { $_[0]->payload->{is_github} || $_[0]->is_cpan },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->payload->{"is_github"} or $_[0]->is_cpan 0 1 1
238 2 );
239  
240 #pod =attr git_remote
241 #pod
242 #pod Specifies where to push the distribution on GitHub. Can be used
243 #pod multiple times to upload to multiple branches.
244 #pod
245 #pod Default: C<origin>
246 #pod
247 #pod =cut
248  
249 has git_remote => (
250 is => 'ro',
251 isa => 'ArrayRef',
252 lazy => 1,
253 0 ▶ default => sub { $_[0]->payload->{git_remote} // [ 'origin' ] },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$_[0]->payload->{"git_remote"} // ["origin"]
l!l
00
MC/DC0%0/1
$_[0]->payload->{"git_remote"} // ["origin"]
$_[0]->payload->{"git_remote"}
Truth table0%0/2
A
A= $_[0]->payload->{"git_remote"}
Aresult
11
00
254 2 );
255  
256 #pod =attr no_git
257 #pod
258 #pod Specifies that the distribution is not under git version control.
259 #pod
260 #pod Default: I<false> (note: setting L</is_github_hosted> enforces this
261 #pod setting to I<false>)
262 #pod
263 #pod =cut
264  
265 has no_git => (
266 is => 'ro',
267 isa => 'Bool',
268 lazy => 1,
269 1 ▶ default => sub { $_[0]->payload->{no_git} && !$_[0]->is_github_hosted },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->payload->{"no_git"} and not $_[0]->is_github_hosted 1 0 1
270 2 );
271  
272 #pod =attr local_release_only
273 #pod
274 #pod Setting this to I<true> will:
275 #pod
276 #pod =for :list
277 #pod * inhibit uploading to CPAN,
278 #pod * inhibit git checking, tagging, commiting, and pushing,
279 #pod * inhibit checking the F<Changes> file,
280 #pod * include a minor version number (e.g., C<_001>) in the version string (see L</make_minor_release>).
281 #pod
282 #pod When releasing, the L</run_after_release> code is still run so you can
283 #pod use this flag to I<release> a development version locally for further
284 #pod use or testing, without e.g., fixing a new major version number.
285 #pod
286 #pod C<local>, C<local_only>, and C<local_release> are synonyms for
287 #pod this setting.
288 #pod
289 #pod Default: I<false>
290 #pod
291 #pod =cut
292  
293 has local_release_only => (
294 is => 'rw',
295 isa => 'Bool',
296 lazy => 1,
297 1 ▶ default => sub { $_[0]->payload->{local_release_only} }
Subroutine __ANON__: called CC=1 SCAR=0.0
298 2 );
299  
300 #pod =attr make_minor_release
301 #pod
302 #pod If the version string does not yet have a minor release number, this will add one with the value of C<_001>.
303 #pod
304 #pod C<minor>, C<minor_release>, and C<make_minor> are synonyms for this
305 #pod setting.
306 #pod
307 #pod Default: value of L</local_release_only>
308 #pod
309 #pod Note: Overridden by L</make_major_release>.
310 #pod
311 #pod =cut
312  
313 has make_minor_release => (
314 is => 'rw',
315 isa => 'Bool',
316 lazy => 1,
317 0 ▶ default => sub { exists $_[0]->payload->{make_minor_release} ? $_[0]->payload->{make_minor_release} : $_[0]->local_release_only }
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
exists $_[0]->payload->{'make_minor_release'} ? : 0 0 0
318 2 );
319  
320 #pod =attr make_major_release
321 #pod
322 #pod Removes any minor version from the version string.
323 #pod
324 #pod C<major>, C<major_release>, and C<make_major> are synonyms for this
325 #pod setting.
326 #pod
327 #pod Default: I<false>
328 #pod
329 #pod Note: Overrides L</make_minor_release>.
330 #pod
331 #pod =cut
332  
333 has make_major_release => (
334 is => 'rw',
335 isa => 'Bool',
336 lazy => 1,
337 0 ▶ default => sub { $_[0]->payload->{make_major_release} }
Subroutine __ANON__: not called CC=1 SCAR=6.9
338 2 );
339  
340 #pod =attr keep_version
341 #pod
342 #pod Will keep the current version number the same when building/releasing.
343 #pod
344 #pod =cut
345  
346 has keep_version => (
347 is => 'rw',
348 isa => 'Bool',
349 lazy => 1,
350 0 ▶ default => sub { $_[0]->payload->{keep_version} }
Subroutine __ANON__: not called CC=1 SCAR=6.9
351 2 );
352  
353 #pod =attr use_makemaker
354 #pod
355 #pod Uses MakeMaker as build method.
356 #pod
357 #pod Default: I<true>
358 #pod
359 #pod Note: When both C<use_makemaker> and C<use_modulebuild> are I<false>, MakeMaker will be used!
360 #pod
361 #pod =cut
362  
363 has use_makemaker => (
364 is => 'rw',
365 isa => 'Bool',
366 lazy => 1,
367 1 ▶ default => sub { ($_[0]->payload->{use_makemaker} // 1) || !$_[0]->payload->{use_modulebuild} }
Subroutine __ANON__: called CC=3 SCAR=12.7
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->payload->{"use_makemaker"} // 1 or not $_[0]->payload->{"use_modulebuild"} 1 0 1
Condition50%1/2
$_[0]->payload->{"use_makemaker"} // 1
l!l
01
MC/DC0%0/1
$_[0]->payload->{"use_makemaker"} // 1
$_[0]->payload->{"use_makemaker"}
Truth table50%1/2
A
A= $_[0]->payload->{"use_makemaker"}
Aresult
11
00
368 2 );
369  
370 #pod =attr use_modulebuild
371 #pod
372 #pod Uses L<Module::Build> as build method.
373 #pod
374 #pod Default: I<false>
375 #pod
376 #pod =cut
377  
378 has use_modulebuild => (
379 is => 'rw',
380 isa => 'Bool',
381 lazy => 1,
382 1 ▶ default => sub { $_[0]->payload->{use_modulebuild} }
Subroutine __ANON__: called CC=1 SCAR=0.0
383 2 );
384  
385 #pod =attr run_after_build
386 #pod
387 #pod Specifies commands to run after the release has been built (but not yet released). Multiple
388 #pod L</run_after_build> commands can be specified.
389 #pod
390 #pod The commands are run from the root of your development tree and has the following special symbols available:
391 #pod
392 #pod =for :list
393 #pod * C<%d> the directory in which the distribution was built
394 #pod * C<%n> the name of the distribution
395 #pod * C<%p> path separator ('/' on Unix, '\\' on Win32... useful for cross-platform dist.ini files)
396 #pod * C<%v> the version of the distribution
397 #pod * C<%t> -TRIAL if the release is a trial release, otherwise the empty string
398 #pod * C<%x> full path to the current perl interpreter (like $^X but from Config)
399 #pod
400 #pod Default: I<nothing>
401 #pod
402 #pod =cut
403  
404 has run_after_build => (
405 is => 'ro',
406 isa => 'ArrayRef',
407 lazy => 1,
408 1 ▶ default => sub { $_[0]->payload->{run_after_build} // [] },
Subroutine __ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$_[0]->payload->{"run_after_build"} // []
l!l
01
MC/DC0%0/1
$_[0]->payload->{"run_after_build"} // []
$_[0]->payload->{"run_after_build"}
Truth table50%1/2
A
A= $_[0]->payload->{"run_after_build"}
Aresult
11
00
409 2 );
410  
411 #pod =attr run_after_release
412 #pod
413 #pod Specifies commands to run after the release has been made. Use it to e.g.,
414 #pod automatically install your distibution after releasing. Multiple
415 #pod run_after_release commands can be specified.
416 #pod
417 #pod The commands are run from the root of your development tree and has
418 #pod the same symbols available as the L</run_after_build>, plus the
419 #pod following:
420 #pod
421 #pod =for :list
422 #pod * C<%a> the archive of the release
423 #pod
424 #pod Default: C<cpanm './%d'>
425 #pod
426 #pod =head3 Examples:
427 #pod
428 #pod To install using cpanm (this is the default):
429 #pod
430 #pod run_after_release = cpanm './%d'
431 #pod
432 #pod To install using cpan:
433 #pod
434 #pod run_after_release = %x -MCPAN -einstall './%d'
435 #pod
436 #pod To not do anything:
437 #pod
438 #pod run_after_release =
439 #pod
440 #pod =cut
441  
442 has run_after_release => (
443 is => 'ro',
444 isa => 'ArrayRef',
445 lazy => 1,
446 1 ▶ default => sub { exists $_[0]->payload->{run_after_release} ? $_[0]->payload->{run_after_release} : [ 'cpanm ./%d' ] },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
exists $_[0]->payload->{'run_after_release'} ? : 1 0 1
447 2 );
448  
449 #pod =attr additional_test
450 #pod
451 #pod Additional test plugin to use. Can be used multiple times to add more
452 #pod than one additional test.
453 #pod
454 #pod By default the following tests are executed:
455 #pod
456 #pod =for :list
457 #pod * L<Test::Compile|Dist::Zilla::Plugin::Test::Compile> -- Checks if perl code compiles correctly
458 #pod * L<Test::Perl::Critic|Dist::Zilla::Plugin::Test::Perl::Critic> -- Checks Perl source code for best-practices
459 #pod * L<Test::EOL|Dist::Zilla::Plugin::Test::EOL> -- Checks line endings
460 #pod * L<Test::NoTabs|Dist::Zilla::Plugin::Test::NoTabs> -- Checks for the use of tabs
461 #pod * L<Test::Version|Dist::Zilla::Plugin::Test::Version> -- Checks to see if each module has the correct version set
462 #pod * L<Test::MinimumVersion|Dist::Zilla::Plugin::Test::MinimumVersion> -- Checks the minimum perl version, using L</max_target_perl>
463 #pod * L<MojibakeTests|Dist::Zilla::Plugin::MojibakeTests> -- Checks source encoding
464 #pod * L<Test::Kwalitee|Dist::Zilla::Plugin::Test::Kwalitee> -- Checks the Kwalitee
465 #pod * L<Test::Portability|Dist::Zilla::Plugin::Test::Portability> -- Checks portability of code
466 #pod * L<Test::UnusedVars|Dist::Zilla::Plugin::Test::UnusedVars> -- Checks for unused variables
467 #pod * L<Test::CPAN::Changes|Dist::Zilla::Plugin::Test::CPAN::Changes> -- Validation of the Changes file
468 #pod * L<Test::DistManifest|Dist::Zilla::Plugin::Test::DistManifest> -- Validation of the MANIFEST file
469 #pod * L<Test::CPAN::Meta::JSON|Dist::Zilla::Plugin::Test::CPAN::Meta::JSON> -- Validation of the META.json file -- only when hosted on GitHub
470 #pod * L<MetaTests|Dist::Zilla::Plugin::MetaTests> -- Validation of the META.yml file -- only when hosted on GitHub
471 #pod * L<PodSyntaxTests|Dist::Zilla::Plugin::PodSyntaxTests> -- Checks pod syntax
472 #pod * L<PodCoverageTests|Dist::Zilla::Plugin::PodCoverageTests> -- Checks pod coverage
473 #pod * L<LinkCheck|Dist::Zilla::Plugin::Author::HAYOBAAN::LinkCheck> -- Checks pod links
474 #pod * L<Test::Synopsis|Dist::Zilla::Plugin::Test::Synopsis> -- Checks the pod synopsis
475 #pod
476 #pod =cut
477  
478 has additional_test => (
479 is => 'ro',
480 isa => 'ArrayRef[Str]',
481 lazy => 1,
482 1 ▶ default => sub { $_[0]->payload->{additional_test} // [] },
Subroutine __ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$_[0]->payload->{"additional_test"} // []
l!l
01
MC/DC0%0/1
$_[0]->payload->{"additional_test"} // []
$_[0]->payload->{"additional_test"}
Truth table50%1/2
A
A= $_[0]->payload->{"additional_test"}
Aresult
11
00
483 2 );
484  
485 #pod =attr disable_test
486 #pod
487 #pod Specifies the test you don't want to be run. Can bu used more than
488 #pod once to disable multiple tests.
489 #pod
490 #pod Default: I<none> (i.e., run all default and L</additional_test> tests).
491 #pod
492 #pod =cut
493  
494 has disable_test => (
495 is => 'ro',
496 isa => 'ArrayRef[Str]',
497 lazy => 1,
498 1 ▶ default => sub { $_[0]->payload->{disable_test} // [] },
Subroutine __ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$_[0]->payload->{"disable_test"} // []
l!l
01
MC/DC0%0/1
$_[0]->payload->{"disable_test"} // []
$_[0]->payload->{"disable_test"}
Truth table50%1/2
A
A= $_[0]->payload->{"disable_test"}
Aresult
11
00
499 2 );
500  
501 #pod =attr max_target_perl
502 #pod
503 #pod Defines the highest minimum version of perl you intend to require.
504 #pod This is passed to L<Test::MinimumVersion|Dist::Zilla::Plugin::Test::MinimumVersion>, which generates
505 #pod a F<minimum-version.t> test that'll warn you if you accidentally used features
506 #pod from a higher version of perl than you wanted. (Having a lower required version
507 #pod of perl is okay.)
508 #pod
509 #pod Default: C<5.006>
510 #pod
511 #pod =cut
512  
513 has max_target_perl => (
514 is => 'ro',
515 isa => 'Str',
516 lazy => 1,
517 1 ▶ default => sub { $_[0]->payload->{max_target_perl} // '5.006' },
Subroutine __ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$_[0]->payload->{"max_target_perl"} // "5.006"
l!l
01
MC/DC0%0/1
$_[0]->payload->{"max_target_perl"} // "5.006"
$_[0]->payload->{"max_target_perl"}
Truth table50%1/2
A
A= $_[0]->payload->{"max_target_perl"}
Aresult
11
00
518 2 );
519  
520 #pod =attr surgical
521 #pod
522 #pod If this is set to I<true>,
523 #pod L<SurgicalPodWeaver|Dist::Zilla::Plugin::SurgicalPodWeaver> is used
524 #pod instead of the standard L<PodWeaver|Dist::Zilla::Plugin::PodWeaver>
525 #pod plugin. L<SurgicalPodWeaver|Dist::Zilla::Plugin::SurgicalPodWeaver>
526 #pod only munges files that contain either a C<# ABSTRACT> or a C<#
527 #pod Dist::Zilla: +PodWeaver> line.
528 #pod
529 #pod Default: I<false>
530 #pod
531 #pod =cut
532  
533 has surgicalpod => (
534 is => 'ro',
535 isa => 'Str',
536 lazy => 1,
537 1 ▶ default => sub { $_[0]->payload->{surgicalpod} // 0 },
Subroutine __ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$_[0]->payload->{"surgicalpod"} // 0
l!l
01
MC/DC0%0/1
$_[0]->payload->{"surgicalpod"} // 0
$_[0]->payload->{"surgicalpod"}
Truth table50%1/2
A
A= $_[0]->payload->{"surgicalpod"}
Aresult
11
00
538 2 );
539  
540 #pod =attr weaver_config
541 #pod
542 #pod Specifies the configuration for L<Pod::Weaver>.
543 #pod
544 #pod Default: C<@Author::HAYOBAAN>.
545 #pod
546 #pod =cut
547  
548 has weaver_config => (
549 is => 'ro',
550 isa => 'Str',
551 lazy => 1,
552 1 ▶ default => sub { $_[0]->payload->{weaver_config} // '@Author::HAYOBAAN' },
Subroutine __ANON__: called CC=2 SCAR=7.6
Condition50%1/2
$_[0]->payload->{"weaver_config"} // "\@Author::HAYOBAAN"
l!l
01
MC/DC0%0/1
$_[0]->payload->{"weaver_config"} // "\@Author::HAYOBAAN"
$_[0]->payload->{"weaver_config"}
Truth table50%1/2
A
A= $_[0]->payload->{"weaver_config"}
Aresult
11
00
553 2 );
554  
555 #pod =attr tag_format
556 #pod
557 #pod Specifies the format for tagging a release (see
558 #pod L<Git::Tag|Dist::Zilla::Plugin::Git::Tag> for details).
559 #pod
560 #pod Default: C<v%v%t>
561 #pod
562 #pod =cut
563  
564 has tag_format => (
565 is => 'ro',
566 isa => 'Str',
567 lazy => 1,
568 0 ▶ default => sub { $_[0]->payload->{tag_format} // 'v%v%t' },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$_[0]->payload->{"tag_format"} // "v%v%t"
l!l
00
MC/DC0%0/1
$_[0]->payload->{"tag_format"} // "v%v%t"
$_[0]->payload->{"tag_format"}
Truth table0%0/2
A
A= $_[0]->payload->{"tag_format"}
Aresult
11
00
569 2 );
570  
571 #pod =attr version_regexp
572 #pod
573 #pod Specifies the regexp for versions (see
574 #pod L<Git::NextVersion|Dist::Zilla::Plugin::Git::NextVersion> for details).
575 #pod
576 #pod Default: C<^v?([\d.]+(?:_\d+)?)(?:-TRIAL)?$>
577 #pod
578 #pod Note: Only used in case of git version controlled repositories
579 #pod (L<AutoVersion|Dist::Zilla::Plugin::AutoVersion> is used in case of
580 #pod non-git version controlled repositories).
581 #pod
582 #pod =cut
583  
584 has version_regexp => (
585 is => 'ro',
586 isa => 'Str',
587 lazy => 1,
588 0 ▶ default => sub { $_[0]->payload->{version_regexp} // '^v?([\d.]+(?:_\d+)?)(?:-TRIAL)?$' },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Condition0%0/2
$_[0]->payload->{"version_regexp"} // "^v?([\\d.]+(?:_\\d+)?)(?:-TRIAL)?\$"
l!l
00
MC/DC0%0/1
$_[0]->payload->{"version_regexp"} // "^v?([\\d.]+(?:_\\d+)?)(?:-TRIAL)?\$"
$_[0]->payload->{"version_regexp"}
Truth table0%0/2
A
A= $_[0]->payload->{"version_regexp"}
Aresult
11
00
589 2 );
590  
591 ################################################################################
592  
593 # List of files to copy to the root after they were built.
594 has copy_build_files => (
595 is => 'ro',
596 isa => 'ArrayRef[Str]',
597 lazy => 1,
598 1 ▶ default => sub { [ ($_[0]->use_modulebuild ? qw(Build.PL) : ()),
Subroutine __ANON__: called CC=3 SCAR=12.7
Branch: 2 branches
BranchTrueFalseTotal
$_[0]->use_modulebuild ? : 0 1 1
$_[0]->use_makemaker ? : 1 0 1
599 ($_[0]->use_makemaker ? qw(Makefile.PL) : ()),
600 qw(README README.mkdn) ] },
601 2 );
602  
603 # Files to exclude from gatherer
604 has exclude_files => (
605 is => 'ro',
606 isa => 'ArrayRef[Str]',
607 lazy => 1,
608 1 ▶ default => sub { [
Subroutine __ANON__: called CC=1 SCAR=0.0
609 1 @{$_[0]->copy_build_files},
610 qw(MANIFEST),
611 ] },
612 2 );
613  
614 # Files that can be "dirty"
615 has allow_dirty => (
616 is => 'ro',
617 isa => 'ArrayRef[Str]',
618 lazy => 1,
619 0 ▶ default => sub { [
Subroutine __ANON__: not called CC=1 SCAR=6.9
620 0 @{$_[0]->copy_build_files},
621 qw(dist.ini Changes),
622 ] },
623 2 );
624  
625 # Directories that should not be indexed
626 has meta_no_index_dirs => (
627 is => 'ro',
628 isa => 'ArrayRef[Str]',
629 lazy => 1,
630 1 ▶ default => sub { [ qw(corpus) ] },
Subroutine __ANON__: called CC=1 SCAR=0.0
631 2 );
632  
633 16 ▶sub _is_disabled {
Subroutine _is_disabled: called CC=1 SCAR=0.1
634 16 my $self = shift;
635 16 my $plugin = shift;
636 0 return grep { $_ eq $plugin } @{$self->disable_test}
637 }
638  
639 # Helper function to add a test, checks for disabled tests
640 16 ▶sub _add_test {
Subroutine _add_test: called CC=2 SCAR=6.9
641 16 my $self = shift;
642 16 ▶ return grep { ! $self->_is_disabled(ref $_ ? $_->[0] : $_) } @_;
Branch: 1 branch
BranchTrueFalseTotal
ref $_ ? : 2 14 16
643 }
644  
645 #pod =for Pod::Coverage configure getBooleanCommandlineOption
646 #pod
647 #pod =cut
648  
649 # Returns the value of a boolean command-line option
650 4 ▶sub getBooleanCommandlineOption {
Subroutine getBooleanCommandlineOption: called CC=2 SCAR=7.6
Pod undocumented
651 4 my $option = $_[0];
652 0 my @result = grep { /^--?(no-)?$option$/ } @ARGV;
653 4 ▶ return @result ? $result[-1] !~ /^--?no-/ : undef;
Branch: 1 branch
BranchTrueFalseTotal
@result ? : 0 4 4
654 }
655  
656 1 ▶sub configure {
Subroutine configure: called CC=35 SCAR=51.6
Pod undocumented
657 1 my $self = shift;
658  
659 {
660 # Command-line argument processing
661  
662 # Local-relase-only
663 1 my $local = getBooleanCommandlineOption('local|local-only|local-release|local-release-only');
664 1 ▶ $self->local_release_only($local) if defined $local;
Branch: 1 branch
BranchTrueFalseTotal
if defined $local 0 1 1
665  
666 # Make-minor-release
667 1 my $minor = getBooleanCommandlineOption('minor|minor-relase|make-minor|make-minor-release');
668 1 ▶ $self->make_minor_release($minor) if defined $minor;
Branch: 1 branch
BranchTrueFalseTotal
if defined $minor 0 1 1
669  
670 # Make-major-release
671 1 my $major = getBooleanCommandlineOption('major|major-relase|make-major|make-major-release');
672 1 ▶ $self->make_major_release($major) if defined $major;
Branch: 1 branch
BranchTrueFalseTotal
if defined $major 0 1 1
673  
674 # Keep-version
675 1 my $keep = getBooleanCommandlineOption('keep|keep-version');
676 1 ▶ $self->keep_version($keep) if defined $keep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $keep 0 1 1
677 }
678  
679 return $self->add_plugins(
680 #### Version ####
681 $self->no_git ? (
682 # Provide automatic version based on date
683 'AutoVersion'
684 ) : (
685 # Provide a version number by bumping the last git release tag
686 [
687 'Author::HAYOBAAN::NextVersion' => {
688 first_version => '0.001', # First version = 0.001
689 version_by_branch => 0, # Set to 1 if doing maintenance branch
690 version_regexp => $self->version_regexp, # Regexp for version format
691 include_minor_version => $self->make_minor_release, # Minor release?
692 remove_minor_version => $self->make_major_release, # Force major release?
693 keep_version => $self->keep_version, # Keep release number?
694 },
695 ],
696 ),
697  
698 # Adds version to file (no line insertion, using our)
699 'OurPkgVersion',
700  
701 #### Gather & Prune ####
702 # Gather files to include
703 [ $self->no_git ? 'GatherDir' : 'Git::GatherDir' => { exclude_filename => $self->exclude_files } ],
704 # Remove cruft
705 'PruneCruft',
706 # Skip files in MANIFEST.SKIP
707 'ManifestSkip',
708  
709 #### PodWeaver ####
710 # Automatically extends POD
711 [
712 ($self->surgicalpod ? 'SurgicalPodWeaver' : 'PodWeaver') => {
713 config_plugin => $self->weaver_config,
714 replacer => 'replace_with_comment',
715 post_code_replacer => 'replace_with_nothing',
716 }
717 ],
718  
719 #### Distribution Files & Metadata ####
720 # Create README and README.mkdn from POD
721 [ 'ReadmeAnyFromPod', 'Text' ],
722 [ 'ReadmeAnyFromPod', 'Markdown' ],
723  
724 $self->is_github_hosted ? (
725 # Create a LICENSE file
726 'License',
727 # Create an INSTALL file
728 'InstallGuide',
729 ) : (),
730  
731 # Automatically determine minimum perl version
732 'MinimumPerl',
733 # Automatically determine prerequisites
734 'AutoPrereqs',
735  
736 # Do not index certain dirs",
737 [ 'MetaNoIndex' => { dir => $self->meta_no_index_dirs } ],
738  
739 $self->is_github_hosted ? (
740 # Add GitHub metadata",
741 'GitHub::Meta',
742 # Add META.json",
743 'MetaJSON',
744 # Add META.yml",
745 'MetaYAML',
746 # Add provided Packages to META.*",
747 'MetaProvides::Package',
748 # Add provided Classes to META.*",
749 'MetaProvides::Class',
750 ) : (),
751  
752 #### Build System ####
753 # Install content of bin directory as executables
754 'ExecDir',
755 # Install content of share directory as sharedir
756 'ShareDir',
757 $self->use_makemaker ? (
758 # Build a Makefile.PL that uses ExtUtils::MakeMaker
759 [ 'MakeMaker', { default_jobs => 9 } ],
760 ) : (),
761 $self->use_modulebuild ? (
762 # Build a Build.PL that uses Module::Build
763 'ModuleBuild',
764 ) : (),
765  
766 # Add Manifest
767 'Manifest',
768  
769 #### After Build ####
770 # Copy/move specific files after building them
771 [ 'CopyFilesFromBuild' => { copy => $self->copy_build_files } ],
772  
773 1 ▶ @{$self->run_after_build} ? (
Branch: 8 branches
BranchTrueFalseTotal
$self->is_github_hosted && $self->is_cpan ? : 0 1 1
!$self->local_release_only ? : 1 0 1
!($self->no_git || $self->local_release_only) ? : 0 1 1
$self->is_cpan ? : 0 0 0
$self->is_github_hosted ? : 0 1 1
!$self->local_release_only ? : 1 0 1
$self->is_github_hosted ? : 0 1 1
@{$self->additional_test;} ? : 0 1 1
Condition33%2/6
$self->is_github_hosted and $self->is_cpan
!ll&&!rl&&r
100
$self->no_git || $self->local_release_only
l!l&&r!l&&!r
100
MC/DC0%0/2
$self->is_github_hosted and $self->is_cpan
$self->is_github_hosted $self->is_cpan
MC/DC0%0/2
$self->no_git || $self->local_release_only
$self->no_git $self->local_release_only
Truth table33%1/3
A and B
A= $self->is_github_hostedB= $self->is_cpan
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $self->no_gitB= $self->local_release_only
ABresult
1X1
011
000
774 # Run specified commands
775 [ 'Run::AfterBuild' => { run => $self->run_after_build } ],
776 ) : (),
777  
778 $self->is_github_hosted && $self->is_cpan ? (
779 # Add status badges to README.mkdn
780 [ 'GitHubREADME::Badge' => { ':version' => '0.16', badges => [ qw(cpants) ] } ],
781 ) : (),
782  
783 #### Before Release Tests ####
784 !$self->local_release_only ? (
785 # Check if Changes file has content
786 'CheckChangesHasContent',
787 ) : (),
788  
789 !$self->no_git && !$self->local_release_only ? (
790 # Check if we're on the correct git branch
791 'Git::CheckFor::CorrectBranch',
792 # Check git repository for uncommitted files before releasing
793 [ 'Git::Check' => { allow_dirty => $self->allow_dirty } ],
794 $self->is_cpan ? (
795 # Check resources section of meta files
796 'CheckMetaResources',
797 # Check if prereqs are available on CPAN
798 'CheckPrereqsIndexed',
799 ) : (),
800 ) : (),
801  
802 # Extra test (gatherdir)
803 # Checks if perl code compiles correctly
804 $self->_add_test('Test::Compile'),
805  
806 # Extra tests (author)
807 # Checks Perl source code for best-practices
808 $self->_add_test('Test::Perl::Critic'),
809 # Checks line endings
810 $self->_add_test('Test::EOL'),
811 # Checks for the use of tabs
812 $self->_add_test('Test::NoTabs'),
813  
814 # Extra tests (release)
815 # Checks to see if each module has the correct version set
816 $self->_add_test('Test::Version'),
817 # Checks the minimum perl version
818 $self->_add_test([ 'Test::MinimumVersion' => { max_target_perl => $self->max_target_perl } ]),
819 # Checks source encoding
820 $self->_add_test('MojibakeTests'),
821 # Checks the Kwalitee
822 $self->_add_test([ 'Test::Kwalitee' => { $self->is_github_hosted ? () : (skiptest => [ qw(has_meta_yml) ]) } ]),
823 # Checks portability of code
824 $self->_add_test('Test::Portability'),
825 # Checks for unused variables
826 $self->_add_test('Test::UnusedVars'),
827 !$self->local_release_only ? (
828 # Validation of the Changes file
829 $self->_add_test('Test::CPAN::Changes'),
830 ) : (),
831 # Validation of the MANIFEST file
832 $self->_add_test('Test::DistManifest'),
833  
834 $self->is_github_hosted ? (
835 # Validation of the META.json file
836 $self->_add_test('Test::CPAN::Meta::JSON'),
837 # Validation of the META.yml file
838 $self->_add_test('MetaTests'),
839 ) : (),
840  
841 # Checks pod syntax
842 $self->_add_test('PodSyntaxTests'),
843 # Checks pod coverage
844 $self->_add_test('PodCoverageTests'),
845 # Checks pod links
846 $self->_add_test('Author::HAYOBAAN::LinkCheck'),
847 # Checks the pod synopsis
848 $self->_add_test('Test::Synopsis'),
849  
850 # Add the additional tests specified
851 0 ▶ @{$self->additional_test} ? $self->_add_test(@{$self->additional_test}) : (),
Branch: 5 branches
BranchTrueFalseTotal
!$self->local_release_only ? : 1 0 1
$self->is_cpan && !$self->local_release_only ? : 0 1 1
!$self->local_release_only ? : 1 0 1
!($self->no_git || $self->local_release_only) ? : 0 1 1
$self->is_github_hosted && @{$self->git_remote;} && !$self->local_release_only ? : 0 1 1
Condition33%4/12
$self->is_cpan and not $self->local_release_only
!ll&&!rl&&r
100
$self->no_git || $self->local_release_only
l!l&&r!l&&!r
100
$self->is_github_hosted and @{$self->git_remote;} and not $self->local_release_only
!ll&&!rl&&r
100
$self->is_github_hosted and @{$self->git_remote;}
!ll&&!rl&&r
100
MC/DC0%0/2
$self->is_cpan and not $self->local_release_only
$self->is_cpan not $self->local_release_only
MC/DC0%0/2
$self->no_git || $self->local_release_only
$self->no_git $self->local_release_only
MC/DC0%0/3
$self->is_github_hosted and @{$self->git_remote;} and not $self->local_release_only
$self->is_github_hosted @{$self->git_remote;} not $self->local_release_only
Truth table33%1/3
A and not(B)
A= $self->is_cpanB= not $self->local_release_only
ABresult
0X0
100
111
Truth table33%1/3
A || B
A= $self->no_gitB= $self->local_release_only
ABresult
1X1
011
000
Truth table25%1/4
A and B and not(C)
A= $self->is_github_hostedB= @{$self->git_remote;}C= not $self->local_release_only
ABCresult
0XX0
10X0
1100
1111
852  
853 #### Run tests ####
854 # Run provided tests in /t directory before releasing
855 'TestRelease',
856 # Run the extra tests
857 [ 'RunExtraTests' => { default_jobs => 9 } ],
858  
859 #### Release ####
860 !$self->local_release_only ? (
861 # Prompt for confirmation before releasing
862 'ConfirmRelease',
863 ) : (),
864 $self->is_cpan && !$self->local_release_only ? (
865 # Upload release to CPAN,
866 'UploadToCPAN',
867 ) : (
868 # Fake release
869 'FakeRelease',
870 ),
871  
872 #### After release ###
873 !$self->local_release_only ? (
874 # Update the next release number in the changelog
875 [ 'NextRelease' => { format => '%-9v %{yyyy-MM-dd}d' } ],
876 ) : (),
877  
878 !$self->no_git && !$self->local_release_only ? (
879 # Commit dirty files
880 [ 'Git::Commit' => { allow_dirty => $self->allow_dirty } ],
881 # Tag the new version
882 [
883 'Git::Tag' => {
884 tag_format => $self->tag_format,
885 tag_message => 'Released ' . $self->tag_format,
886 }
887 ],
888 ) : (),
889  
890 0 ▶ $self->is_github_hosted && @{$self->git_remote} && !$self->local_release_only ? (
Branch: 2 branches
BranchTrueFalseTotal
$self->is_cpan && !$self->local_release_only ? : 0 1 1
@{$self->run_after_release;} ? : 1 0 1
Condition33%1/3
$self->is_cpan and not $self->local_release_only
!ll&&!rl&&r
100
MC/DC0%0/2
$self->is_cpan and not $self->local_release_only
$self->is_cpan not $self->local_release_only
Truth table33%1/3
A and not(B)
A= $self->is_cpanB= not $self->local_release_only
ABresult
0X0
100
111
891 # Push current branch
892 [ 'Git::Push', { push_to => $self->git_remote } ],
893 ) : (),
894  
895 $self->is_cpan && !$self->local_release_only ? (
896 # Update GitHub repository info on release
897 [ 'GitHub::Update' => { metacpan => 1 } ]
898 ) : (),
899  
900 1 ▶ @{$self->run_after_release} ? (
Branch: 8 branches
BranchTrueFalseTotal
$self->no_git ? : 1 0 1
$self->no_git ? : 1 0 1
$self->surgicalpod ? : 0 1 1
$self->is_github_hosted ? : 0 1 1
$self->is_github_hosted ? : 0 1 1
$self->use_makemaker ? : 1 0 1
$self->use_modulebuild ? : 0 1 1
@{$self->run_after_build;} ? : 0 1 1
901 # Install the release
902 [ 'Run::AfterRelease' => { run => $self->run_after_release } ],
903 ) : (),
904  
905 # Cleanup
906 'Clean',
907 );
908 }
909  
910 2 __PACKAGE__->meta->make_immutable;
911 2 1;
912  
913 __END__
↑ Summary Dist/Zilla/Plugin/Author/HAYOBAAN/NextVersion.pm »