[libdist-zilla-plugin-test-eol-perl] 03/07: provide config data for [MetaConfig]
Intrigeri
intrigeri at moszumanska.debian.org
Sun Aug 16 09:20:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to annotated tag 0.14
in repository libdist-zilla-plugin-test-eol-perl.
commit c736ad718ffd9adc64c114bf37a725e3c6fd7f07
Author: Karen Etheridge <ether at cpan.org>
Date: Wed Oct 22 18:03:35 2014 -0700
provide config data for [MetaConfig]
---
Changes | 1 +
lib/Dist/Zilla/Plugin/Test/EOL.pm | 11 +++++++++++
t/01-basic.t | 16 +++++++++++++++-
3 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/Changes b/Changes
index 263fa1f..a28edc7 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,7 @@ Revision history for {{$dist->name}}
{{$NEXT}}
- change default filename from test-eol.t to eol.t
+ - add metadata for [MetaConfig]
0.13 2014-10-22 05:44:36Z
- Dist::Zilla::Plugin::EOLTests and Dist::Zilla::Plugin::Test::EOL are
diff --git a/lib/Dist/Zilla/Plugin/Test/EOL.pm b/lib/Dist/Zilla/Plugin/Test/EOL.pm
index ae0c82e..39e781f 100644
--- a/lib/Dist/Zilla/Plugin/Test/EOL.pm
+++ b/lib/Dist/Zilla/Plugin/Test/EOL.pm
@@ -26,6 +26,17 @@ has filename => (
default => sub { return 'xt/author/eol.t' },
);
+around dump_config => sub
+{
+ my ($orig, $self) = @_;
+ my $config = $self->$orig;
+
+ $config->{+__PACKAGE__} = {
+ filename => $self->filename,
+ };
+ return $config;
+};
+
sub gather_files
{
my $self = shift;
diff --git a/t/01-basic.t b/t/01-basic.t
index 1ce3956..7a9f5b1 100644
--- a/t/01-basic.t
+++ b/t/01-basic.t
@@ -15,6 +15,7 @@ my $tzil = Builder->from_config(
path(qw(source dist.ini)) => simple_ini(
[ GatherDir => ],
[ ExecDir => ],
+ [ MetaConfig => ],
[ 'Test::EOL' ],
),
path(qw(source lib Foo.pm)) => <<'MODULE',
@@ -49,7 +50,20 @@ cmp_deeply(
},
},
},
- # TODO: x_Dist_Zilla
+ x_Dist_Zilla => superhashof({
+ plugins => supersetof(
+ {
+ class => 'Dist::Zilla::Plugin::Test::EOL',
+ config => {
+ 'Dist::Zilla::Plugin::Test::EOL' => {
+ filename => 'xt/author/eol.t',
+ },
+ },
+ name => 'Test::EOL',
+ version => ignore,
+ },
+ ),
+ }),
}),
'prereqs are properly injected for the develop phase',
) or diag 'got distmeta: ', explain $tzil->distmeta;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-eol-perl.git
More information about the Pkg-perl-cvs-commits
mailing list