From: Brandon L Black Date: Wed, 23 Jan 2008 06:05:41 +0000 (+0000) Subject: oops, long lost 0.02 commit X-Git-Tag: 0.03~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-SimpleConfig.git;a=commitdiff_plain;h=a61b087b18c87dde0503fac7cd4b5cf9a3b86ef0 oops, long lost 0.02 commit --- diff --git a/ChangeLog b/ChangeLog index 2cc6c1c..ba6b20b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ Revision history for Perl extension MooseX::SimpleConfig +0.02 - Dec 19, 2007 + - Skip the tests if neither of YAML or YAML::Syck is + installed (but don't make it a test requirement, + some people won't be using this with YAML at all). + 0.01 - Dec 18, 2007 - Initial release diff --git a/lib/MooseX/SimpleConfig.pm b/lib/MooseX/SimpleConfig.pm index 6fda06c..76380e5 100644 --- a/lib/MooseX/SimpleConfig.pm +++ b/lib/MooseX/SimpleConfig.pm @@ -3,7 +3,7 @@ package MooseX::SimpleConfig; use Moose::Role; with 'MooseX::ConfigFromFile'; -our $VERSION = '0.01'; +our $VERSION = '0.02'; use Config::Any (); diff --git a/t/10simple.t b/t/10simple.t index c1d0722..3004a0f 100644 --- a/t/10simple.t +++ b/t/10simple.t @@ -3,12 +3,22 @@ use strict; use warnings; -use Test::More tests => 6; - use lib 't/lib'; use lib '../t/lib'; BEGIN { + use Test::More; + + eval "use YAML::Syck ()"; + if($@) { + eval "use YAML ()"; + if($@) { + plan skip_all => "YAML or YAML::Syck required for this test"; + } + } + + plan tests => 6; + use_ok('MXSimpleConfigTest'); }