From: Tomas Doran Date: Tue, 6 Oct 2009 08:41:38 +0000 (+0000) Subject: Bump versions for dev release. Clean up other mentions of config->{session} X-Git-Tag: v0.26_01^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session.git;a=commitdiff_plain;h=9a50355f0e86b8301d4b17adff7ce8bba8f42ade Bump versions for dev release. Clean up other mentions of config->{session} --- diff --git a/Changes b/Changes index 4f88dc4..5d23b23 100644 --- 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 diff --git a/lib/Catalyst/Plugin/Session.pm b/lib/Catalyst/Plugin/Session.pm index 2549f66..702299d 100644 --- a/lib/Catalyst/Plugin/Session.pm +++ b/lib/Catalyst/Plugin/Session.pm @@ -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 diff --git a/lib/Catalyst/Plugin/Session/Store.pm b/lib/Catalyst/Plugin/Session/Store.pm index 8f07055..2631902 100644 --- a/lib/Catalyst/Plugin/Session/Store.pm +++ b/lib/Catalyst/Plugin/Session/Store.pm @@ -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 key to perform more efficient expiration, but only for the key prefixes C, C and C. diff --git a/lib/Catalyst/Plugin/Session/Test/Store.pm b/lib/Catalyst/Plugin/Session/Test/Store.pm index 7c4a715..52e6c96 100644 --- a/lib/Catalyst/Plugin/Session/Test/Store.pm +++ b/lib/Catalyst/Plugin/Session/Test/Store.pm @@ -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 } diff --git a/lib/Catalyst/Plugin/Session/Tutorial.pod b/lib/Catalyst/Plugin/Session/Tutorial.pod index 93b75fb..a2b74a8 100644 --- a/lib/Catalyst/Plugin/Session/Tutorial.pod +++ b/lib/Catalyst/Plugin/Session/Tutorial.pod @@ -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", });