Skip to content

Instantly share code, notes, and snippets.

@kentfredric
Created February 9, 2014 05:04
Show Gist options
  • Save kentfredric/8894533 to your computer and use it in GitHub Desktop.
Save kentfredric/8894533 to your computer and use it in GitHub Desktop.
diff --git a/dist.ini b/dist.ini
index eaeeb88..d84842a 100644
--- a/dist.ini
+++ b/dist.ini
@@ -7,6 +7,7 @@ copyright_holder = Ricardo SIGNES
-bundle = @RJBS
github_issues = 1
+[MetaConfig]
[ModuleShareDirs]
Dist::Zilla::MintingProfile::Default = profiles
diff --git a/lib/Dist/Zilla/Dist/Builder.pm b/lib/Dist/Zilla/Dist/Builder.pm
index 94fed1e..b6ca059 100644
--- a/lib/Dist/Zilla/Dist/Builder.pm
+++ b/lib/Dist/Zilla/Dist/Builder.pm
@@ -48,6 +48,8 @@ sub from_config {
$self->_setup_default_plugins;
+ $self->{mvp_sequence} = $sequence;
+
return $self;
}
diff --git a/lib/Dist/Zilla/Path.pm b/lib/Dist/Zilla/Path.pm
index 0f780fc..b5a0879 100644
--- a/lib/Dist/Zilla/Path.pm
+++ b/lib/Dist/Zilla/Path.pm
@@ -172,7 +172,6 @@ sub path {
return bless $pp, __PACKAGE__;
}
-
sub file {
my ( $self, @rest ) = @_;
if ( $WARN_REROUTED_METHODS ) {
diff --git a/lib/Dist/Zilla/Plugin/MetaConfig.pm b/lib/Dist/Zilla/Plugin/MetaConfig.pm
index 6424ebe..68a12cf 100644
--- a/lib/Dist/Zilla/Plugin/MetaConfig.pm
+++ b/lib/Dist/Zilla/Plugin/MetaConfig.pm
@@ -35,6 +35,13 @@ sub metadata {
(keys %$config ? (config => $config) : ()),
};
+ $dump->{user_config} = [];
+ my $mvp = $self->zilla->{mvp_sequence};
+ for my $section ( $mvp->sections) {
+ push @{ $dump->{user_config} },
+ [ $section->name, $section->package, $section->payload ];
+ }
+
$dump->{perl} = {
version => $],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment