From: Brian Cassidy Date: Tue, 13 Nov 2007 19:30:30 +0000 (+0000) Subject: require YAML::Syck 0.70 for multi-document loading X-Git-Tag: v0.09_02~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=48e4a267ac83f85a46ee54c53052f8831752acac;p=p5sagit%2FConfig-Any.git require YAML::Syck 0.70 for multi-document loading --- diff --git a/Changes b/Changes index c195610..d1ff82c 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for Config-Any +0.09_02 Tue Nov 13 2007 + - require version 0.70 of YAML::Syck for multi-document loading + 0.09_01 Tue Nov 13 2007 - code and pod cleanups - use_ext is now on by default diff --git a/lib/Config/Any.pm b/lib/Config/Any.pm index d1a3b0e..301e006 100644 --- a/lib/Config/Any.pm +++ b/lib/Config/Any.pm @@ -6,7 +6,7 @@ use warnings; use Carp; use Module::Pluggable::Object (); -our $VERSION = '0.09_01'; +our $VERSION = '0.09_02'; =head1 NAME @@ -14,7 +14,7 @@ Config::Any - Load configuration from different file formats, transparently =head1 VERSION -This document describes Config::Any version 0.09_01 +This document describes Config::Any version 0.09_02 =head1 SYNOPSIS diff --git a/lib/Config/Any/YAML.pm b/lib/Config/Any/YAML.pm index 4a4b965..8a999b5 100644 --- a/lib/Config/Any/YAML.pm +++ b/lib/Config/Any/YAML.pm @@ -41,7 +41,7 @@ sub load { my $class = shift; my $file = shift; - eval { require YAML::Syck; }; + eval { require YAML::Syck; YAML::Syck->VERSION( '0.70' ) }; if ( $@ ) { require YAML; return YAML::LoadFile( $file ); diff --git a/t/62-multi.t b/t/62-multi.t index 6c9e1e9..2705de3 100644 --- a/t/62-multi.t +++ b/t/62-multi.t @@ -19,7 +19,7 @@ my @expect = ( my @results = eval { Config::Any::YAML->load( $file ); }; SKIP: { - skip "Can't load YAML files", 3 if $@; + skip "Can't load multi-stream YAML files", 3 if $@; is( @results, 2, '2 documents' ); is_deeply( \@results, \@expect, 'structures ok' );