Checking in changes prior to tagging of version 0.30. Changelog diff is:
[catagits/Catalyst-Plugin-Session.git] / Makefile.PL
index 5841471..e9482f6 100644 (file)
@@ -1,4 +1,4 @@
-use inc::Module::Install 0.68;
+use inc::Module::Install 0.87;
 
 if ( -e 'MANIFEST.SKIP' ) {
     system( 'pod2text lib/Catalyst/Plugin/Session.pm > README' )
@@ -12,7 +12,7 @@ perl_version '5.008';
 name 'Catalyst-Plugin-Session';
 all_from 'lib/Catalyst/Plugin/Session.pm';
 
-requires 'Catalyst::Runtime' => '5.7010';
+requires 'Catalyst::Runtime' => '5.71001';
 requires 'namespace::clean' => '0.10';
 requires 'Digest';
 requires 'File::Spec';
@@ -30,7 +30,8 @@ requires 'Test::More';
 
 test_requires 'Test::Deep';
 test_requires 'Test::Exception';
-test_requires 'Test::MockObject' => '1.01';
+
+resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Plugin-Session/0.00/trunk/';
 
 WriteAll;
 
@@ -41,13 +42,15 @@ sub is_upgrading_needed {
     );
 
     foreach my $module (keys %state) {
-        if ( eval "require Catalyst::Plugin::Session::State::$module" and
-        ${"Catalyst::Plugin::Session::State::${module}::VERSION"} < $state{$module} ) {
-            warn <<WARN;
+        my $package = 'Catalyst::Plugin::Session::State::' . $module;
 
+        next if not eval "require $package;";
+
+        if( not eval { $package->VERSION( $state{ $module } ); } ) {
+            warn <<WARN;
 ********** NOTE **********
 
-Catalyst::Plugin::Session::State::$module must also be updated!
+$package must also be updated!
 
 The currently installed version is *not* compatible with this version of
 Catalyst::Plugin::Session!