Skip to content

Commit

Permalink
Build results of 85c9a7b (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Mar 18, 2017
1 parent b6fe6ee commit 320640c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Revision history for Dist-Zilla-Plugin-Bootstrap-lib

1.001002 2017-03-18T04:56:00Z 0a1cb3d
1.001002 2017-03-18T04:56:19Z 85c9a7b
- Stop using Test::KENTNL/dztest

[Dependencies::Stats]
Expand Down
12 changes: 11 additions & 1 deletion lib/Dist/Zilla/Plugin/Bootstrap/lib.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,19 @@ our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY



use Moose qw( with );
use Moose qw( with around );
with 'Dist::Zilla::Role::Bootstrap';

around dump_config => sub {
my ( $orig, $self, @args ) = @_;
my $config = $self->$orig(@args);
my $localconf = {};

$localconf->{ q[$] . __PACKAGE__ . '::VERSION' } = $VERSION unless __PACKAGE__ eq ref $self;
$config->{ +__PACKAGE__ } = $localconf if keys %{$localconf};
return $config;
};

__PACKAGE__->meta->make_immutable;
no Moose;

Expand Down

0 comments on commit 320640c

Please sign in to comment.