more session finalization cleanups
[catagits/Catalyst-Plugin-Session.git] / Build.PL
index 925dc91..ebedff8 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -21,11 +21,33 @@ my $build = Module::Build->new(
 
         # for live_app.t
         'Test::WWW::Mechanize::Catalyst'    => 0,
-        'Catalyst::Plugin::Session::Cookie' => 0,
-
+        'Catalyst::Plugin::Session::Cookie' => '0.03',
     },
     create_readme => 1,
     sign          => 1,
 );
 $build->create_build_script;
 
+
+my %state = (
+    Cookie => 0.03,
+    URI    => 0.02,
+);
+
+foreach my $module (keys %state) {
+    eval "require Catalyst::Plugin::Session::State::$module" and
+    eval { "Catalyst::Plugin::Session::State::$module"->VERSION($state{$module}) }
+        || warn <<WARN
+
+********** NOTE **********
+**************************
+
+Catalyst::Plugin::Session::State::$module must also be updated!
+
+The currently installed version is *not* compatible with this version of
+Catalyst::Plugin::Session!
+
+**************************
+**************************
+WARN
+}