« blib/lib/Dist/Zilla/Plugin/ConfirmRelease.pm
↑ Summary
blib/lib/Dist/Zilla/Plugin/FileFinder/Filter.pm »
| 1 | package Dist::Zilla::PluginBundle::FakeClassic 6.040; | ||||||||||
| 2 | # ABSTRACT: build something more or less like a "classic" CPAN dist | ||||||||||
| 3 | |||||||||||
| 4 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | extends 'Dist::Zilla::PluginBundle::Classic'; | |||||||||
| 6 | |||||||||||
| 7 | 2 | ▶ | use Dist::Zilla::Pragmas; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | around bundle_config => sub { | ||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.0
| |||||||||||
| 12 | 1 | my ($orig, $self, $arg) = @_; | |||||||||
| 13 | |||||||||||
| 14 | 1 | my @config = $self->$orig($arg); | |||||||||
| 15 | |||||||||||
| 16 | 1 | for my $i (0 .. $#config) { | |||||||||
| 17 | 17 | ▶ | if ($config[ $i ][1] eq 'Dist::Zilla::Plugin::UploadToCPAN') { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 1 | require Dist::Zilla::Plugin::FakeRelease; | |||||||||
| 19 | 1 | $config[ $i ] = [ | |||||||||
| 20 | "$arg->{name}/FakeRelease", | ||||||||||
| 21 | 'Dist::Zilla::Plugin::FakeRelease', | ||||||||||
| 22 | $config[ $i ][2] | ||||||||||
| 23 | ]; | ||||||||||
| 24 | } | ||||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 1 | return @config; | |||||||||
| 28 | 2 | }; | |||||||||
| 29 | |||||||||||
| 30 | 2 | __PACKAGE__->meta->make_immutable; | |||||||||
| 31 | 2 | 1; | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||