releng for C::P::Session
Yuval Kogman [Mon, 31 Jul 2006 11:19:06 +0000 (11:19 +0000)]
Build.PL
Changes
lib/Catalyst/Plugin/Session.pm
t/live_app.t

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
+}
diff --git a/Changes b/Changes
index 2a60d4f..78f2a1c 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 Revision history for Perl extension Catalyst::Plugin::Session
 
+0.07
+        - Make build tool complain loudly on incompatible versions of state
+          plugins.
+
 0.06
         - Change State plugin API to be pull oriented
         - Lazify more correctly (mostly performance improvements)
index 8df8c4c..3b8d60f 100644 (file)
@@ -12,7 +12,7 @@ use Digest              ();
 use overload            ();
 use Object::Signature   ();
 
-our $VERSION = "0.06";
+our $VERSION = "0.07";
 
 my @session_data_accessors; # used in delete_session
 BEGIN {
index 63f69cb..f59fbab 100644 (file)
@@ -6,9 +6,9 @@ use warnings;
 use Test::More;
 
 BEGIN {
-    eval { require Catalyst::Plugin::Session::State::Cookie }
+    eval { require Catalyst::Plugin::Session::State::Cookie; Catalyst::Plugin::Session::State::Cookie->VERSION(0.03) }
       or plan skip_all =>
-      "Catalyst::Plugin::Session::State::Cookie is required for this test";
+      "Catalyst::Plugin::Session::State::Cookie 0.03 or higher is required for this test";
 
     eval { require Test::WWW::Mechanize::Catalyst }
       or plan skip_all =>