« blib/lib/Dist/Zilla/Plugin/Author/KENTNL/MinimumPerl.pm
↑ Summary
blib/lib/Dist/Zilla/Plugin/Author/KENTNL/DistINI.pm »
| 1 | 5 | ▶ | use 5.006; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 2 | 5 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 3 | 5 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||||||||||||
| 5 | package Dist::Zilla::PluginBundle::Author::KENTNL; | ||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||
| 7 | # ABSTRACT: BeLike::KENTNL when you build your distributions. | ||||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||
| 9 | 5 | our $VERSION = '2.025021'; | |||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||
| 11 | 5 | our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY | |||||||||||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||||||||||||
| 13 | 5 | ▶ | use Moose qw( with has ); | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 14 | 5 | ▶ | use Moose::Util::TypeConstraints qw(enum); | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 15 | 5 | ▶ | use Dist::Zilla::Util::CurrentCmd qw( current_cmd ); | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||
| 17 | 5 | with 'Dist::Zilla::Role::PluginBundle'; | |||||||||||||||||||||||||||||||||||||
| 18 | 5 | with 'Dist::Zilla::Role::PluginBundle::PluginRemover'; | |||||||||||||||||||||||||||||||||||||
| 19 | 5 | with 'Dist::Zilla::Role::PluginBundle::Config::Slicer'; | |||||||||||||||||||||||||||||||||||||
| 20 | 5 | with 'Dist::Zilla::Role::BundleDeps'; | |||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||||
| 22 | 5 | ▶ | use namespace::autoclean; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||||||||||||
| 39 | |||||||||||||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||||||||||||
| 45 | |||||||||||||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||||||||||||
| 49 | 4 | ▶ | sub mvp_multivalue_args { return qw( auto_prereqs_skip copy_files ) } | ||||||||||||||||||||||||||||||||||||
|
Subroutine
mvp_multivalue_args: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 50 | |||||||||||||||||||||||||||||||||||||||
| 51 | 4 | ▶ | sub mvp_aliases { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
mvp_aliases: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||
| 52 | return { | ||||||||||||||||||||||||||||||||||||||
| 53 | 4 | 'bumpversions' => 'bump_versions', | |||||||||||||||||||||||||||||||||||||
| 54 | 'srcreadme' => 'src_readme', | ||||||||||||||||||||||||||||||||||||||
| 55 | 'copyfiles' => 'copy_files', | ||||||||||||||||||||||||||||||||||||||
| 56 | }; | ||||||||||||||||||||||||||||||||||||||
| 57 | } | ||||||||||||||||||||||||||||||||||||||
| 58 | |||||||||||||||||||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||||||||||||||||
| 60 | |||||||||||||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||||||||||||
| 63 | |||||||||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||||||||
| 65 | |||||||||||||||||||||||||||||||||||||||
| 66 | |||||||||||||||||||||||||||||||||||||||
| 67 | |||||||||||||||||||||||||||||||||||||||
| 68 | |||||||||||||||||||||||||||||||||||||||
| 69 | 4 | ▶ | has 'plugins' => ( 'is' => 'ro' =>, 'isa' => 'ArrayRef', 'init_arg' => undef, 'lazy' => 1, 'default' => sub { [] } ); | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 70 | |||||||||||||||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||||||||||||
| 72 | |||||||||||||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||||||||||||
| 74 | |||||||||||||||||||||||||||||||||||||||
| 75 | |||||||||||||||||||||||||||||||||||||||
| 76 | |||||||||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||||||||
| 78 | |||||||||||||||||||||||||||||||||||||||
| 79 | |||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||
| 81 | |||||||||||||||||||||||||||||||||||||||
| 82 | |||||||||||||||||||||||||||||||||||||||
| 83 | 0 | ▶ | has 'normal_form' => ( 'is' => ro =>, 'isa' => 'Str', lazy => 1, default => sub { 'numify' } ); | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||||||||||||||||||||||||||||||
| 84 | |||||||||||||||||||||||||||||||||||||||
| 85 | |||||||||||||||||||||||||||||||||||||||
| 86 | |||||||||||||||||||||||||||||||||||||||
| 87 | |||||||||||||||||||||||||||||||||||||||
| 88 | |||||||||||||||||||||||||||||||||||||||
| 89 | |||||||||||||||||||||||||||||||||||||||
| 90 | |||||||||||||||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||
| 93 | |||||||||||||||||||||||||||||||||||||||
| 94 | |||||||||||||||||||||||||||||||||||||||
| 95 | has 'mantissa' => ( | ||||||||||||||||||||||||||||||||||||||
| 96 | 'is' => ro =>, | ||||||||||||||||||||||||||||||||||||||
| 97 | 'isa' => 'Int', | ||||||||||||||||||||||||||||||||||||||
| 98 | 'lazy' => 1, | ||||||||||||||||||||||||||||||||||||||
| 99 | 0 | ▶ | 'default' => sub { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||
| 100 | 0 | return 6; | |||||||||||||||||||||||||||||||||||||
| 101 | }, | ||||||||||||||||||||||||||||||||||||||
| 102 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 103 | |||||||||||||||||||||||||||||||||||||||
| 104 | |||||||||||||||||||||||||||||||||||||||
| 105 | |||||||||||||||||||||||||||||||||||||||
| 106 | |||||||||||||||||||||||||||||||||||||||
| 107 | |||||||||||||||||||||||||||||||||||||||
| 108 | |||||||||||||||||||||||||||||||||||||||
| 109 | |||||||||||||||||||||||||||||||||||||||
| 110 | |||||||||||||||||||||||||||||||||||||||
| 111 | |||||||||||||||||||||||||||||||||||||||
| 112 | |||||||||||||||||||||||||||||||||||||||
| 113 | |||||||||||||||||||||||||||||||||||||||
| 114 | |||||||||||||||||||||||||||||||||||||||
| 115 | |||||||||||||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||||||||||||
| 117 | |||||||||||||||||||||||||||||||||||||||
| 118 | |||||||||||||||||||||||||||||||||||||||
| 119 | |||||||||||||||||||||||||||||||||||||||
| 120 | |||||||||||||||||||||||||||||||||||||||
| 121 | |||||||||||||||||||||||||||||||||||||||
| 122 | 0 | ▶ | has 'git_versions' => ( is => 'ro', isa => 'Any', lazy => 1, default => sub { undef } ); | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||||||||||||||||||||||||||||||
| 123 | |||||||||||||||||||||||||||||||||||||||
| 124 | |||||||||||||||||||||||||||||||||||||||
| 125 | |||||||||||||||||||||||||||||||||||||||
| 126 | |||||||||||||||||||||||||||||||||||||||
| 127 | |||||||||||||||||||||||||||||||||||||||
| 128 | |||||||||||||||||||||||||||||||||||||||
| 129 | |||||||||||||||||||||||||||||||||||||||
| 130 | |||||||||||||||||||||||||||||||||||||||
| 131 | |||||||||||||||||||||||||||||||||||||||
| 132 | 4 | ▶ | has 'authority' => ( is => 'ro', isa => 'Str', lazy => 1, default => sub { 'cpan:KENTNL' }, ); | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 133 | |||||||||||||||||||||||||||||||||||||||
| 134 | |||||||||||||||||||||||||||||||||||||||
| 135 | |||||||||||||||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||||||||||||
| 137 | |||||||||||||||||||||||||||||||||||||||
| 138 | |||||||||||||||||||||||||||||||||||||||
| 139 | |||||||||||||||||||||||||||||||||||||||
| 140 | |||||||||||||||||||||||||||||||||||||||
| 141 | |||||||||||||||||||||||||||||||||||||||
| 142 | has 'auto_prereqs_skip' => ( | ||||||||||||||||||||||||||||||||||||||
| 143 | is => 'ro', | ||||||||||||||||||||||||||||||||||||||
| 144 | isa => 'ArrayRef', | ||||||||||||||||||||||||||||||||||||||
| 145 | predicate => 'has_auto_prereqs_skip', | ||||||||||||||||||||||||||||||||||||||
| 146 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 147 | 0 | ▶ | default => sub { [] }, | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||
| 148 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 149 | |||||||||||||||||||||||||||||||||||||||
| 150 | |||||||||||||||||||||||||||||||||||||||
| 151 | |||||||||||||||||||||||||||||||||||||||
| 152 | |||||||||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||||||||
| 154 | |||||||||||||||||||||||||||||||||||||||
| 155 | |||||||||||||||||||||||||||||||||||||||
| 156 | |||||||||||||||||||||||||||||||||||||||
| 157 | |||||||||||||||||||||||||||||||||||||||
| 158 | has 'twitter_extra_hash_tags' => ( | ||||||||||||||||||||||||||||||||||||||
| 159 | is => 'ro', | ||||||||||||||||||||||||||||||||||||||
| 160 | 'isa' => 'Str', | ||||||||||||||||||||||||||||||||||||||
| 161 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 162 | predicate => 'has_twitter_extra_hash_tags', | ||||||||||||||||||||||||||||||||||||||
| 163 | 0 | ▶ | default => sub { q[] }, | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||
| 164 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 165 | |||||||||||||||||||||||||||||||||||||||
| 166 | |||||||||||||||||||||||||||||||||||||||
| 167 | |||||||||||||||||||||||||||||||||||||||
| 168 | |||||||||||||||||||||||||||||||||||||||
| 169 | |||||||||||||||||||||||||||||||||||||||
| 170 | |||||||||||||||||||||||||||||||||||||||
| 171 | |||||||||||||||||||||||||||||||||||||||
| 172 | |||||||||||||||||||||||||||||||||||||||
| 173 | |||||||||||||||||||||||||||||||||||||||
| 174 | has 'twitter_hash_tags' => ( | ||||||||||||||||||||||||||||||||||||||
| 175 | is => 'ro', | ||||||||||||||||||||||||||||||||||||||
| 176 | isa => 'Str', | ||||||||||||||||||||||||||||||||||||||
| 177 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 178 | 4 | ▶ | default => sub { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||||||||||||||||||||||||||||||
| 179 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 180 | 4 | ▶ | return '#perl #cpan' unless $self->has_twitter_extra_hash_tags; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||||||||||||
| 182 | 0 | return '#perl #cpan ' . $self->twitter_extra_hash_tags; | |||||||||||||||||||||||||||||||||||||
| 183 | }, | ||||||||||||||||||||||||||||||||||||||
| 184 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 185 | |||||||||||||||||||||||||||||||||||||||
| 186 | |||||||||||||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||||||||||||
| 188 | |||||||||||||||||||||||||||||||||||||||
| 189 | |||||||||||||||||||||||||||||||||||||||
| 190 | |||||||||||||||||||||||||||||||||||||||
| 191 | |||||||||||||||||||||||||||||||||||||||
| 192 | |||||||||||||||||||||||||||||||||||||||
| 193 | |||||||||||||||||||||||||||||||||||||||
| 194 | has 'tweet_url' => ( | ||||||||||||||||||||||||||||||||||||||
| 195 | is => 'ro', | ||||||||||||||||||||||||||||||||||||||
| 196 | isa => 'Str', | ||||||||||||||||||||||||||||||||||||||
| 197 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 198 | 4 | ▶ | default => sub { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 199 | ## no critic (RequireInterpolationOfMetachars) | ||||||||||||||||||||||||||||||||||||||
| 200 | 4 | return q[https://metacpan.org/release/{{$AUTHOR_UC}}/{{$DIST}}-{{$VERSION}}{{$TRIAL}}#whatsnew]; | |||||||||||||||||||||||||||||||||||||
| 201 | }, | ||||||||||||||||||||||||||||||||||||||
| 202 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 203 | |||||||||||||||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||||||||||||
| 205 | |||||||||||||||||||||||||||||||||||||||
| 206 | |||||||||||||||||||||||||||||||||||||||
| 207 | |||||||||||||||||||||||||||||||||||||||
| 208 | |||||||||||||||||||||||||||||||||||||||
| 209 | |||||||||||||||||||||||||||||||||||||||
| 210 | |||||||||||||||||||||||||||||||||||||||
| 211 | |||||||||||||||||||||||||||||||||||||||
| 212 | |||||||||||||||||||||||||||||||||||||||
| 213 | |||||||||||||||||||||||||||||||||||||||
| 214 | |||||||||||||||||||||||||||||||||||||||
| 215 | |||||||||||||||||||||||||||||||||||||||
| 216 | |||||||||||||||||||||||||||||||||||||||
| 217 | |||||||||||||||||||||||||||||||||||||||
| 218 | |||||||||||||||||||||||||||||||||||||||
| 219 | |||||||||||||||||||||||||||||||||||||||
| 220 | |||||||||||||||||||||||||||||||||||||||
| 221 | |||||||||||||||||||||||||||||||||||||||
| 222 | |||||||||||||||||||||||||||||||||||||||
| 223 | |||||||||||||||||||||||||||||||||||||||
| 224 | has 'toolkit_hardness' => ( | ||||||||||||||||||||||||||||||||||||||
| 225 | is => ro =>, | ||||||||||||||||||||||||||||||||||||||
| 226 | isa => enum( [ 'hard', 'soft' ] ), | ||||||||||||||||||||||||||||||||||||||
| 227 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 228 | 0 | ▶ | default => sub { 'hard' }, | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||
| 229 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 230 | |||||||||||||||||||||||||||||||||||||||
| 231 | |||||||||||||||||||||||||||||||||||||||
| 232 | |||||||||||||||||||||||||||||||||||||||
| 233 | |||||||||||||||||||||||||||||||||||||||
| 234 | |||||||||||||||||||||||||||||||||||||||
| 235 | |||||||||||||||||||||||||||||||||||||||
| 236 | |||||||||||||||||||||||||||||||||||||||
| 237 | |||||||||||||||||||||||||||||||||||||||
| 238 | |||||||||||||||||||||||||||||||||||||||
| 239 | |||||||||||||||||||||||||||||||||||||||
| 240 | |||||||||||||||||||||||||||||||||||||||
| 241 | |||||||||||||||||||||||||||||||||||||||
| 242 | |||||||||||||||||||||||||||||||||||||||
| 243 | |||||||||||||||||||||||||||||||||||||||
| 244 | |||||||||||||||||||||||||||||||||||||||
| 245 | |||||||||||||||||||||||||||||||||||||||
| 246 | |||||||||||||||||||||||||||||||||||||||
| 247 | |||||||||||||||||||||||||||||||||||||||
| 248 | |||||||||||||||||||||||||||||||||||||||
| 249 | has 'toolkit' => ( | ||||||||||||||||||||||||||||||||||||||
| 250 | is => ro =>, | ||||||||||||||||||||||||||||||||||||||
| 251 | isa => enum( [ 'mb', 'mbtiny', 'eumm' ] ), | ||||||||||||||||||||||||||||||||||||||
| 252 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 253 | 0 | ▶ | default => sub { 'mb' }, | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||
| 254 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 255 | |||||||||||||||||||||||||||||||||||||||
| 256 | |||||||||||||||||||||||||||||||||||||||
| 257 | |||||||||||||||||||||||||||||||||||||||
| 258 | |||||||||||||||||||||||||||||||||||||||
| 259 | |||||||||||||||||||||||||||||||||||||||
| 260 | |||||||||||||||||||||||||||||||||||||||
| 261 | |||||||||||||||||||||||||||||||||||||||
| 262 | |||||||||||||||||||||||||||||||||||||||
| 263 | |||||||||||||||||||||||||||||||||||||||
| 264 | |||||||||||||||||||||||||||||||||||||||
| 265 | has 'bump_versions' => ( | ||||||||||||||||||||||||||||||||||||||
| 266 | is => ro =>, | ||||||||||||||||||||||||||||||||||||||
| 267 | isa => 'Bool', | ||||||||||||||||||||||||||||||||||||||
| 268 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 269 | 0 | ▶ | default => sub { undef }, | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||
| 270 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 271 | |||||||||||||||||||||||||||||||||||||||
| 272 | |||||||||||||||||||||||||||||||||||||||
| 273 | |||||||||||||||||||||||||||||||||||||||
| 274 | |||||||||||||||||||||||||||||||||||||||
| 275 | |||||||||||||||||||||||||||||||||||||||
| 276 | |||||||||||||||||||||||||||||||||||||||
| 277 | |||||||||||||||||||||||||||||||||||||||
| 278 | |||||||||||||||||||||||||||||||||||||||
| 279 | |||||||||||||||||||||||||||||||||||||||
| 280 | |||||||||||||||||||||||||||||||||||||||
| 281 | |||||||||||||||||||||||||||||||||||||||
| 282 | |||||||||||||||||||||||||||||||||||||||
| 283 | |||||||||||||||||||||||||||||||||||||||
| 284 | |||||||||||||||||||||||||||||||||||||||
| 285 | |||||||||||||||||||||||||||||||||||||||
| 286 | |||||||||||||||||||||||||||||||||||||||
| 287 | has copy_files => ( | ||||||||||||||||||||||||||||||||||||||
| 288 | is => ro =>, | ||||||||||||||||||||||||||||||||||||||
| 289 | isa => 'ArrayRef[ Str ]', | ||||||||||||||||||||||||||||||||||||||
| 290 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 291 | 4 | ▶ | default => sub { [ 'LICENSE', 'Makefile.PL' ] }, | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 292 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 293 | |||||||||||||||||||||||||||||||||||||||
| 294 | |||||||||||||||||||||||||||||||||||||||
| 295 | |||||||||||||||||||||||||||||||||||||||
| 296 | |||||||||||||||||||||||||||||||||||||||
| 297 | |||||||||||||||||||||||||||||||||||||||
| 298 | |||||||||||||||||||||||||||||||||||||||
| 299 | |||||||||||||||||||||||||||||||||||||||
| 300 | |||||||||||||||||||||||||||||||||||||||
| 301 | |||||||||||||||||||||||||||||||||||||||
| 302 | has src_readme => ( | ||||||||||||||||||||||||||||||||||||||
| 303 | is => ro =>, | ||||||||||||||||||||||||||||||||||||||
| 304 | isa => enum( [ 'pod', 'mkdn', 'none' ] ), | ||||||||||||||||||||||||||||||||||||||
| 305 | lazy => 1, | ||||||||||||||||||||||||||||||||||||||
| 306 | 0 | ▶ | default => sub { return 'mkdn'; }, | ||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||
| 307 | 5 | ); | |||||||||||||||||||||||||||||||||||||
| 308 | |||||||||||||||||||||||||||||||||||||||
| 309 | 5 | __PACKAGE__->meta->make_immutable; | |||||||||||||||||||||||||||||||||||||
| 310 | 5 | ▶ | no Moose; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 311 | 5 | ▶ | no Moose::Util::TypeConstraints; | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 312 | |||||||||||||||||||||||||||||||||||||||
| 313 | |||||||||||||||||||||||||||||||||||||||
| 314 | |||||||||||||||||||||||||||||||||||||||
| 315 | |||||||||||||||||||||||||||||||||||||||
| 316 | |||||||||||||||||||||||||||||||||||||||
| 317 | |||||||||||||||||||||||||||||||||||||||
| 318 | |||||||||||||||||||||||||||||||||||||||
| 319 | 172 | ▶ | sub add_plugin { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
add_plugin: called CC=4 SCAR=16.8
Pod
documented
| |||||||||||||||||||||||||||||||||||||||
| 320 | 172 | my ( $self, $suffix, $conf ) = @_; | |||||||||||||||||||||||||||||||||||||
| 321 | 172 | ▶ | if ( not defined $conf ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 322 | 0 | $conf = {}; | |||||||||||||||||||||||||||||||||||||
| 323 | } | ||||||||||||||||||||||||||||||||||||||
| 324 | 172 | ▶ | if ( not ref $conf or not 'HASH' eq ref $conf ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
ref $conf and "HASH" eq ref $conf
MC/DC0%0/2
ref $conf and "HASH" eq ref $conf
ref $conf
"HASH" eq ref $conf
Truth table33%1/3
A and B
A= ref $confB= "HASH" eq ref $conf
| |||||||||||||||||||||||||||||||||||||||
| 325 | 0 | require Carp; | |||||||||||||||||||||||||||||||||||||
| 326 | 0 | Carp::croak('Conf must be a hash'); | |||||||||||||||||||||||||||||||||||||
| 327 | } | ||||||||||||||||||||||||||||||||||||||
| 328 | ## no critic (RequireInterpolationOfMetachars) | ||||||||||||||||||||||||||||||||||||||
| 329 | 172 | push @{ $self->plugins }, [ q{@Author::KENTNL/} . $suffix, 'Dist::Zilla::Plugin::' . $suffix, $conf ]; | |||||||||||||||||||||||||||||||||||||
| 330 | 172 | return; | |||||||||||||||||||||||||||||||||||||
| 331 | } | ||||||||||||||||||||||||||||||||||||||
| 332 | |||||||||||||||||||||||||||||||||||||||
| 333 | |||||||||||||||||||||||||||||||||||||||
| 334 | |||||||||||||||||||||||||||||||||||||||
| 335 | |||||||||||||||||||||||||||||||||||||||
| 336 | |||||||||||||||||||||||||||||||||||||||
| 337 | |||||||||||||||||||||||||||||||||||||||
| 338 | |||||||||||||||||||||||||||||||||||||||
| 339 | 36 | ▶ | sub add_named_plugin { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
add_named_plugin: called CC=4 SCAR=16.8
Pod
documented
| |||||||||||||||||||||||||||||||||||||||
| 340 | 36 | my ( $self, $name, $suffix, $conf ) = @_; | |||||||||||||||||||||||||||||||||||||
| 341 | 36 | ▶ | if ( not defined $conf ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 342 | 0 | $conf = {}; | |||||||||||||||||||||||||||||||||||||
| 343 | } | ||||||||||||||||||||||||||||||||||||||
| 344 | 36 | ▶ | if ( not ref $conf or not 'HASH' eq ref $conf ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
ref $conf and "HASH" eq ref $conf
MC/DC0%0/2
ref $conf and "HASH" eq ref $conf
ref $conf
"HASH" eq ref $conf
Truth table33%1/3
A and B
A= ref $confB= "HASH" eq ref $conf
| |||||||||||||||||||||||||||||||||||||||
| 345 | 0 | require Carp; | |||||||||||||||||||||||||||||||||||||
| 346 | 0 | Carp::croak('Conf must be a hash'); | |||||||||||||||||||||||||||||||||||||
| 347 | } | ||||||||||||||||||||||||||||||||||||||
| 348 | ## no critic (RequireInterpolationOfMetachars) | ||||||||||||||||||||||||||||||||||||||
| 349 | 36 | push @{ $self->plugins }, [ q{@Author::KENTNL/} . $name, 'Dist::Zilla::Plugin::' . $suffix, $conf ]; | |||||||||||||||||||||||||||||||||||||
| 350 | 36 | return; | |||||||||||||||||||||||||||||||||||||
| 351 | } | ||||||||||||||||||||||||||||||||||||||
| 352 | |||||||||||||||||||||||||||||||||||||||
| 353 | |||||||||||||||||||||||||||||||||||||||
| 354 | |||||||||||||||||||||||||||||||||||||||
| 355 | |||||||||||||||||||||||||||||||||||||||
| 356 | |||||||||||||||||||||||||||||||||||||||
| 357 | |||||||||||||||||||||||||||||||||||||||
| 358 | |||||||||||||||||||||||||||||||||||||||
| 359 | 16 | ▶ | sub _is_bake { return ( current_cmd() and 'bakeini' eq current_cmd() ) } | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_is_bake: called CC=2 SCAR=9.2
Condition33%1/3
current_cmd() && 'bakeini' eq current_cmd()
MC/DC0%0/2
current_cmd() && 'bakeini' eq current_cmd()
current_cmd()
'bakeini' eq current_cmd()
Truth table33%1/3
A && B
A= current_cmd()B= 'bakeini' eq current_cmd()
| |||||||||||||||||||||||||||||||||||||||
| 360 | |||||||||||||||||||||||||||||||||||||||
| 361 | 4 | ▶ | sub _configure_bump_versions_version { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_bump_versions_version: called CC=2 SCAR=9.2
| |||||||||||||||||||||||||||||||||||||||
| 362 | 4 | my ( $self, ) = @_; | |||||||||||||||||||||||||||||||||||||
| 363 | 4 | ▶ | return if $self->bump_versions; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 364 | 0 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 365 | 'Git::NextVersion::Sanitized' => { | ||||||||||||||||||||||||||||||||||||||
| 366 | version_regexp => '^(.*)-source$', | ||||||||||||||||||||||||||||||||||||||
| 367 | first_version => '0.001000', | ||||||||||||||||||||||||||||||||||||||
| 368 | normal_form => $self->normal_form, | ||||||||||||||||||||||||||||||||||||||
| 369 | mantissa => $self->mantissa, | ||||||||||||||||||||||||||||||||||||||
| 370 | }, | ||||||||||||||||||||||||||||||||||||||
| 371 | ); | ||||||||||||||||||||||||||||||||||||||
| 372 | 0 | return; | |||||||||||||||||||||||||||||||||||||
| 373 | } | ||||||||||||||||||||||||||||||||||||||
| 374 | |||||||||||||||||||||||||||||||||||||||
| 375 | 4 | ▶ | sub _configure_basic_metadata { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_basic_metadata: called CC=2 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||
| 376 | 4 | my ( $self, ) = @_; | |||||||||||||||||||||||||||||||||||||
| 377 | |||||||||||||||||||||||||||||||||||||||
| 378 | 4 | $self->add_plugin( 'MetaConfig' => {}, ); | |||||||||||||||||||||||||||||||||||||
| 379 | 4 | $self->add_plugin( 'GithubMeta' => { issues => 1 }, ); | |||||||||||||||||||||||||||||||||||||
| 380 | 4 | $self->add_plugin( 'MetaProvides::Package' => { ':version' => '1.14000001' }, ); | |||||||||||||||||||||||||||||||||||||
| 381 | |||||||||||||||||||||||||||||||||||||||
| 382 | 4 | my $builtwith_options = { | |||||||||||||||||||||||||||||||||||||
| 383 | ':version' => '1.004000', | ||||||||||||||||||||||||||||||||||||||
| 384 | show_config => 1, | ||||||||||||||||||||||||||||||||||||||
| 385 | use_external_file => 'only', | ||||||||||||||||||||||||||||||||||||||
| 386 | }; | ||||||||||||||||||||||||||||||||||||||
| 387 | |||||||||||||||||||||||||||||||||||||||
| 388 | 4 | ▶ | if ( 'linux' eq $^O ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 389 | 4 | $builtwith_options->{show_uname} = 1; | |||||||||||||||||||||||||||||||||||||
| 390 | 4 | $builtwith_options->{uname_args} = q{-s -o -r -m -i}; | |||||||||||||||||||||||||||||||||||||
| 391 | } | ||||||||||||||||||||||||||||||||||||||
| 392 | |||||||||||||||||||||||||||||||||||||||
| 393 | 4 | $self->add_plugin( 'MetaData::BuiltWith' => $builtwith_options ); | |||||||||||||||||||||||||||||||||||||
| 394 | 4 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 395 | 'Git::Contributors' => { | ||||||||||||||||||||||||||||||||||||||
| 396 | ':version' => '0.006', | ||||||||||||||||||||||||||||||||||||||
| 397 | include_authors => 0, | ||||||||||||||||||||||||||||||||||||||
| 398 | include_releaser => 0, | ||||||||||||||||||||||||||||||||||||||
| 399 | order_by => 'name', | ||||||||||||||||||||||||||||||||||||||
| 400 | }, | ||||||||||||||||||||||||||||||||||||||
| 401 | ); | ||||||||||||||||||||||||||||||||||||||
| 402 | |||||||||||||||||||||||||||||||||||||||
| 403 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 404 | } | ||||||||||||||||||||||||||||||||||||||
| 405 | |||||||||||||||||||||||||||||||||||||||
| 406 | 4 | ▶ | sub _none_match { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_none_match: called CC=3 SCAR=11.1
| |||||||||||||||||||||||||||||||||||||||
| 407 | 4 | my ( $item, @list ) = @_; | |||||||||||||||||||||||||||||||||||||
| 408 | 4 | for my $list_item (@list) { | |||||||||||||||||||||||||||||||||||||
| 409 | 8 | ▶ | return if $item eq $list_item; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 410 | } | ||||||||||||||||||||||||||||||||||||||
| 411 | 4 | return 1; | |||||||||||||||||||||||||||||||||||||
| 412 | } | ||||||||||||||||||||||||||||||||||||||
| 413 | |||||||||||||||||||||||||||||||||||||||
| 414 | 4 | ▶ | sub _configure_basic_files { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_basic_files: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||||||||||||
| 415 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 416 | 4 | my (@ignore_files) = qw( README README.mkdn README.pod CONTRIBUTING.pod ); | |||||||||||||||||||||||||||||||||||||
| 417 | 4 | my (@copy_files) = (); | |||||||||||||||||||||||||||||||||||||
| 418 | |||||||||||||||||||||||||||||||||||||||
| 419 | 4 | ▶ | if ( _none_match 'none', @{ $self->copy_files } ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 420 | 4 | push @copy_files, @{ $self->copy_files }; | |||||||||||||||||||||||||||||||||||||
| 421 | } | ||||||||||||||||||||||||||||||||||||||
| 422 | 4 | push @ignore_files, @copy_files; | |||||||||||||||||||||||||||||||||||||
| 423 | |||||||||||||||||||||||||||||||||||||||
| 424 | 4 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 425 | 'Git::GatherDir' => { | ||||||||||||||||||||||||||||||||||||||
| 426 | include_dotfiles => 1, | ||||||||||||||||||||||||||||||||||||||
| 427 | exclude_filename => [@ignore_files], | ||||||||||||||||||||||||||||||||||||||
| 428 | }, | ||||||||||||||||||||||||||||||||||||||
| 429 | ); | ||||||||||||||||||||||||||||||||||||||
| 430 | 4 | $self->add_plugin( 'License' => {} ); | |||||||||||||||||||||||||||||||||||||
| 431 | |||||||||||||||||||||||||||||||||||||||
| 432 | 4 | $self->add_plugin( 'MetaJSON' => {} ); | |||||||||||||||||||||||||||||||||||||
| 433 | 4 | $self->add_plugin( 'MetaYAML::Minimal' => {} ); | |||||||||||||||||||||||||||||||||||||
| 434 | 4 | $self->add_plugin( 'Manifest' => {} ); | |||||||||||||||||||||||||||||||||||||
| 435 | 4 | $self->add_plugin( 'Author::KENTNL::TravisCI' => { ':version' => '0.001002' } ); | |||||||||||||||||||||||||||||||||||||
| 436 | 4 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 437 | 'Author::KENTNL::CONTRIBUTING' => { | ||||||||||||||||||||||||||||||||||||||
| 438 | ':version' => '0.001003', | ||||||||||||||||||||||||||||||||||||||
| 439 | document_version => '0.1', | ||||||||||||||||||||||||||||||||||||||
| 440 | '-location' => 'root', # Assuming my patches get merged in future | ||||||||||||||||||||||||||||||||||||||
| 441 | '-phase' => 'build', | ||||||||||||||||||||||||||||||||||||||
| 442 | }, | ||||||||||||||||||||||||||||||||||||||
| 443 | ); | ||||||||||||||||||||||||||||||||||||||
| 444 | |||||||||||||||||||||||||||||||||||||||
| 445 | 4 | ▶ | if (@copy_files) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 446 | 4 | $self->add_named_plugin( 'CopyXBuild' => 'CopyFilesFromBuild', { copy => [@copy_files] } ); | |||||||||||||||||||||||||||||||||||||
| 447 | } | ||||||||||||||||||||||||||||||||||||||
| 448 | |||||||||||||||||||||||||||||||||||||||
| 449 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 450 | } | ||||||||||||||||||||||||||||||||||||||
| 451 | |||||||||||||||||||||||||||||||||||||||
| 452 | 4 | ▶ | sub _configure_basic_tests { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_basic_tests: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||
| 453 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 454 | 4 | $self->add_plugin( 'MetaTests' => {} ); | |||||||||||||||||||||||||||||||||||||
| 455 | 4 | $self->add_plugin( 'PodCoverageTests' => {} ); | |||||||||||||||||||||||||||||||||||||
| 456 | 4 | $self->add_plugin( 'PodSyntaxTests' => {} ); | |||||||||||||||||||||||||||||||||||||
| 457 | 4 | $self->add_plugin( 'Test::ReportPrereqs' => {} ); | |||||||||||||||||||||||||||||||||||||
| 458 | 4 | $self->add_plugin( 'Test::Kwalitee' => {} ); | |||||||||||||||||||||||||||||||||||||
| 459 | 4 | $self->add_plugin( 'Test::EOL' => { trailing_whitespace => 1, } ); | |||||||||||||||||||||||||||||||||||||
| 460 | 4 | $self->add_plugin( 'Test::MinimumVersion' => {} ); | |||||||||||||||||||||||||||||||||||||
| 461 | 4 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 462 | 'Test::Compile::PerFile' => { | ||||||||||||||||||||||||||||||||||||||
| 463 | ':version' => '0.003902', | ||||||||||||||||||||||||||||||||||||||
| 464 | 'test_template' => '02-raw-require.t.tpl', | ||||||||||||||||||||||||||||||||||||||
| 465 | }, | ||||||||||||||||||||||||||||||||||||||
| 466 | ); | ||||||||||||||||||||||||||||||||||||||
| 467 | 4 | $self->add_plugin( 'Test::Perl::Critic' => {} ); | |||||||||||||||||||||||||||||||||||||
| 468 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 469 | } | ||||||||||||||||||||||||||||||||||||||
| 470 | |||||||||||||||||||||||||||||||||||||||
| 471 | 4 | ▶ | sub _configure_pkgversion_munger { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_pkgversion_munger: called CC=2 SCAR=7.9
| |||||||||||||||||||||||||||||||||||||||
| 472 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 473 | 4 | ▶ | if ( not $self->bump_versions ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 474 | 0 | $self->add_plugin( 'PkgVersion' => {} ); | |||||||||||||||||||||||||||||||||||||
| 475 | 0 | return; | |||||||||||||||||||||||||||||||||||||
| 476 | } | ||||||||||||||||||||||||||||||||||||||
| 477 | $self->add_plugin( | ||||||||||||||||||||||||||||||||||||||
| 478 | 4 | 'RewriteVersion::Sanitized' => { | |||||||||||||||||||||||||||||||||||||
| 479 | normal_form => $self->normal_form, | ||||||||||||||||||||||||||||||||||||||
| 480 | mantissa => $self->mantissa, | ||||||||||||||||||||||||||||||||||||||
| 481 | }, | ||||||||||||||||||||||||||||||||||||||
| 482 | ); | ||||||||||||||||||||||||||||||||||||||
| 483 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 484 | } | ||||||||||||||||||||||||||||||||||||||
| 485 | |||||||||||||||||||||||||||||||||||||||
| 486 | 4 | ▶ | sub _configure_bundle_develop_suggests { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_bundle_develop_suggests: called CC=2 SCAR=7.5
| |||||||||||||||||||||||||||||||||||||||
| 487 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 488 | 4 | my $deps = { | |||||||||||||||||||||||||||||||||||||
| 489 | -phase => 'develop', | ||||||||||||||||||||||||||||||||||||||
| 490 | -type => 'suggests', | ||||||||||||||||||||||||||||||||||||||
| 491 | }; | ||||||||||||||||||||||||||||||||||||||
| 492 | 4 | ▶ | if ( _is_bake() ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 493 | 0 | $deps->{'Dist::Zilla::PluginBundle::Author::KENTNL'} = $VERSION; | |||||||||||||||||||||||||||||||||||||
| 494 | 0 | $deps->{'Dist::Zilla::App::Command::bakeini'} = '0.001000'; | |||||||||||||||||||||||||||||||||||||
| 495 | } | ||||||||||||||||||||||||||||||||||||||
| 496 | else { | ||||||||||||||||||||||||||||||||||||||
| 497 | 4 | $deps->{'Dist::Zilla::PluginBundle::Author::KENTNL::Lite'} = '1.3.0'; | |||||||||||||||||||||||||||||||||||||
| 498 | } | ||||||||||||||||||||||||||||||||||||||
| 499 | 4 | $self->add_named_plugin( 'BundleDevelSuggests' => 'Prereqs' => $deps ); | |||||||||||||||||||||||||||||||||||||
| 500 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 501 | } | ||||||||||||||||||||||||||||||||||||||
| 502 | |||||||||||||||||||||||||||||||||||||||
| 503 | 4 | ▶ | sub _configure_bundle_develop_requires { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_bundle_develop_requires: called CC=2 SCAR=7.0
| |||||||||||||||||||||||||||||||||||||||
| 504 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 505 | 4 | ▶ | return if _is_bake(); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 506 | 4 | $self->add_named_plugin( | |||||||||||||||||||||||||||||||||||||
| 507 | 'BundleDevelRequires' => 'Prereqs' => { | ||||||||||||||||||||||||||||||||||||||
| 508 | -phase => 'develop', | ||||||||||||||||||||||||||||||||||||||
| 509 | -type => 'requires', | ||||||||||||||||||||||||||||||||||||||
| 510 | 'Dist::Zilla::PluginBundle::Author::KENTNL' => $VERSION, | ||||||||||||||||||||||||||||||||||||||
| 511 | }, | ||||||||||||||||||||||||||||||||||||||
| 512 | ); | ||||||||||||||||||||||||||||||||||||||
| 513 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 514 | } | ||||||||||||||||||||||||||||||||||||||
| 515 | |||||||||||||||||||||||||||||||||||||||
| 516 | 4 | ▶ | sub _configure_toolkit { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_toolkit: called CC=4 SCAR=17.0
| |||||||||||||||||||||||||||||||||||||||
| 517 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 518 | 4 | my $tk = $self->toolkit; | |||||||||||||||||||||||||||||||||||||
| 519 | tc_select: { | ||||||||||||||||||||||||||||||||||||||
| 520 | 4 | ▶ | if ( 'mb' eq $tk ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 521 | 0 | $self->add_plugin( 'ModuleBuild' => { default_jobs => 10 } ); | |||||||||||||||||||||||||||||||||||||
| 522 | 0 | last tc_select; | |||||||||||||||||||||||||||||||||||||
| 523 | } | ||||||||||||||||||||||||||||||||||||||
| 524 | 4 | ▶ | if ( 'eumm' eq $tk ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 525 | 4 | $self->add_plugin( 'MakeMaker' => { default_jobs => 10 } ); | |||||||||||||||||||||||||||||||||||||
| 526 | 4 | last tc_select; | |||||||||||||||||||||||||||||||||||||
| 527 | } | ||||||||||||||||||||||||||||||||||||||
| 528 | 0 | ▶ | if ( 'mbtiny' eq $tk ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 529 | 0 | $self->add_plugin( 'ModuleBuildTiny' => { default_jobs => 10 } ); | |||||||||||||||||||||||||||||||||||||
| 530 | 0 | last tc_select; | |||||||||||||||||||||||||||||||||||||
| 531 | } | ||||||||||||||||||||||||||||||||||||||
| 532 | } | ||||||||||||||||||||||||||||||||||||||
| 533 | 4 | $self->add_plugin( 'Author::KENTNL::RecommendFixes' => { ':version' => '0.004002' } ); | |||||||||||||||||||||||||||||||||||||
| 534 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 535 | } | ||||||||||||||||||||||||||||||||||||||
| 536 | |||||||||||||||||||||||||||||||||||||||
| 537 | 4 | ▶ | sub _configure_toolkit_prereqs { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_toolkit_prereqs: called CC=7 SCAR=20.8
| |||||||||||||||||||||||||||||||||||||||
| 538 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 539 | |||||||||||||||||||||||||||||||||||||||
| 540 | 4 | my $extra_match_installed = { 'Test::More' => '0.99', }; | |||||||||||||||||||||||||||||||||||||
| 541 | |||||||||||||||||||||||||||||||||||||||
| 542 | 4 | ▶ | $extra_match_installed->{'Module::Build'} = '0.4004' if 'mb' eq $self->toolkit; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 543 | 4 | ▶ | $extra_match_installed->{'Module::Build::Tiny'} = '0.032' if 'mbtiny' eq $self->toolkit; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 544 | 4 | ▶ | $extra_match_installed->{'ExtUtils::MakeMaker'} = '7.00' if 'eumm' eq $self->toolkit; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 545 | |||||||||||||||||||||||||||||||||||||||
| 546 | 4 | ▶ | if ( 'hard' eq $self->toolkit_hardness ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 547 | $self->add_plugin( | ||||||||||||||||||||||||||||||||||||||
| 548 | 'Prereqs::MatchInstalled' => { | ||||||||||||||||||||||||||||||||||||||
| 549 | 0 | modules => [ sort keys %{$extra_match_installed} ], | |||||||||||||||||||||||||||||||||||||
| 550 | }, | ||||||||||||||||||||||||||||||||||||||
| 551 | ); | ||||||||||||||||||||||||||||||||||||||
| 552 | } | ||||||||||||||||||||||||||||||||||||||
| 553 | |||||||||||||||||||||||||||||||||||||||
| 554 | $self->add_plugin( | ||||||||||||||||||||||||||||||||||||||
| 555 | 'Prereqs::Upgrade' => { | ||||||||||||||||||||||||||||||||||||||
| 556 | 4 | %{$extra_match_installed}, | |||||||||||||||||||||||||||||||||||||
| 557 | 'Moose' => '2.000', # Module::Runtime crap | ||||||||||||||||||||||||||||||||||||||
| 558 | 'Moo' => '1.000008', # lazy_build => sub | ||||||||||||||||||||||||||||||||||||||
| 559 | 'Path::Tiny' => '0.058', # ->sibling | ||||||||||||||||||||||||||||||||||||||
| 560 | 'File::ShareDir::Install' => '0.10', # dotfiles | ||||||||||||||||||||||||||||||||||||||
| 561 | 'Dist::Zilla' => '5', # encoding | ||||||||||||||||||||||||||||||||||||||
| 562 | 'Test::File::ShareDir' => '1.000000', # 5.8 version compat | ||||||||||||||||||||||||||||||||||||||
| 563 | 'Dist::Zila::Plugin::MetaProvides::Package' => '2.000000', # sane version | ||||||||||||||||||||||||||||||||||||||
| 564 | }, | ||||||||||||||||||||||||||||||||||||||
| 565 | ); | ||||||||||||||||||||||||||||||||||||||
| 566 | |||||||||||||||||||||||||||||||||||||||
| 567 | 4 | my $applymap = [ 'develop.requires = develop.requires', ]; | |||||||||||||||||||||||||||||||||||||
| 568 | |||||||||||||||||||||||||||||||||||||||
| 569 | 4 | ▶ | $applymap = [ 'develop.suggests = develop.suggests', ] if _is_bake(); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 570 | |||||||||||||||||||||||||||||||||||||||
| 571 | 4 | my @bundles = ('Dist::Zilla::PluginBundle::Author::KENTNL'); | |||||||||||||||||||||||||||||||||||||
| 572 | |||||||||||||||||||||||||||||||||||||||
| 573 | 4 | ▶ | push @bundles, 'Dist::Zilla::App::Command::bakeini' if _is_bake(); | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 574 | |||||||||||||||||||||||||||||||||||||||
| 575 | 4 | $self->add_named_plugin( | |||||||||||||||||||||||||||||||||||||
| 576 | 'always_latest_develop_bundle' => 'Prereqs::Recommend::MatchInstalled' => { | ||||||||||||||||||||||||||||||||||||||
| 577 | applyto_map => $applymap, | ||||||||||||||||||||||||||||||||||||||
| 578 | applyto_phase => [ 'develop', ], | ||||||||||||||||||||||||||||||||||||||
| 579 | modules => [@bundles], | ||||||||||||||||||||||||||||||||||||||
| 580 | }, | ||||||||||||||||||||||||||||||||||||||
| 581 | ); | ||||||||||||||||||||||||||||||||||||||
| 582 | 4 | $self->add_plugin( 'RemovePrereqs::Provided' => {} ); | |||||||||||||||||||||||||||||||||||||
| 583 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 584 | } | ||||||||||||||||||||||||||||||||||||||
| 585 | |||||||||||||||||||||||||||||||||||||||
| 586 | 4 | ▶ | sub _configure_readmes { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
_configure_readmes: called CC=3 SCAR=11.4
| |||||||||||||||||||||||||||||||||||||||
| 587 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 588 | |||||||||||||||||||||||||||||||||||||||
| 589 | 4 | $self->add_named_plugin( 'ShippedReadme' => 'Readme::Brief' => {}, ); | |||||||||||||||||||||||||||||||||||||
| 590 | |||||||||||||||||||||||||||||||||||||||
| 591 | 4 | my $type = $self->src_readme; | |||||||||||||||||||||||||||||||||||||
| 592 | |||||||||||||||||||||||||||||||||||||||
| 593 | 4 | ▶ | return if 'none' eq $type; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 594 | |||||||||||||||||||||||||||||||||||||||
| 595 | 4 | my $map = {}; | |||||||||||||||||||||||||||||||||||||
| 596 | 4 | $map->{mkdn} = { type => 'markdown', filename => 'README.mkdn' }; | |||||||||||||||||||||||||||||||||||||
| 597 | 4 | $map->{pod} = { type => 'pod', filename => 'README.pod' }; | |||||||||||||||||||||||||||||||||||||
| 598 | |||||||||||||||||||||||||||||||||||||||
| 599 | 4 | ▶ | if ( not exists $map->{$type} ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 600 | 0 | require Carp; | |||||||||||||||||||||||||||||||||||||
| 601 | 0 | return Carp::confess("No known readme type $type"); | |||||||||||||||||||||||||||||||||||||
| 602 | } | ||||||||||||||||||||||||||||||||||||||
| 603 | |||||||||||||||||||||||||||||||||||||||
| 604 | 4 | $self->add_plugin( 'ReadmeAnyFromPod' => { location => 'root', %{ $map->{$type} } }, ); | |||||||||||||||||||||||||||||||||||||
| 605 | |||||||||||||||||||||||||||||||||||||||
| 606 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 607 | } | ||||||||||||||||||||||||||||||||||||||
| 608 | |||||||||||||||||||||||||||||||||||||||
| 609 | 4 | ▶ | sub configure { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
configure: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||
| 610 | 4 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||
| 611 | |||||||||||||||||||||||||||||||||||||||
| 612 | # Version | ||||||||||||||||||||||||||||||||||||||
| 613 | 4 | $self->_configure_bump_versions_version; | |||||||||||||||||||||||||||||||||||||
| 614 | |||||||||||||||||||||||||||||||||||||||
| 615 | # MetaData | ||||||||||||||||||||||||||||||||||||||
| 616 | 4 | $self->_configure_basic_metadata; | |||||||||||||||||||||||||||||||||||||
| 617 | |||||||||||||||||||||||||||||||||||||||
| 618 | # Gather Files | ||||||||||||||||||||||||||||||||||||||
| 619 | 4 | $self->_configure_basic_files; | |||||||||||||||||||||||||||||||||||||
| 620 | 4 | $self->_configure_basic_tests; | |||||||||||||||||||||||||||||||||||||
| 621 | |||||||||||||||||||||||||||||||||||||||
| 622 | # Prune files | ||||||||||||||||||||||||||||||||||||||
| 623 | |||||||||||||||||||||||||||||||||||||||
| 624 | 4 | $self->add_plugin( 'ManifestSkip' => {} ); | |||||||||||||||||||||||||||||||||||||
| 625 | |||||||||||||||||||||||||||||||||||||||
| 626 | # Mungers | ||||||||||||||||||||||||||||||||||||||
| 627 | 4 | $self->_configure_pkgversion_munger; | |||||||||||||||||||||||||||||||||||||
| 628 | 4 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 629 | 'PodWeaver' => { | ||||||||||||||||||||||||||||||||||||||
| 630 | replacer => 'replace_with_blank', | ||||||||||||||||||||||||||||||||||||||
| 631 | }, | ||||||||||||||||||||||||||||||||||||||
| 632 | ); | ||||||||||||||||||||||||||||||||||||||
| 633 | |||||||||||||||||||||||||||||||||||||||
| 634 | # Prereqs | ||||||||||||||||||||||||||||||||||||||
| 635 | |||||||||||||||||||||||||||||||||||||||
| 636 | { | ||||||||||||||||||||||||||||||||||||||
| 637 | 4 | my $autoprereqs_hash = {}; | |||||||||||||||||||||||||||||||||||||
| 638 | 4 | ▶ | $autoprereqs_hash->{skips} = $self->auto_prereqs_skip if $self->has_auto_prereqs_skip; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 639 | 4 | $self->add_plugin( 'AutoPrereqs' => $autoprereqs_hash ); | |||||||||||||||||||||||||||||||||||||
| 640 | } | ||||||||||||||||||||||||||||||||||||||
| 641 | |||||||||||||||||||||||||||||||||||||||
| 642 | 4 | $self->_configure_bundle_develop_suggests(); | |||||||||||||||||||||||||||||||||||||
| 643 | 4 | $self->_configure_bundle_develop_requires(); | |||||||||||||||||||||||||||||||||||||
| 644 | |||||||||||||||||||||||||||||||||||||||
| 645 | 4 | $self->add_plugin( 'Prereqs::AuthorDeps' => {} ); | |||||||||||||||||||||||||||||||||||||
| 646 | |||||||||||||||||||||||||||||||||||||||
| 647 | 4 | $self->add_plugin( 'MinimumPerl' => {} ); | |||||||||||||||||||||||||||||||||||||
| 648 | 4 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 649 | 'Authority' => { | ||||||||||||||||||||||||||||||||||||||
| 650 | ':version' => '1.006', | ||||||||||||||||||||||||||||||||||||||
| 651 | authority => $self->authority, | ||||||||||||||||||||||||||||||||||||||
| 652 | do_metadata => 1, | ||||||||||||||||||||||||||||||||||||||
| 653 | locate_comment => 1, | ||||||||||||||||||||||||||||||||||||||
| 654 | }, | ||||||||||||||||||||||||||||||||||||||
| 655 | ); | ||||||||||||||||||||||||||||||||||||||
| 656 | |||||||||||||||||||||||||||||||||||||||
| 657 | 4 | $self->_configure_toolkit; | |||||||||||||||||||||||||||||||||||||
| 658 | |||||||||||||||||||||||||||||||||||||||
| 659 | 4 | $self->_configure_readmes; | |||||||||||||||||||||||||||||||||||||
| 660 | |||||||||||||||||||||||||||||||||||||||
| 661 | 4 | $self->add_plugin( 'Test::CPAN::Changes' => {} ); | |||||||||||||||||||||||||||||||||||||
| 662 | 4 | $self->add_plugin( 'RunExtraTests' => { default_jobs => 10 } ); | |||||||||||||||||||||||||||||||||||||
| 663 | 4 | $self->add_plugin( 'TestRelease' => {} ); | |||||||||||||||||||||||||||||||||||||
| 664 | 4 | $self->add_plugin( 'ConfirmRelease' => {} ); | |||||||||||||||||||||||||||||||||||||
| 665 | |||||||||||||||||||||||||||||||||||||||
| 666 | 4 | $self->add_plugin( 'Git::Check' => { filename => 'Changes' } ); | |||||||||||||||||||||||||||||||||||||
| 667 | 4 | $self->add_named_plugin( 'commit_dirty_files' => 'Git::Commit' => {} ); | |||||||||||||||||||||||||||||||||||||
| 668 | 4 | $self->add_named_plugin( 'tag_master', => 'Git::Tag' => { tag_format => '%v-source' } ); | |||||||||||||||||||||||||||||||||||||
| 669 | 4 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 670 | 'Git::NextRelease' => { | ||||||||||||||||||||||||||||||||||||||
| 671 | ':version' => '0.004000', | ||||||||||||||||||||||||||||||||||||||
| 672 | time_zone => 'UTC', | ||||||||||||||||||||||||||||||||||||||
| 673 | format => q[%v %{yyyy-MM-dd'T'HH:mm:ss}dZ %h], | ||||||||||||||||||||||||||||||||||||||
| 674 | default_branch => 'master', | ||||||||||||||||||||||||||||||||||||||
| 675 | }, | ||||||||||||||||||||||||||||||||||||||
| 676 | ); | ||||||||||||||||||||||||||||||||||||||
| 677 | |||||||||||||||||||||||||||||||||||||||
| 678 | 4 | ▶ | if ( $self->bump_versions ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 679 | 4 | $self->add_plugin( 'BumpVersionAfterRelease' => {} ); | |||||||||||||||||||||||||||||||||||||
| 680 | } | ||||||||||||||||||||||||||||||||||||||
| 681 | $self->add_named_plugin( | ||||||||||||||||||||||||||||||||||||||
| 682 | 4 | 'commit_release_changes' => 'Git::Commit' => { | |||||||||||||||||||||||||||||||||||||
| 683 | allow_dirty_match => '^lib/', | ||||||||||||||||||||||||||||||||||||||
| 684 | }, | ||||||||||||||||||||||||||||||||||||||
| 685 | ); | ||||||||||||||||||||||||||||||||||||||
| 686 | |||||||||||||||||||||||||||||||||||||||
| 687 | 4 | $self->add_plugin( 'Git::CommitBuild' => { branch => 'builds', release_branch => 'releases' } ); | |||||||||||||||||||||||||||||||||||||
| 688 | 4 | $self->add_named_plugin( 'tag_release', 'Git::Tag' => { branch => 'releases', tag_format => '%v' } ); | |||||||||||||||||||||||||||||||||||||
| 689 | 4 | $self->add_plugin( 'UploadToCPAN' => {} ); | |||||||||||||||||||||||||||||||||||||
| 690 | 4 | $self->add_plugin( | |||||||||||||||||||||||||||||||||||||
| 691 | 'Twitter' => { | ||||||||||||||||||||||||||||||||||||||
| 692 | hash_tags => $self->twitter_hash_tags, | ||||||||||||||||||||||||||||||||||||||
| 693 | tweet_url => $self->tweet_url, | ||||||||||||||||||||||||||||||||||||||
| 694 | url_shortener => 'none', | ||||||||||||||||||||||||||||||||||||||
| 695 | }, | ||||||||||||||||||||||||||||||||||||||
| 696 | ); | ||||||||||||||||||||||||||||||||||||||
| 697 | |||||||||||||||||||||||||||||||||||||||
| 698 | 4 | $self->_configure_toolkit_prereqs; | |||||||||||||||||||||||||||||||||||||
| 699 | |||||||||||||||||||||||||||||||||||||||
| 700 | 4 | return; | |||||||||||||||||||||||||||||||||||||
| 701 | } | ||||||||||||||||||||||||||||||||||||||
| 702 | |||||||||||||||||||||||||||||||||||||||
| 703 | 4 | ▶ | sub BUILDARGS { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
BUILDARGS: called CC=10 SCAR=30.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||
| 704 | 4 | my ( $self, $config, @args ) = @_; | |||||||||||||||||||||||||||||||||||||
| 705 | |||||||||||||||||||||||||||||||||||||||
| 706 | 4 | ▶ | if ( @args or not 'HASH' eq ( ref $config || q[] ) ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
@args or not "HASH" eq (ref $config || "")
ref $config || ''
MC/DC0%0/2
@args or not "HASH" eq (ref $config || "")
@args
not "HASH" eq (ref $config || "")
MC/DC0%0/1
ref $config || ''
ref $config
Truth table33%1/3
A or not(B)
A= @argsB= not "HASH" eq (ref $config || "")
Truth table50%1/2
A
A= ref $config
| |||||||||||||||||||||||||||||||||||||||
| 707 | 0 | $config = { $config, @args }; | |||||||||||||||||||||||||||||||||||||
| 708 | } | ||||||||||||||||||||||||||||||||||||||
| 709 | 4 | my (%init_args); | |||||||||||||||||||||||||||||||||||||
| 710 | 4 | for my $attr ( $self->meta->get_all_attributes ) { | |||||||||||||||||||||||||||||||||||||
| 711 | 56 | ▶ | next unless my $arg = $attr->init_arg; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 712 | 52 | $init_args{$arg} = 1; | |||||||||||||||||||||||||||||||||||||
| 713 | } | ||||||||||||||||||||||||||||||||||||||
| 714 | |||||||||||||||||||||||||||||||||||||||
| 715 | # A weakened warn-only filter-supporting StrictConstructor | ||||||||||||||||||||||||||||||||||||||
| 716 | 4 | for my $key ( keys %{$config} ) { | |||||||||||||||||||||||||||||||||||||
| 717 | 28 | ▶ | next if exists $init_args{$key}; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 718 | 0 | ▶ | next if $key =~ /\A-remove/msx; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 719 | 0 | ▶ | next if $key =~ /\A[^.]+[.][^.]/msx; | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 720 | 0 | require Carp; | |||||||||||||||||||||||||||||||||||||
| 721 | 0 | Carp::carp("Unknown key $key"); | |||||||||||||||||||||||||||||||||||||
| 722 | } | ||||||||||||||||||||||||||||||||||||||
| 723 | 4 | return $config; | |||||||||||||||||||||||||||||||||||||
| 724 | } | ||||||||||||||||||||||||||||||||||||||
| 725 | |||||||||||||||||||||||||||||||||||||||
| 726 | 4 | ▶ | sub bundle_config { | ||||||||||||||||||||||||||||||||||||
|
Subroutine
bundle_config: called CC=3 SCAR=11.7
| |||||||||||||||||||||||||||||||||||||||
| 727 | 4 | my ( $self, $section ) = @_; | |||||||||||||||||||||||||||||||||||||
| 728 | 4 | ▶ | my $class = ( ref $self ) || $self; | ||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
ref $self || $self
MC/DC0%0/2
ref $self || $self
ref $self
$self
Truth table33%1/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||||||||||||||||||||
| 729 | |||||||||||||||||||||||||||||||||||||||
| 730 | 4 | my $wanted_version; | |||||||||||||||||||||||||||||||||||||
| 731 | 4 | ▶ | if ( exists $section->{payload}->{':version'} ) { | ||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||
| 732 | 0 | $wanted_version = delete $section->{payload}->{':version'}; | |||||||||||||||||||||||||||||||||||||
| 733 | } | ||||||||||||||||||||||||||||||||||||||
| 734 | 4 | my $instance = $class->new( $section->{payload} ); | |||||||||||||||||||||||||||||||||||||
| 735 | |||||||||||||||||||||||||||||||||||||||
| 736 | 4 | $instance->configure(); | |||||||||||||||||||||||||||||||||||||
| 737 | |||||||||||||||||||||||||||||||||||||||
| 738 | 4 | return @{ $instance->plugins }; | |||||||||||||||||||||||||||||||||||||
| 739 | } | ||||||||||||||||||||||||||||||||||||||
| 740 | |||||||||||||||||||||||||||||||||||||||
| 741 | 5 | 1; | |||||||||||||||||||||||||||||||||||||
| 742 | |||||||||||||||||||||||||||||||||||||||
| 743 | __END__ | ||||||||||||||||||||||||||||||||||||||