[Catalyst-commits] r9241 - in
trunk/Catalyst-Plugin-Session-State-Cookie: .
lib/Catalyst/Plugin/Session/State
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sun Feb 8 06:37:05 GMT 2009
Author: t0m
Date: 2009-02-08 06:37:04 +0000 (Sun, 08 Feb 2009)
New Revision: 9241
Modified:
trunk/Catalyst-Plugin-Session-State-Cookie/Changes
trunk/Catalyst-Plugin-Session-State-Cookie/Makefile.PL
trunk/Catalyst-Plugin-Session-State-Cookie/lib/Catalyst/Plugin/Session/State/Cookie.pm
Log:
Fix changelog, switch from NEXT to MRO::Compat
Modified: trunk/Catalyst-Plugin-Session-State-Cookie/Changes
===================================================================
--- trunk/Catalyst-Plugin-Session-State-Cookie/Changes 2009-02-08 02:07:46 UTC (rev 9240)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/Changes 2009-02-08 06:37:04 UTC (rev 9241)
@@ -1,10 +1,13 @@
Revision history for Perl extension Catalyst::Plugin::Session::State::Cookie
-
-0.10 2008-12-02
+0.10 2009-02-08
- POD addition.
+ - Switch from NEXT to MRO::Compat
-0.09 ??? Somebody forgot to Changes this release.
+0.09 2007-10-08
+ - Bump dependencies so that streaming a file also causes the cookie to
+ be updated.
+ - Add tests for this
0.08 2007-09-14
- Fix live test with Mech version 0.37+
Modified: trunk/Catalyst-Plugin-Session-State-Cookie/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-Session-State-Cookie/Makefile.PL 2009-02-08 02:07:46 UTC (rev 9240)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/Makefile.PL 2009-02-08 06:37:04 UTC (rev 9241)
@@ -6,6 +6,7 @@
requires 'Catalyst' => '5.7010';
requires 'Catalyst::Plugin::Session' => '0.19';
requires 'Test::MockObject' => '1.01';
+requires 'MRO::Compat';
auto_install;
WriteAll;
Modified: trunk/Catalyst-Plugin-Session-State-Cookie/lib/Catalyst/Plugin/Session/State/Cookie.pm
===================================================================
--- trunk/Catalyst-Plugin-Session-State-Cookie/lib/Catalyst/Plugin/Session/State/Cookie.pm 2009-02-08 02:07:46 UTC (rev 9240)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/lib/Catalyst/Plugin/Session/State/Cookie.pm 2009-02-08 06:37:04 UTC (rev 9241)
@@ -4,7 +4,7 @@
use strict;
use warnings;
-use NEXT;
+use MRO::Compat;
use Catalyst::Utils ();
our $VERSION = "0.10";
@@ -14,7 +14,7 @@
sub setup_session {
my $c = shift;
- $c->NEXT::setup_session(@_);
+ $c->maybe::next::method(@_);
$c->config->{session}{cookie_name}
||= Catalyst::Utils::appprefix($c) . '_session';
@@ -27,7 +27,7 @@
$c->update_session_cookie( $c->make_session_cookie( $sid ) );
}
- $c->NEXT::extend_session_id( $sid, $expires );
+ $c->maybe::next::method( $sid, $expires );
}
sub set_session_id {
@@ -35,7 +35,7 @@
$c->update_session_cookie( $c->make_session_cookie( $sid ) );
- return $c->NEXT::set_session_id($sid);
+ return $c->maybe::next::method($sid);
}
sub update_session_cookie {
@@ -79,14 +79,14 @@
sub calc_expiry { # compat
my $c = shift;
- $c->NEXT::calc_expiry( @_ ) || $c->calculate_session_cookie_expires( @_ );
+ $c->maybe::next::method( @_ ) || $c->calculate_session_cookie_expires( @_ );
}
sub calculate_session_cookie_expires {
my $c = shift;
my $cfg = $c->config->{session};
- my $value = $c->NEXT::calculate_session_cookie_expires(@_);
+ my $value = $c->maybe::next::method(@_);
return $value if $value;
if ( exists $cfg->{cookie_expires} ) {
@@ -119,7 +119,7 @@
return $sid if $sid;
}
- $c->NEXT::get_session_id(@_);
+ $c->maybe::next::method(@_);
}
sub delete_session_id {
@@ -129,7 +129,7 @@
$c->update_session_cookie( $c->make_session_cookie( $sid, expires => 0 ) );
- $c->NEXT::delete_session_id($sid);
+ $c->maybe::next::method($sid);
}
__PACKAGE__
More information about the Catalyst-commits
mailing list