summaryrefslogtreecommitdiff
path: root/cpan/Module-Metadata
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2014-06-02 13:25:54 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2014-06-02 13:56:28 +0100
commitb9beed70e30851ab73bb250a935deb00318469d7 (patch)
tree8945d7e9385729004459458931b471ac993e8bd4 /cpan/Module-Metadata
parent7a945bf519e3f6ca4358df6fa1eb29479fdb148f (diff)
downloadperl-b9beed70e30851ab73bb250a935deb00318469d7.tar.gz
Upgrade Module-Metadata from version 1.000022 to 1.000023
Diffstat (limited to 'cpan/Module-Metadata')
-rw-r--r--cpan/Module-Metadata/corpus/BOMTest/UTF16BE.pm (renamed from cpan/Module-Metadata/t/lib/BOMTest/UTF16BE.pm)bin238 -> 238 bytes
-rw-r--r--cpan/Module-Metadata/corpus/BOMTest/UTF16LE.pm (renamed from cpan/Module-Metadata/t/lib/BOMTest/UTF16LE.pm)bin238 -> 238 bytes
-rw-r--r--cpan/Module-Metadata/corpus/BOMTest/UTF8.pm (renamed from cpan/Module-Metadata/t/lib/BOMTest/UTF8.pm)0
-rw-r--r--cpan/Module-Metadata/lib/Module/Metadata.pm10
-rw-r--r--cpan/Module-Metadata/t/contains_pod.t5
-rw-r--r--cpan/Module-Metadata/t/encoding.t2
-rw-r--r--cpan/Module-Metadata/t/endpod.t1
-rw-r--r--cpan/Module-Metadata/t/lib/ENDPOD.pm1
8 files changed, 11 insertions, 8 deletions
diff --git a/cpan/Module-Metadata/t/lib/BOMTest/UTF16BE.pm b/cpan/Module-Metadata/corpus/BOMTest/UTF16BE.pm
index 17c6a4ad65..17c6a4ad65 100644
--- a/cpan/Module-Metadata/t/lib/BOMTest/UTF16BE.pm
+++ b/cpan/Module-Metadata/corpus/BOMTest/UTF16BE.pm
Binary files differ
diff --git a/cpan/Module-Metadata/t/lib/BOMTest/UTF16LE.pm b/cpan/Module-Metadata/corpus/BOMTest/UTF16LE.pm
index a46de6de4e..a46de6de4e 100644
--- a/cpan/Module-Metadata/t/lib/BOMTest/UTF16LE.pm
+++ b/cpan/Module-Metadata/corpus/BOMTest/UTF16LE.pm
Binary files differ
diff --git a/cpan/Module-Metadata/t/lib/BOMTest/UTF8.pm b/cpan/Module-Metadata/corpus/BOMTest/UTF8.pm
index 9062ac6075..9062ac6075 100644
--- a/cpan/Module-Metadata/t/lib/BOMTest/UTF8.pm
+++ b/cpan/Module-Metadata/corpus/BOMTest/UTF8.pm
diff --git a/cpan/Module-Metadata/lib/Module/Metadata.pm b/cpan/Module-Metadata/lib/Module/Metadata.pm
index ca5dc7b018..6a3dafb5f2 100644
--- a/cpan/Module-Metadata/lib/Module/Metadata.pm
+++ b/cpan/Module-Metadata/lib/Module/Metadata.pm
@@ -1,6 +1,11 @@
# -*- mode: cperl; tab-width: 8; indent-tabs-mode: nil; basic-offset: 2 -*-
# vim:ts=8:sw=2:et:sta:sts=2
package Module::Metadata;
+BEGIN {
+ $Module::Metadata::AUTHORITY = 'cpan:MSTROUT';
+}
+# git description: v1.000022-4-ge460e95
+$Module::Metadata::VERSION = '1.000023';
# Adapted from Perl-licensed code originally distributed with
# Module-Build by Ken Williams
@@ -12,9 +17,6 @@ package Module::Metadata;
use strict;
use warnings;
-our $VERSION = '1.000022';
-$VERSION = eval $VERSION;
-
use Carp qw/croak/;
use File::Spec;
BEGIN {
@@ -665,7 +667,7 @@ sub _evaluate_version_line {
local $^W;
# Try to get the $VERSION
eval $eval;
- # some modules say $VERSION = $Foo::Bar::VERSION, but Foo::Bar isn't
+ # some modules say $VERSION <equal sign> $Foo::Bar::VERSION, but Foo::Bar isn't
# installed, so we need to hunt in ./lib for it
if ( $@ =~ /Can't locate/ && -d 'lib' ) {
local @INC = ('lib',@INC);
diff --git a/cpan/Module-Metadata/t/contains_pod.t b/cpan/Module-Metadata/t/contains_pod.t
index 8cb2b52e0b..52971232b3 100644
--- a/cpan/Module-Metadata/t/contains_pod.t
+++ b/cpan/Module-Metadata/t/contains_pod.t
@@ -8,10 +8,13 @@ BEGIN {
? require IO::Scalar && sub ($) {
IO::Scalar->new(\$_[0]);
}
- : sub ($) {
+ # hide in n eval'd string so Perl::MinimumVersion doesn't clutch its pearls
+ : eval <<'EVAL'
+ sub ($) {
open my $fh, '<', \$_[0];
$fh
}
+EVAL
;
}
diff --git a/cpan/Module-Metadata/t/encoding.t b/cpan/Module-Metadata/t/encoding.t
index b010f7e727..932614fff2 100644
--- a/cpan/Module-Metadata/t/encoding.t
+++ b/cpan/Module-Metadata/t/encoding.t
@@ -22,7 +22,7 @@ plan tests => 4 * scalar(keys %versions);
for my $enc (sort keys %versions) {
my $pkg = "BOMTest::$enc";
my $vers = $versions{$enc};
- my $pm = File::Spec->catfile(qw<t lib BOMTest> => "$enc.pm");
+ my $pm = File::Spec->catfile(qw<corpus BOMTest> => "$enc.pm");
my $info = Module::Metadata->new_from_file($pm);
is( $info->name, $pkg, "$enc: default package was found" );
is( $info->version, $vers, "$enc: version for default package" );
diff --git a/cpan/Module-Metadata/t/endpod.t b/cpan/Module-Metadata/t/endpod.t
index 815ec91867..d37d8155b5 100644
--- a/cpan/Module-Metadata/t/endpod.t
+++ b/cpan/Module-Metadata/t/endpod.t
@@ -1,6 +1,5 @@
use strict;
use warnings;
-use utf8;
use Test::More tests => 2;
use Module::Metadata;
diff --git a/cpan/Module-Metadata/t/lib/ENDPOD.pm b/cpan/Module-Metadata/t/lib/ENDPOD.pm
index cb60394847..e43e07bde5 100644
--- a/cpan/Module-Metadata/t/lib/ENDPOD.pm
+++ b/cpan/Module-Metadata/t/lib/ENDPOD.pm
@@ -1,7 +1,6 @@
package ENDPOD;
use strict;
use warnings;
-use utf8;
1;