Bump versions for dev release. Clean up other mentions of config->{session} v0.26_01
Tomas Doran [Tue, 6 Oct 2009 08:41:38 +0000 (08:41 +0000)]
Changes
lib/Catalyst/Plugin/Session.pm
lib/Catalyst/Plugin/Session/Store.pm
lib/Catalyst/Plugin/Session/Test/Store.pm
lib/Catalyst/Plugin/Session/Tutorial.pod

diff --git a/Changes b/Changes
index 4f88dc4..5d23b23 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
 Revision history for Perl extension Catalyst::Plugin::Session
 
+0.26_01 2009-10-06
         - Move actions out of the root application class in tests as this
           is deprecated.
         - Change configuration key to 'Plugin::Session' by default. The
index 2549f66..702299d 100644 (file)
@@ -13,7 +13,8 @@ use Carp;
 
 use namespace::clean -except => 'meta';
 
-our $VERSION = '0.26';
+our $VERSION = '0.26_01';
+$VERSION = eval $VERSION;
 
 my @session_data_accessors; # used in delete_session
 
index 8f07055..2631902 100644 (file)
@@ -102,7 +102,7 @@ are not checked, and are assumed to be OK. Missing values are not errors.
 =head2 Auto-Expiry on the Backend
 
 Storage plugins are encouraged to use C<< $c->session_expires >>, C<<
-$c->config->{session}{expires} >>, or the storage of the
+$c->config('Plugin::Session' => { expires => $val }) >>, or the storage of the
 C<expires:$sessionid> key to perform more efficient expiration, but only
 for the key prefixes C<session>, C<flash> and C<expires>.
 
index 7c4a715..52e6c96 100644 (file)
@@ -90,7 +90,7 @@ sub import {
             ok( !$c->session_delete_reason, "no reason for deletion" );
         }
 
-        @{ __PACKAGE__->config->{session} }{ keys %$cfg } = values %$cfg;
+        @{ __PACKAGE__->config->{'Plugin::Session'} }{ keys %$cfg } = values %$cfg;
 
         { __PACKAGE__->setup; }; # INSANE HACK 
     }
@@ -126,9 +126,9 @@ sub import {
             ok( !$c->session->{magic}, "no saved data" );
         }
 
-        __PACKAGE__->config->{session}{expires} = 0;
+        __PACKAGE__->config->{'Plugin::Session'}{expires} = 0;
 
-        @{ __PACKAGE__->config->{session} }{ keys %$cfg } = values %$cfg;
+        @{ __PACKAGE__->config->{'Plugin::Session'} }{ keys %$cfg } = values %$cfg;
 
         { __PACKAGE__->setup; }; # INSANE HACK
     }
index 93b75fb..a2b74a8 100644 (file)
@@ -109,7 +109,7 @@ For the plugins above we don't need any configuration at all - they should work
 out of the box, but suppose we did want to change some things around, it'll
 look like this:
 
-    MyApp->config( session => {
+    MyApp->config( 'Plugin::Session' => {
         cookie_name => "my_fabulous_cookie",
         storage     => "/path/to/store_data_file",
     });