Dist/Zilla/PluginBundle/Author/RWSTAUNER.pm

filter: Statementstmt 93.8% 122 / 130 Branchbran 81.0% 47 / 58 Conditioncond 70.5% 12 / 17 MC/DCmcdc 36.3% 4 / 11 Subroutinesub 93.9% 31 / 33 Podpod n/a totaltotal 86.7% 216 / 249 CC 34 SCAR 17.2
CC
34
Cov
88%
configure
14.3
__ANON__
10.1
_bundle_name
3.7
CRAP 5.6
↑ Summary Pod/Weaver/PluginBundle/Author/RWSTAUNER.pm »
1 # vim: set ts=2 sts=2 sw=2 expandtab smarttab:
2 #
3 # This file is part of Dist-Zilla-PluginBundle-Author-RWSTAUNER
4 #
5 # This software is copyright (c) 2010 by Randy Stauner.
6 #
7 # This is free software; you can redistribute it and/or modify it under
8 # the same terms as the Perl 5 programming language system itself.
9 #
10 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 package Dist::Zilla::PluginBundle::Author::RWSTAUNER;
14 # git description: v6.001-1-gc3c24a5
15  
16 2 our $AUTHORITY = 'cpan:RWSTAUNER';
17 2 $Dist::Zilla::PluginBundle::Author::RWSTAUNER::VERSION = '6.002';
18 # ABSTRACT: RWSTAUNER's Dist::Zilla config
19  
20 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 2 ▶use List::Util qw(first); # core
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶use Moose::Util::TypeConstraints 1.01;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 2 with qw(
25 Dist::Zilla::Role::PluginBundle::Easy
26 Dist::Zilla::Role::PluginBundle::Config::Slicer
27 Dist::Zilla::Role::PluginBundle::PluginRemover
28 );
29 # Dist::Zilla::Role::DynamicConfig is not necessary: payload is already dynamic
30  
31 # don't require it in case it won't install somewhere
32 2 my $spelling_tests = eval { require Dist::Zilla::Plugin::Test::PodSpelling; };
33  
34 # cannot use $self->name for class methods
35 41 ▶sub _bundle_name {
Subroutine _bundle_name: called CC=3 SCAR=13.1
36 41 ▶ my $class = @_ ? ref $_[0] || $_[0] : __PACKAGE__;
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 41 0 41
Condition33%1/3
ref $_[0] or $_[0]
l!l&&r!l&&!r
4100
MC/DC0%0/2
ref $_[0] or $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A or B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
37 41 join('', '@', ($class =~ /^.+::PluginBundle::(.+)$/));
38 }
39  
40 10 ▶sub mvp_multivalue_args { qw(
Subroutine mvp_multivalue_args: called CC=1 SCAR=0.0
41 copy_files
42 ) }
43  
44 552 ▶sub _config {
Subroutine _config: called CC=2 SCAR=6.9
45 552 my ($self, $key, $default) = @_;
46 552 ▶ exists $self->payload->{$key} ? $self->payload->{$key} : $default;
Branch: 1 branch
BranchTrueFalseTotal
exists $self->payload->{$key} ? : 25 527 552
47 }
48  
49 has authority => (
50 is => 'ro',
51 isa => 'Str',
52 lazy => 1,
53 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
54 40 $_[0]->_config(authority => $_[0]->_default_authority);
55 },
56 2 );
57  
58 41 ▶sub _default_authority {
Subroutine _default_authority: called CC=3 SCAR=12.0
59 41 ▶ (ref($_[0]) || $_[0]) =~ /Author::(\w+)/ ? 'cpan:'.$1 : undef;
Branch: 1 branch
BranchTrueFalseTotal
(ref $_[0] || $_[0]) =~ /Author::(\w+)/ ? : 41 0 41
Condition66%2/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
4010
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table66%2/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
60 }
61  
62 has auto_prereqs => (
63 is => 'ro',
64 isa => 'Bool',
65 lazy => 1,
66 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
67 40 $_[0]->_config(auto_prereqs => 1);
68 }
69 2 );
70  
71 has copy_files => (
72 is => 'ro',
73 isa => 'ArrayRef[Str]',
74 lazy => 1,
75 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
76 [ qw( LICENSE ),
77 40 map { /(\S+)/g } @{ $_[0]->_config(copy_files => []) } ]
78 },
79 2 );
80  
81 has fake_release => (
82 is => 'ro',
83 isa => 'Bool',
84 lazy => 1,
85 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
86 40 $_[0]->_config(fake_release => $ENV{DZIL_FAKERELEASE});
87 }
88 2 );
89  
90 has install_command => (
91 is => 'ro',
92 isa => 'Str',
93 lazy => 1,
94 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
95 # cpanm will choose the best place to install
96 40 $_[0]->_config(install_command => 'cpanm -v -i .');
97 }
98 2 );
99  
100 has is_task => (
101 is => 'ro',
102 isa => 'Bool',
103 lazy => 1,
104 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
105 40 $_[0]->_config(is_task => 0);
106 }
107 2 );
108  
109 has max_target_perl => (
110 is => 'ro',
111 isa => 'Str',
112 lazy => 1,
113 38 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
114 38 $_[0]->_config(max_target_perl => '5.008');
115 }
116 2 );
117  
118 has open_source => (
119 is => 'ro',
120 isa => 'Bool',
121 lazy => 1,
122 42 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
123 42 $_[0]->_config(open_source => 1);
124 }
125 2 );
126  
127 has placeholder_comments => (
128 is => 'ro',
129 isa => 'Bool',
130 lazy => 1,
131 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
132 40 $_[0]->_config(placeholder_comments => 0);
133 }
134 2 );
135  
136 has releaser => (
137 is => 'ro',
138 isa => 'Str',
139 lazy => 1,
140 34 ▶ default => sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
141 34 ▶ $_[0]->_config('releaser', $_[0]->open_source ? 'UploadToCPAN' : '');
Branch: 1 branch
BranchTrueFalseTotal
$_[0]->open_source ? : 30 4 34
142 },
143 2 );
144  
145 has readme_phase => (
146 is => 'ro',
147 isa => 'Str',
148 lazy => 1,
149 38 ▶ default => sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
150 38 ▶ $_[0]->_config(readme_phase => $ENV{DZIL_README_PHASE} || 'release');
Condition100%2/2
$ENV{'DZIL_README_PHASE'} || 'release'
l!l
137
MC/DC100%1/1
$ENV{'DZIL_README_PHASE'} || 'release'
$ENV{'DZIL_README_PHASE'}
Truth table100%2/2
A
A= $ENV{'DZIL_README_PHASE'}
Aresult
11
00
151 }
152 2 );
153  
154 has skip_plugins => (
155 is => 'ro',
156 isa => 'Maybe[Regexp]',
157 lazy => 1,
158 40 ▶ default => sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
159 40 my $skip = $_[0]->_config(skip_plugins => '');
160 40 ▶ return $skip ? qr/$skip/x : undef;
Branch: 1 branch
BranchTrueFalseTotal
$skip ? : 3 37 40
161 }
162 2 );
163  
164 has use_git_bundle => (
165 is => 'ro',
166 isa => 'Bool',
167 lazy => 1,
168 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
169 40 $_[0]->_config(use_git_bundle => 1);
170 }
171 2 );
172  
173 has weaver_config => (
174 is => 'ro',
175 isa => 'Str',
176 lazy => 1,
177 40 ▶ default => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
178 40 $_[0]->_config(weaver_config => $_[0]->_bundle_name);
179 }
180 2 );
181  
182 73 ▶around BUILDARGS => sub {
Subroutine __ANON__: called CC=3 SCAR=11.0
183 73 my ($orig, $class, @args) = @_;
184 73 my $attr = $class->$orig(@args);
185  
186 # removed attributes
187 73 my %removed = (
188 builder => '-remove',
189 disable_tests => '-remove',
190 skip_prereqs => 'AutoPrereqs.skip',
191 );
192 73 ▶ while( my ($old, $new) = each %removed ){
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %removed) 215 70 285
193 215 ▶ if( exists $attr->{payload}{ $old } ){
Branch: 1 branch
BranchTrueFalseTotal
if (exists $attr->{"payload"}{$old}) 3 212 215
194 3 die "$class no longer supports '$old'.\n Please use '$new' instead.\n";
195 }
196 }
197 70 return $attr;
198 2 };
199  
200 # Alter configuration after setup.
201 40 ▶after configure => sub {
Subroutine __ANON__: called CC=9 SCAR=23.1
202 40 my ($self) = @_;
203  
204 # TODO: accept this from ENV
205 40 my $skip = $self->skip_plugins;
206  
207 40 my $dynamic = $self->payload;
208 # sneak this config in behind @TestingMania's back
209 $dynamic->{'Test::Compile.fake_home'} = 1
210 40 ▶ unless first { /Test::Compile\W+fake_home/ } keys %$dynamic;
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless &first(sub { /Test::Compile\W+fake_home/; } , keys %$dynamic) 39 1 40
211  
212 40 my $plugins = $self->plugins;
213  
214 40 my $i = -1;
215 40 ▶ while( ++$i < @$plugins ){
Branch: 1 branch
BranchTrueFalseTotal
if (++$i < @$plugins) 2529 40 2569
216 2531 ▶ my $spec = $plugins->[$i] or next;
Branch: 1 branch
BranchTrueFalseTotal
my $spec = $plugins->[$i] or next 2531 0 2531
217 # NOTE: $conf retains its reference (modifications alter $spec)
218 2531 my ($name, $class, $conf) = @$spec;
219  
220 # ignore the prefix (@Bundle/Name => Name) (DZP::Name => Name)
221 2531 my ($alias) = ($name =~ m#([^/]+)$#);
222 2531 my ($moniker) = ($class =~ m#^(?:Dist::Zilla::Plugin(?:Bundle)?::)?(.+)$#);
223  
224 # exclude any plugins that match 'skip_plugins'
225 2531 ▶ if( $skip ){
Branch: 1 branch
BranchTrueFalseTotal
if ($skip) 177 2354 2531
226 # match on full name or plugin class (regexp should use \b not \A)
227 177 ▶ if( $name =~ $skip || $class =~ $skip ){
Branch: 1 branch
BranchTrueFalseTotal
if ($name =~ /$skip/ or $class =~ /$skip/) 2 175 177
Condition66%2/3
$name =~ /$skip/ or $class =~ /$skip/
l!l&&r!l&&!r
20175
MC/DC50%1/2
$name =~ /$skip/ or $class =~ /$skip/
$name =~ /$skip/ $class =~ /$skip/
Truth table66%2/3
A or B
A= $name =~ /$skip/B= $class =~ /$skip/
ABresult
1X1
011
000
228 2 splice(@$plugins, $i, 1);
229 2 redo;
230 }
231 }
232 }
233 40 ▶ if ( $ENV{DZIL_BUNDLE_DEBUG} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($ENV{"DZIL_BUNDLE_DEBUG"}) 0 40 40
234 0 eval {
235 0 require YAML::Tiny; # dzil requires this
236 0 $self->log( YAML::Tiny::Dump( $self->plugins ) );
237 };
238 0 ▶ warn $@ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 0 0
239 }
240 2 };
241  
242 78 ▶around add_bundle => sub {
Subroutine __ANON__: called CC=3 SCAR=11.0
243 78 my ($orig, $self, $name, @args) = @_;
244 78 ▶ return if $self->skip_plugins && $self->skip_plugins =~ $name;
Branch: 1 branch
BranchTrueFalseTotal
if $self->skip_plugins and $self->skip_plugins =~ /$name/ 1 77 78
Condition100%3/3
$self->skip_plugins and $self->skip_plugins =~ /$name/
!ll&&!rl&&r
7251
MC/DC100%2/2
$self->skip_plugins and $self->skip_plugins =~ /$name/
$self->skip_plugins $self->skip_plugins =~ /$name/
Truth table100%3/3
A and B
A= $self->skip_pluginsB= $self->skip_plugins =~ /$name/
ABresult
0X0
100
111
245 77 $self->$orig($name, @args);
246 2 };
247  
248 # Configure plugins.
249 40 ▶sub configure {
Subroutine configure: called CC=14 SCAR=26.6
250 40 my ($self) = @_;
251  
252 40 ▶ $self->log_fatal("you must not specify both weaver_config and is_task")
Branch: 1 branch
BranchTrueFalseTotal
if $self->is_task and $self->weaver_config ne $self->_bundle_name 0 40 40
Condition66%2/3
$self->is_task and $self->weaver_config ne $self->_bundle_name
!ll&&!rl&&r
3910
MC/DC0%0/2
$self->is_task and $self->weaver_config ne $self->_bundle_name
$self->is_task $self->weaver_config ne $self->_bundle_name
Truth table66%2/3
A and B
A= $self->is_taskB= $self->weaver_config ne $self->_bundle_name
ABresult
0X0
100
111
253 if $self->is_task and $self->weaver_config ne $self->_bundle_name;
254  
255 $self->add_plugins(
256  
257 # provide version
258 #'Git::DescribeVersion',
259 'Git::NextVersion',
260  
261 # gather and prune
262 $self->_generate_manifest_skip,
263 40 ▶ [ GatherDir => { exclude_filename => [ @{ $self->copy_files } ] } ],
Branch: 2 branches
BranchTrueFalseTotal
$self->placeholder_comments ? : 2 38 40
$self->is_task ? : 1 39 40
264 qw(
265 PruneCruft
266 ManifestSkip
267 ),
268 # Devel::Cover db does not need to be packaged with distribution
269 [ PruneFiles => 'PruneDevelCoverDatabase' => { match => '^(cover_db/.+)' } ],
270 # Code::Stat report
271 [ PruneFiles => 'PruneCodeStatCollection' => { match => '^codestat\.out' } ],
272 # generated tags file... useful for development but noisy to commit
273 [ PruneFiles => 'PruneTags' => { match => '^tags$' } ],
274  
275 # We could specify default binary files
276 # but I can't think of any that are commonly included in dists.
277 # I don't mind being explicit if the case is rare.
278 #[ Encoding => 'DefaultBinaryFiles' =>
279 #{ encoding => 'binary', match => '\.(?x: tar\.(gz|bz2) | sqlite | jpg )$' }],
280  
281 # munge files
282 # Do PkgVersion first so other mungers don't eat the blank line after package.
283 ($self->placeholder_comments ? 'OurPkgVersion' : 'PkgVersion'),
284 [
285 Authority => {
286 ':version' => '1.005', # accepts any non-whitespace + locate_comment
287 authority => $self->authority,
288 do_munging => 1,
289 do_metadata => 1,
290 locate_comment => $self->placeholder_comments,
291 }
292 ],
293 [
294 NextRelease => {
295 # w3cdtf
296 time_zone => 'UTC',
297 format => q[%-9V %{yyyy-MM-dd'T'HH:mm:ss'Z'}d],
298 }
299 ],
300 'Git::Describe',
301 [
302 Prepender => {
303 ':version' => '1.112280', # 'skip' attribute
304 # don't prepend to tests
305 skip => '^x?t/.+',
306 }
307 ],
308 ( $self->is_task
309 ? 'TaskWeaver'
310 # TODO: detect weaver.ini and skip 'config_plugin'?
311 : [ 'PodWeaver' => { config_plugin => $self->weaver_config } ]
312 ),
313  
314 # generated distribution files
315 qw(
316 License
317 Readme
318 ),
319 );
320  
321 $self->add_plugins(
322 [
323 # Generate README in repo root for github.
324 ReadmeAnyFromPod => {
325 ':version' => '0.142180', # 'phase'
326 type => 'markdown', # L<> to metacpan
327 location => 'root',
328 phase => $self->readme_phase,
329 }
330 ],
331 [
332 # ... and add status badges to it.
333 'GitHubREADME::Badge' => {
334 ':version' => '0.16', # 'phase', svg
335 phase => $self->readme_phase,
336 badges => [qw(
337 travis
338 coveralls
339 cpants
340 )],
341 }
342 ],
343 40 ▶ [ CopyFilesFromRelease => { filename => [ @{ $self->copy_files } ] } ],
Branch: 1 branch
BranchTrueFalseTotal
if $self->open_source 38 2 40
344  
345 # metadata
346 [
347 AutoMetaResources => {
348 'bugtracker.rt' => 1,
349 # Currently GithubMeta sets the homepage and this conflicts.
350 #'homepage' => 'http://metacpan.org/release/%{dist}',
351 }
352 ],
353 [ GithubMeta => { ':version' => '0.10' } ],
354 [ 'Git::Contributors' ],
355 ) if $self->open_source;
356  
357 40 ▶ $self->add_plugins('AutoPrereqs')
Branch: 1 branch
BranchTrueFalseTotal
if $self->auto_prereqs 39 1 40
358 if $self->auto_prereqs;
359  
360 40 $self->add_plugins(
361 # [ 'MetaData::BuiltWith' => { show_uname => 1 } ], # currently DZ::Util::EmulatePhase causes problems
362 [
363 MetaNoIndex => {
364 ':version' => 1.101130,
365 # could use grep { -d $_ } but that will miss any generated files
366 directory => [
367 # By default skip all directories that PAUSE skips:
368 't', # skip "t" - libraries in ./t are test libraries!
369 'xt', # skip "xt" - libraries in ./xt are author test libraries!
370 'inc', # skip "inc" - libraries in ./inc are usually install libraries
371 'local', # skip "local" - somebody shipped his carton setup!
372 'perl5', # skip 'perl5" - somebody shipped her local::lib!
373 'fatlib', # skip 'fatlib' - somebody shipped their fatpack lib!
374 # Also skip a few other directories commonly used for other things.
375 'corpus', # Documentation and/or test data.
376 'examples', # Example
377 'share', # File::ShareDir... misc files distributed with release.
378 ],
379 namespace => [qw(Local t::lib)],
380 'package' => [qw(DB)],
381 }
382 ],
383 [ # AFTER MetaNoIndex
384 'MetaProvides::Package' => {
385 ':version' => '1.14000001',
386 meta_noindex => 1
387 }
388 ],
389  
390 [ MinimumPerl => { ':version' => '1.003' } ],
391 qw(
392 MetaConfig
393 MetaYAML
394 MetaJSON
395 ),
396  
397 # I prefer to be explicit about required versions when loading, but this is a handy example:
398 # [
399 # Prereqs => 'TestMoreWithSubtests' => {
400 # -phase => 'test',
401 # -type => 'requires',
402 # 'Test::More' => '0.96'
403 # }
404 # ],
405  
406 # build system
407 qw(
408 ExecDir
409 ShareDir
410 MakeMaker
411 ),
412 );
413  
414 40 $self->add_plugins(
415 # generated t/ tests
416 [ 'Test::ReportPrereqs' => { ':version' => '0.004' } ], # include/exclude
417 );
418  
419 # generated xt/ tests
420 # Test::Pod::Spelling::CommonMistakes ?
421 #Test::Pod::No404s # removed since it's rarely useful
422  
423 40 ▶ if ( $spelling_tests ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($spelling_tests) { } 40 0 40
424 40 $self->add_plugins('Test::PodSpelling');
425 }
426 else {
427 0 $self->log("Test::PodSpelling Plugin failed to load. Pleese dunt mayke ani misteaks.\n");
428 }
429  
430 # TestingMania is primarily code/dist quality checks.
431 40 ▶ if( $self->open_source ){
Branch: 1 branch
BranchTrueFalseTotal
if ($self->open_source) { } 38 2 40
432 # NOTE: A newer TestingMania might duplicate plugins if new tests are added
433 38 $self->add_bundle('@TestingMania' => {
434 ':version' => '0.22', # max_target_perl, Test::NoTabs
435 max_target_perl => $self->max_target_perl,
436 });
437 }
438 # These are for your own protection.
439 else {
440 2 $self->add_plugins(
441 qw(
442 Test::Compile
443 Test::MinimumVersion
444 PodSyntaxTests
445 ),
446 );
447 }
448  
449 40 $self->add_plugins(
450 # manifest: must come after all generated files
451 'Manifest',
452  
453 # before release
454 qw(
455 CheckExtraTests
456 ),
457 );
458  
459 40 ▶ $self->add_plugins(
Branch: 1 branch
BranchTrueFalseTotal
if $self->open_source 38 2 40
460 [ CheckChangesHasContent => { ':version' => '0.006' } ], # version-TRIAL
461 qw(
462 CheckMetaResources
463 CheckPrereqsIndexed
464 )
465 ) if $self->open_source;
466  
467 40 $self->add_plugins(
468 qw(
469 TestRelease
470 ),
471 );
472  
473 # defaults: { tag_format => '%v', push_to => [ qw(origin) ] }
474 $self->add_bundle('@Git' => {
475 ':version' => '2.004', # improved changelog parsing
476 allow_dirty => [
477 qw(Changes README.mkdn README.pod),
478 40 ▶ @{ $self->copy_files }
Branch: 1 branch
BranchTrueFalseTotal
if $self->use_git_bundle 40 0 40
479 ],
480 commit_msg => 'v%v%t%n%n%c'
481 })
482 if $self->use_git_bundle;
483  
484 40 $self->add_plugins(
485 qw(
486 ConfirmRelease
487 ),
488 );
489  
490 # release
491 40 ▶ my $releaser = $self->fake_release ? 'FakeRelease' : $self->releaser;
Branch: 1 branch
BranchTrueFalseTotal
$self->fake_release ? : 8 32 40
492 # ignore releaser if it's set to empty string
493 40 ▶ $self->add_plugins($releaser)
Branch: 1 branch
BranchTrueFalseTotal
if $releaser 38 2 40
494 if $releaser;
495  
496 40 ▶ $self->add_plugins(
Branch: 1 branch
BranchTrueFalseTotal
if $self->install_command 40 0 40
497 [ InstallRelease => { ':version' => '0.006', install_command => $self->install_command } ]
498 )
499 if $self->install_command;
500  
501 }
502  
503 # As of Dist::Zilla 4.102345 pluginbundles don't have log and log_fatal methods
504 2 foreach my $method ( qw(log log_fatal) ){
505 4 ▶ unless( __PACKAGE__->can($method) ){
Branch: 1 branch
BranchTrueFalseTotal
unless (__PACKAGE__->can($method)) 4 0 4
506 2 ▶ no strict 'refs'; ## no critic (NoStrict)
Subroutine BEGIN: called CC=1 SCAR=0.0
507 *$method = $method =~ /fatal/
508 0 ▶ ? sub { die($_[1]) }
Subroutine __ANON__: not called CC=1 SCAR=6.9
509 0 ▶ : sub { warn("[${\$_[0]->_bundle_name}] $_[1]") };
Subroutine __ANON__: not called CC=1 SCAR=0.6
Branch: 1 branch
BranchTrueFalseTotal
$method =~ /fatal/ ? : 2 2 4
510 }
511 }
512  
513 40 ▶sub _generate_manifest_skip {
Subroutine _generate_manifest_skip: called CC=1 SCAR=0.0
514 # include a default MANIFEST.SKIP for the tests and/or historical reasons
515 return [
516 40 GenerateFile => 'GenerateManifestSkip' => {
517 filename => 'MANIFEST.SKIP',
518 is_template => 1,
519 content => <<'EOF_MANIFEST_SKIP',
520  
521 \B\.git\b
522 \B\.gitignore$
523 ^[\._]build
524 ^blib/
525 ^(Build|Makefile)$
526 \bpm_to_blib$
527 ^MYMETA\.
528 ^cover_db/
529  
530 EOF_MANIFEST_SKIP
531 }
532 ];
533 }
534  
535 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
536 2 __PACKAGE__->meta->make_immutable;
537 2 1;
538  
539 __END__
↑ Summary Pod/Weaver/PluginBundle/Author/RWSTAUNER.pm »