[Catalyst-commits] r13463 - trunk/Config-Any/lib/Config/Any

hobbs at dev.catalyst.perl.org hobbs at dev.catalyst.perl.org
Mon Aug 2 10:44:00 GMT 2010


Author: hobbs
Date: 2010-08-02 10:44:00 +0000 (Mon, 02 Aug 2010)
New Revision: 13463

Modified:
   trunk/Config-Any/lib/Config/Any/General.pm
Log:
Use Config::Any's friendly error message for required version early on


Modified: trunk/Config-Any/lib/Config/Any/General.pm
===================================================================
--- trunk/Config-Any/lib/Config/Any/General.pm	2010-08-02 10:39:25 UTC (rev 13462)
+++ trunk/Config-Any/lib/Config/Any/General.pm	2010-08-02 10:44:00 UTC (rev 13463)
@@ -52,10 +52,6 @@
 
     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 };
 
     my $configfile = Config::General->new( %$args );
@@ -84,7 +80,7 @@
 
 =cut
 
-sub requires_all_of { 'Config::General' }
+sub requires_all_of { [ 'Config::General', '2.47' ] }
 
 =head1 AUTHOR
 




More information about the Catalyst-commits mailing list