From: Mark Grimes Date: Thu, 28 Mar 2013 15:39:13 +0000 (-0400) Subject: Fixes version comparison to work with developer release numbers X-Git-Tag: 5.90030~5^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=8605f3afde2df9cac31410d6f904c0929f3cba67 Fixes version comparison to work with developer release numbers --- diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 3b9b3d6..4870bf1 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -702,7 +702,7 @@ sub _check_depreciated_dispatch_type { . " Use Chained methods or install the standalone\n" . " Catalyst::DispatchType::Regex if necessary.\n" ); } elsif ( !defined $Catalyst::DispatchType::Regex::VERSION - || $Catalyst::DispatchType::Regex::VERSION <= 5.90020 ) { + || $Catalyst::DispatchType::Regex::VERSION le '5.90020' ) { # We loaded the old core version of the Regex module this will break warn( "The $key DispatchType has been removed from Catalyst core.\n" . " An old version of the core Catalyst::DispatchType::Regex\n"