Revision history for Config-Any
+0.24 2013-09-10
+ - remove 4-year-old warning about YAML::XS not being installed
+
0.23 2011-07-13
- fix test suite's method of checking availability of plugins
=cut
-our $NO_YAML_XS_WARNING;
-
sub load {
my $class = shift;
my $file = shift;
return YAML::XS::LoadFile( $file );
}
- Carp::carp
- 'Use of YAML::Syck or YAML to parse config files is DEPRECATED. '
- . 'Please install YAML::XS for proper YAML support'
- unless $NO_YAML_XS_WARNING;
-
eval { require YAML::Syck; YAML::Syck->VERSION( '0.70' ) };
unless ( $@ ) {
open( my $fh, $file ) or die $!;
=head1 COPYRIGHT AND LICENSE
-Copyright 2006-2011 by Brian Cassidy
+Copyright 2006-2013 by Brian Cassidy
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
use_ok( 'Config::Any' );
use_ok( 'Config::Any::YAML' );
-$Config::Any::YAML::NO_YAML_XS_WARNING = 1;
{
my @warnings;
use Config::Any::XML;
use Config::Any::YAML;
-$Config::Any::YAML::NO_YAML_XS_WARNING = 1;
-
our %ext_map = (
conf => 'Config::Any::General',
ini => 'Config::Any::INI',
use Test::More;
use Config::Any::YAML;
-$Config::Any::YAML::NO_YAML_XS_WARNING = 1;
-
if ( !Config::Any::YAML->is_supported ) {
plan skip_all => 'YAML format not supported';
}
use Config::Any;
use Config::Any::YAML;
-$Config::Any::YAML::NO_YAML_XS_WARNING = 1;
-
my $file = 't/multi/conf.yml';
my @expect = (
{ name => 'TestApp',