foo v0.15
Yuval Kogman [Sun, 24 Jun 2007 15:52:53 +0000 (15:52 +0000)]
Build.PL [deleted file]
Changes
Makefile.PL [new file with mode: 0644]

diff --git a/Build.PL b/Build.PL
deleted file mode 100644 (file)
index ebedff8..0000000
--- a/Build.PL
+++ /dev/null
@@ -1,53 +0,0 @@
-use strict;
-use Module::Build;
-
-my $build = Module::Build->new(
-    create_makefile_pl => 'traditional',
-    license            => 'perl',
-    module_name        => 'Catalyst::Plugin::Session',
-    requires           => {
-        '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.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 bfd0362..66f0d4b 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,12 +1,10 @@
 Revision history for Perl extension Catalyst::Plugin::Session
 
-0.16    2007-05-27
-        - Changed finalize() to redispatch before saving session
-          so other finalize methods still have access to it.
-     
-0.15    2007-04-04 23:10:00
+0.15
         - Fix the bug that caused sessions to expire immediately when another
           session was deleted previously in the same request cycle
+        - Changed finalize() to redispatch before saving session
+          so other finalize methods still have access to it.
 
 0.14    2007-01-31 12:19:00
         - Disable verify_address.
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644 (file)
index 0000000..8cb41ed
--- /dev/null
@@ -0,0 +1,57 @@
+use ExtUtils::MakeMaker;
+
+my %state = (
+    Cookie => 0.03,
+    URI    => 0.02,
+);
+
+my @extra;
+
+foreach my $module (keys %state) {
+    unless ( 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!
+
+The updated versions hae been added to the prerequisites.
+
+**************************
+**************************
+WARN
+
+        push @extra, "Catalyst::Plugin::Session::State::$module" => $state{$module};
+    }
+}
+
+WriteMakefile
+(
+          'NAME' => 'Catalyst::Plugin::Session',
+          'VERSION_FROM' => 'lib/Catalyst/Plugin/Session.pm',
+          'PREREQ_PM' => {
+                           'Catalyst' => '5.49',
+                           'Digest' => '0',
+                           'File::Spec' => '0',
+                           'File::Temp' => '0',
+                           'Object::Signature' => '0',
+                           'Test::Deep' => '0',
+                           'Test::Exception' => '0',
+                           'Test::MockObject' => '1.01',
+                           'Test::More' => '0',
+                           'Tie::RefHash' => '1.34',
+                           @extra,
+                         },
+          'INSTALLDIRS' => 'site',
+          'EXE_FILES' => [],
+          'SIGN'      => 1,
+          'PL_FILES'  => {}
+        )
+;
+
+