summaryrefslogtreecommitdiff
path: root/cpan/CPAN-Meta-YAML
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2012-05-31 11:58:16 +0100
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2012-06-15 14:33:49 +0100
commit507d67ac2c440954ba6b319c0d97636103f13854 (patch)
treec01fe4b1a6eb42186f6cb9fb1876f73da8a4a47a /cpan/CPAN-Meta-YAML
parent64883bec20d3d0f6f43c7e1a2d41d7fc61c47cdd (diff)
downloadperl-507d67ac2c440954ba6b319c0d97636103f13854.tar.gz
Updated CPAN-Meta-YAML to CPAN version 0.008
[DELTA] 0.008 2012-03-14 17:13:24 EST5EDT - Generated from ADAMK/YAML-Tiny-1.51.tar.gz - Updated from YAML-Tiny to fix compatibility with older Scalar::Utils
Diffstat (limited to 'cpan/CPAN-Meta-YAML')
-rw-r--r--cpan/CPAN-Meta-YAML/lib/CPAN/Meta/YAML.pm11
-rw-r--r--cpan/CPAN-Meta-YAML/t/15_multibyte.t7
2 files changed, 10 insertions, 8 deletions
diff --git a/cpan/CPAN-Meta-YAML/lib/CPAN/Meta/YAML.pm b/cpan/CPAN-Meta-YAML/lib/CPAN/Meta/YAML.pm
index ba8a702f74..a9f4d6d94c 100644
--- a/cpan/CPAN-Meta-YAML/lib/CPAN/Meta/YAML.pm
+++ b/cpan/CPAN-Meta-YAML/lib/CPAN/Meta/YAML.pm
@@ -1,6 +1,6 @@
package CPAN::Meta::YAML;
{
- $CPAN::Meta::YAML::VERSION = '0.007';
+ $CPAN::Meta::YAML::VERSION = '0.008';
}
use strict;
@@ -614,8 +614,9 @@ BEGIN {
eval {
require Scalar::Util;
};
- if ( $@ or $Scalar::Util::VERSION < 1.18 ) {
- eval <<'END_PERL' if $@;
+ my $v = eval("$Scalar::Util::VERSION") || 0;
+ if ( $@ or $v < 1.18 ) {
+ eval <<'END_PERL';
# Scalar::Util failed to load or too old
sub refaddr {
my $pkg = ref($_[0]) or return undef;
@@ -647,7 +648,7 @@ CPAN::Meta::YAML - Read and write a subset of YAML for CPAN Meta files
=head1 VERSION
-version 0.007
+version 0.008
=head1 SYNOPSIS
@@ -689,7 +690,7 @@ L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=YAML-Tiny>
L<YAML::Tiny>, L<YAML>, L<YAML::XS>
-=for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders
+=for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
=head1 SUPPORT
diff --git a/cpan/CPAN-Meta-YAML/t/15_multibyte.t b/cpan/CPAN-Meta-YAML/t/15_multibyte.t
index 8e679f5fda..5adbc1e878 100644
--- a/cpan/CPAN-Meta-YAML/t/15_multibyte.t
+++ b/cpan/CPAN-Meta-YAML/t/15_multibyte.t
@@ -10,7 +10,7 @@ BEGIN {
use File::Spec::Functions ':ALL';
use t::lib::Test;
-use Test::More tests(0, 1, 5);
+use Test::More tests(0, 1, 6);
use CPAN::Meta::YAML;
@@ -41,11 +41,12 @@ SKIP: {
SKIP: {
unless ( CPAN::Meta::YAML::HAVE_UTF8() ) {
- skip("no utf8 support", 1 );
+ skip("no utf8 support", 2 );
}
eval { utf8::is_utf8('') };
if ( $@ ) {
- skip("no is_utf8 to test with until 5.8.1", 1);
+ skip("no is_utf8 to test with until 5.8.1", 2);
}
ok( utf8::is_utf8($yaml->[0]->{author}), "utf8 decoded" );
+ is( length($yaml->[0]->{author}), 39, "utf8 decoded as characters" );
}