From: Peter Rabbitson Date: Tue, 26 Mar 2013 15:01:37 +0000 (+0100) Subject: Work around Exporter.pm not installable on perl < 5.8.0 X-Git-Tag: v0.001010~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fc071618f9f22df16f34afbc0e0e43eaebf94921;p=p5sagit%2FSub-Exporter-Progressive.git Work around Exporter.pm not installable on perl < 5.8.0 For more info: https://github.com/toddr/Exporter/pull/1 --- diff --git a/Changes b/Changes index bbe016c..174d735 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,5 @@ - Fix module name in Makefile.PL (RT#83932) + - Work around Exporter.pm not installable on perl < 5.8.0 0.001009 - 2013-03-12 - disallow version names in random parts of the import list for consistency diff --git a/Makefile.PL b/Makefile.PL index 6312e88..037f594 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,7 +10,6 @@ my %BUILD_DEPS = ( ); my %RUN_DEPS = ( - 'Exporter' => '5.58', ); my %META_BITS = ( diff --git a/t/tags.t b/t/tags.t index 85a31b1..90f20ca 100644 --- a/t/tags.t +++ b/t/tags.t @@ -51,12 +51,19 @@ check_tag(':default', [qw/foo/], [qw/bar baz/]); check_tag('-default', [qw/foo/], [qw/bar baz/]); check_tag(':default bar', [qw/foo bar/], [qw/baz/]); check_tag('-default bar', [qw/foo bar/], [qw/baz/]); -check_tag('bar :default', [qw/foo bar/], [qw/baz/]); -check_tag('bar -default', [qw/foo bar/], [qw/baz/]); check_tag(':bb', [qw/bar baz/], [qw/foo/]); check_tag('-bb', [qw/bar baz/], [qw/foo/]); check_tag(':all', [qw/foo bar baz/], []); check_tag('-all', [qw/foo bar baz/], []); +SKIP: { + skip "Your version of Exporter (@{[ Exporter->VERSION ]}) supports " + .'tags only as the first argument to import()', 1 + unless eval { Exporter->VERSION('5.58') }; + + check_tag('bar :default', [qw/foo bar/], [qw/baz/]); + check_tag('bar -default', [qw/foo bar/], [qw/baz/]); +} + done_testing;