requires 'Module::Pluggable' => '3.01';
+if (can_use('Config::General') && !can_use('Config::General', '2.47')) {
+ requires 'Config::General' => '2.47';
+}
+
test_requires 'Test::More';
+if ($Module::Install::AUTHOR) {
+ Meta->{values}{requires} = [ grep {
+ $_->[0] ne 'Config::General'
+ } @{ Meta->{values}{requires} } ];
+}
+
resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Config-Any/';
WriteAll;
$args->{ -ConfigFile } = $file;
+ require Config::General;
+
+ if (Config::General->VERSION < 2.47) {
+ die "Config::General version 2.47 or greater required";
+ }
+
$args->{ -ForceArray } = 1 unless exists $args->{ -ForceArray };
- require Config::General;
my $configfile = Config::General->new( %$args );
my $config = { $configfile->getall };