| 1 | 2 | ▶ | use 5.10.0; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | package Dist::Zilla::PluginBundle::Author::CSSON; | ||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | # ABSTRACT: Dist::Zilla plugin list (deprecated) | ||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | 2 | our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY | |||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 2 | our $VERSION = '0.1103'; | |||||||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 2 | ▶ | use Moose; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | 2 | ▶ | use MooseX::AttributeShortcuts; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | 2 | ▶ | use Types::Standard qw/Str Int/; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | 2 | with 'Dist::Zilla::Role::PluginBundle::Easy'; | |||||||||||||||||||||||||||||||||||||||||||||||
| 15 | 2 | with 'Dist::Zilla::Role::PluginBundle::PluginRemover'; | |||||||||||||||||||||||||||||||||||||||||||||||
| 16 | 2 | with 'Dist::Zilla::Role::PluginBundle::Config::Slicer'; | |||||||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | 2 | ▶ | use namespace::autoclean; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | 2 | ▶ | use List::AllUtils 'none'; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | 2 | ▶ | use Config::INI; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | 2 | ▶ | use Path::Tiny; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | has installer => ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | is => 'rw', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | isa => Str, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | 0 | ▶ | default => sub { shift->payload->{'installer'} || 'ModuleBuildTiny' }, | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | 2 | ); | |||||||||||||||||||||||||||||||||||||||||||||||
| 29 | has is_private => ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | is => 'rw', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | isa => Int, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | 0 | ▶ | default => sub { shift->payload->{'is_private'} || 0 }, | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | 2 | ); | |||||||||||||||||||||||||||||||||||||||||||||||
| 35 | has is_task => ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | is => 'rw', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | isa => Int, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | 0 | ▶ | default => sub { shift->payload->{'is_task'} || 0 }, | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | 2 | ); | |||||||||||||||||||||||||||||||||||||||||||||||
| 41 | has weaver_config => ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | is => 'rw', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | isa => Str, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | 0 | ▶ | default => sub { shift->payload->{'weaver_config'} || '@Author::CSSON' }, | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | 2 | ); | |||||||||||||||||||||||||||||||||||||||||||||||
| 47 | 2 | has homepage => ( | |||||||||||||||||||||||||||||||||||||||||||||||
| 48 | is => 'rw', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | isa => Str, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | builder => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | has has_travis => ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | is => 'rw', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | isa => Int, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | 0 | ▶ | default => sub { shift->payload->{'has_travis'} || 0 }, | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | 2 | ); | |||||||||||||||||||||||||||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | 0 | ▶ | sub _build_homepage { | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_build_homepage: not called CC=3 SCAR=24.8
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | 0 | my $distname; | |||||||||||||||||||||||||||||||||||||||||||||||
| 63 | 0 | ▶ | if(path('iller.ini')->exists) { | ||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | 0 | $distname = Config::INI::Reader->read_file('iller.ini')->{'_'}{'name'}; | |||||||||||||||||||||||||||||||||||||||||||||||
| 65 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | elsif(path('dist.ini')->exists) { | ||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | 0 | $distname = Config::INI::Reader->read_file('dist.ini')->{'_'}{'name'}; | |||||||||||||||||||||||||||||||||||||||||||||||
| 68 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | 0 | return sprintf 'https://metacpan.org/release/' . $distname; | |||||||||||||||||||||||||||||||||||||||||||||||
| 70 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | 0 | ▶ | sub build_file { | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
build_file: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | 0 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||
| 74 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | 0 | ▶ | return $self->installer =~ m/MakeMaker/ ? 'Makefile.PL' : 'Build.PL'; | ||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | 0 | ▶ | sub configure { | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
configure: not called CC=9 SCAR=45.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | 0 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | 0 | my @possible_installers = qw/MakeMaker MakeMaker::IncShareDir ModuleBuild ModuleBuildTiny/; | |||||||||||||||||||||||||||||||||||||||||||||||
| 82 | 0 | ▶ | if(none { $self->installer eq $_ } @possible_installers) { | ||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | 0 | die sprintf '%s is not one of the possible installers (%s)', $self->installer, join ', ' => @possible_installers; | |||||||||||||||||||||||||||||||||||||||||||||||
| 84 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | $self->add_plugins( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | ['Git::GatherDir', { exclude_filename => [ | ||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | 'META.json', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | 'LICENSE', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | 'README.md', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | 'iller.ini', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | $self->build_file, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | ] }, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | ['CopyFilesFromBuild', { copy => [ | ||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | 'META.json', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | 'LICENSE', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | $self->build_file, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | ] }, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | ['ReversionOnRelease', { prompt => 1 } ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | ['OurPkgVersion'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | ['PodnameFromClassname'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | ['NextRelease', { format => '%v %{yyyy-MM-dd HH:mm:ss VVV}d' } ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | ['PreviousVersion::Changelog'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | ['NextVersion::Semantic', { major => '', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | minor => "API Changes, New Features, Enhancements", | ||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | revision => "Requirements, Testing, Revision, Bug Fixes, Documentation, Meta", | ||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | format => '%d.%02d%02d', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | numify_version => 0, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | ['Iller::CleanupDistIni'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | $self->is_task ? | ||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | ['TaskWeaver'] | ||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | : | ||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | ['PodWeaver', { config_plugin => $self->weaver_config } ] | ||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | ), | ||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | ['Git::Check', { allow_dirty => [ | ||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | 'dist.ini', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | 'Changes', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | 'META.json', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | 'README.md', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | 'README', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | $self->build_file, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | ] }, | ||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | $self->is_private ? | ||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | () | ||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | : | ||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | ['GithubMeta', { issues => 1, homepage => $self->homepage } ] | ||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | ), | ||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | ['Readme'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | ['ReadmeAnyFromPod', { filename => 'README.md', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | type => 'markdown', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | location => 'root', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | ['MetaNoIndex', { directory => [qw/t xt inc share eg examples/] } ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | ['Prereqs::FromCPANfile'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | [ $self->installer ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | ['MetaJSON'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | ['MetaProvides::Class'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | ['MetaProvides::Package'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | ['ContributorsFromGit'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | $ENV{'ILLERAT'} || $ENV{'ILLER_AUTHOR_TEST'} ? | ||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | ['Test::Kwalitee::Extra'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | ['Test::NoTabs'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | ['Test::EOL'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | ['Test::EOF'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | ['Test::Version'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | ) | ||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | : | ||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | () | ||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | ), | ||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | ['PodSyntaxTests'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | ['MetaYAML'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | ['License'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | ['ExtraTests'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | ['ShareDir'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | ['ExecDir'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | ['Manifest'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | ['ManifestSkip'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | ['CheckChangesHasContent'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | ['TestRelease'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | ['ConfirmRelease'], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | 0 | ▶ | [ $ENV{'FAKE_RELEASE'} ? 'FakeRelease' : $self->is_private ? 'UploadToStratopan' : 'UploadToCPAN' ], | ||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 6 branches
Condition0%0/3
$ENV{"ILLERAT"} or $ENV{"ILLER_AUTHOR_TEST"}
MC/DC0%0/2
$ENV{"ILLERAT"} or $ENV{"ILLER_AUTHOR_TEST"}
$ENV{"ILLERAT"}
$ENV{"ILLER_AUTHOR_TEST"}
Truth table0%0/3
A or B
A= $ENV{"ILLERAT"}B= $ENV{"ILLER_AUTHOR_TEST"}
| |||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | ( | ||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | $self->has_travis ? | ||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | ['TravisYML'] | ||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | : | ||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | () | ||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | ), | ||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | ['Git::Tag', { tag_format => '%v', | ||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | tag_message => '' | ||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | ['Git::Push', { remotes_must_exist => 1 } ], | ||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | } | ||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | 2 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||
| 190 | |||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | __END__ | ||||||||||||||||||||||||||||||||||||||||||||||||