X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=lib%2FConfig%2FAny.pm;h=c7164cd0e97ce9141180547274771a60328db940;hp=16dcd1b70bfab03640f711902e0895bc17af6a7f;hb=ee6cd09bc61ac649cd49e630588815c232a9ea68;hpb=0ac17764e57cb8e9593dea270d876758e759ca64 diff --git a/lib/Config/Any.pm b/lib/Config/Any.pm index 16dcd1b..c7164cd 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.16'; +our $VERSION = '0.20'; =head1 NAME @@ -142,7 +142,9 @@ sub _load { } # 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 ); @@ -281,7 +283,7 @@ parameter to those methods. sub extensions { my $class = shift; my @ext - = map { $_->extensions } grep { $_->is_supported } $class->plugins; + = map { $_->extensions } $class->plugins; return wantarray ? @ext : \@ext; }