diff --git a/Changes b/Changes index 0e090dc..e1e8026 100644 --- a/Changes +++ b/Changes @@ -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] diff --git a/lib/Dist/Zilla/Plugin/Bootstrap/lib.pm b/lib/Dist/Zilla/Plugin/Bootstrap/lib.pm index e9aea8c..7d87e5e 100644 --- a/lib/Dist/Zilla/Plugin/Bootstrap/lib.pm +++ b/lib/Dist/Zilla/Plugin/Bootstrap/lib.pm @@ -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;