Revision history for Config-Any
+0.17 XXX
+ - ensure require() happens against plugin specified in force_plugins.
+
0.16 Mon 17 Nov 2008
- fix up branches test which did not handle the errors thrown by
changes from the last release (RT #40948)
use Carp;
use Module::Pluggable::Object ();
-our $VERSION = '0.16';
+our $VERSION = '0.17';
=head1 NAME
}
# figure out what plugins we're using
- my @plugins = $force ? @{ $args->{ force_plugins } } : $class->plugins;
+ my @plugins = $force
+ ? map { eval "require $_;"; $_; } @{ $args->{ force_plugins } }
+ : $class->plugins;
# map extensions if we have to
my ( %extension_lut, $extension_re );
--- /dev/null
+use strict;
+use warnings;
+
+use Test::More tests => 2;
+
+use Config::Any;
+
+{
+ my $result = eval {
+ Config::Any->load_files(
+ { files => [ 't/conf/conf.pl' ], force_plugins => [ 'Config::Any::Perl' ] } );
+ };
+
+ ok( $result, 'config loaded' );
+ ok( !$@, 'no error thrown' );
+}