[libdist-zilla-plugin-test-eol-perl] 06/13: make this header look like many other author and release tests

Intrigeri intrigeri at moszumanska.debian.org
Sun Aug 16 09:20:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to annotated tag 0.17
in repository libdist-zilla-plugin-test-eol-perl.

commit dc76a482be5e4e3f5e3d25c30d317634750781d1
Author: Karen Etheridge <ether at cpan.org>
Date:   Thu Jan 29 20:50:13 2015 -0800

    make this header look like many other author and release tests
---
 lib/Dist/Zilla/Plugin/Test/EOL.pm | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/lib/Dist/Zilla/Plugin/Test/EOL.pm b/lib/Dist/Zilla/Plugin/Test/EOL.pm
index 20cd372..ef7902e 100644
--- a/lib/Dist/Zilla/Plugin/Test/EOL.pm
+++ b/lib/Dist/Zilla/Plugin/Test/EOL.pm
@@ -51,9 +51,7 @@ sub gather_files
             content => $self->fill_in_string(
                 ${$self->section_data('__TEST__')},
                 {
-                    name    => __PACKAGE__,
-                    version => __PACKAGE__->VERSION
-                               || 'bootstrapped version',
+                    plugin => \$self,
                     trailing_ws => \$self->trailing_whitespace
                 },
             ),
@@ -124,9 +122,10 @@ __DATA__
 ___[ __TEST__ ]___
 use strict;
 use warnings;
-use Test::More;
 
-# generated by {{ $name }} {{ $version }}
+# this test was generated with {{ ref($plugin) . ' ' . ($plugin->VERSION || '<self>') }}
+
+use Test::More;
 use Test::EOL;
 
 all_perl_files_ok({ trailing_whitespace => {{ $trailing_ws }} });

-- 
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