add check to make sure finalize_session() was actually called
[catagits/Catalyst-Plugin-Session.git] / Build.PL
index cf411be..ebedff8 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -6,17 +6,48 @@ my $build = Module::Build->new(
     license            => 'perl',
     module_name        => 'Catalyst::Plugin::Session',
     requires           => {
-        'perl'     => '5.8.1',
-        'Catalyst' => '5.50',
+        'perl'              => '5.8.1',
+        'Catalyst'          => '5.49',
+        'Test::MockObject'  => '1.01',
+        'Digest'            => 0,
+        'Object::Signature' => 0,
+        'File::Temp'        => 0,
+        'File::Spec'        => 0,
+        'Test::Deep'        => 0,
+        'Test::More'        => 0,
+        'Test::Exception'   => 0,
     },
     reccomends => {
 
         # 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
+}