Checking in changes prior to tagging of version 0.22. Changelog diff is: v0.22
Tomas Doran [Wed, 13 May 2009 20:57:29 +0000 (20:57 +0000)]
Index: Changes
===================================================================
--- Changes (revision 10057)
+++ Changes (working copy)
@@ -1,5 +1,17 @@
Revision history for Perl extension Catalyst::Plugin::Session

+0.22 2009-05-13
+        - INSANE HACK to ensure B::Hooks::EndOfScope inlines us a new method right now
+          in Catalyst::Plugin::Session::Test::Store for Catalyst 5.80004 compatibility.
+
+          This change does not in any way affect normal users - it is just due to the
+          fairly crazy way that Catalyst::Plugin::Session::Test::Store works, and that
+          module is _only_ used for unit testing session store plugins pre-installation.
+
+          Session::Test::Store should be replaced with a more sane solution, and other
+          CPAN modules using it moved away from using it, but this change keeps stops
+          new Catalyst breaking other distributions right now.
+
0.21 2009-04-30
- Hide the internal packages in Catalyst::Plugin::Session::Test::Store from PAUSE.
- Convert from CAF to Moose with Moosex::Emulate::Class::Accessor::Fast

Changes
lib/Catalyst/Plugin/Session.pm
lib/Catalyst/Plugin/Session/Test/Store.pm

diff --git a/Changes b/Changes
index 328c2e3..b668166 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,17 @@
 Revision history for Perl extension Catalyst::Plugin::Session
 
+0.22 2009-05-13
+        - INSANE HACK to ensure B::Hooks::EndOfScope inlines us a new method right now
+          in Catalyst::Plugin::Session::Test::Store for Catalyst 5.80004 compatibility. 
+
+          This change does not in any way affect normal users - it is just due to the
+          fairly crazy way that Catalyst::Plugin::Session::Test::Store works, and that
+          module is _only_ used for unit testing session store plugins pre-installation.
+
+          Session::Test::Store should be replaced with a more sane solution, and other
+          CPAN modules using it moved away from using it, but this change keeps stops
+          new Catalyst breaking other distributions right now.
+
 0.21 2009-04-30
         - Hide the internal packages in Catalyst::Plugin::Session::Test::Store from PAUSE.
         - Convert from CAF to Moose with Moosex::Emulate::Class::Accessor::Fast
index 9fff66e..b038778 100644 (file)
@@ -13,7 +13,7 @@ use Carp;
 
 use namespace::clean -except => 'meta';
 
-our $VERSION = '0.21';
+our $VERSION = '0.22';
 
 my @session_data_accessors; # used in delete_session
 
index 89490c9..7c4a715 100644 (file)
@@ -92,7 +92,7 @@ sub import {
 
         @{ __PACKAGE__->config->{session} }{ keys %$cfg } = values %$cfg;
 
-        __PACKAGE__->setup;
+        { __PACKAGE__->setup; }; # INSANE HACK 
     }
 
     {
@@ -130,7 +130,7 @@ sub import {
 
         @{ __PACKAGE__->config->{session} }{ keys %$cfg } = values %$cfg;
 
-        __PACKAGE__->setup;
+        { __PACKAGE__->setup; }; # INSANE HACK
     }
 
     use Test::More;