[Catalyst-commits] r10127 - in trunk/Catalyst-Plugin-Session-State-Cookie: . lib/Catalyst/Plugin/Session/State t t/lib

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Wed May 13 20:25:56 GMT 2009


Author: t0m
Date: 2009-05-13 20:25:56 +0000 (Wed, 13 May 2009)
New Revision: 10127

Added:
   trunk/Catalyst-Plugin-Session-State-Cookie/.shipit
   trunk/Catalyst-Plugin-Session-State-Cookie/t/lib/
   trunk/Catalyst-Plugin-Session-State-Cookie/t/lib/CookieTestApp.pm
Modified:
   trunk/Catalyst-Plugin-Session-State-Cookie/
   trunk/Catalyst-Plugin-Session-State-Cookie/Changes
   trunk/Catalyst-Plugin-Session-State-Cookie/MANIFEST.SKIP
   trunk/Catalyst-Plugin-Session-State-Cookie/lib/Catalyst/Plugin/Session/State/Cookie.pm
   trunk/Catalyst-Plugin-Session-State-Cookie/t/live_app.t
Log:
Checking in changes prior to tagging of version 0.11.  Changelog diff is:

Index: Changes
===================================================================
--- Changes	(revision 10057)
+++ Changes	(working copy)
@@ -1,5 +1,9 @@
 Revision history for Perl extension Catalyst::Plugin::Session::State::Cookie
 
+0.11    2009-05-13
+        - Change TestApp so that the application is in t/lib, to make it easier
+          for Catalyst to force our package to be immutable.
+
 0.10    2009-02-08
         - POD addition.
         - Switch from NEXT to MRO::Compat



Property changes on: trunk/Catalyst-Plugin-Session-State-Cookie
___________________________________________________________________
Name: svn:ignore
   - META.yml
Makefile
blib
inc
pm_to_blib

   + MANIFEST
META.yml
Makefile
blib
inc
pm_to_blib


Added: trunk/Catalyst-Plugin-Session-State-Cookie/.shipit
===================================================================
--- trunk/Catalyst-Plugin-Session-State-Cookie/.shipit	                        (rev 0)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/.shipit	2009-05-13 20:25:56 UTC (rev 10127)
@@ -0,0 +1,5 @@
+# auto-generated shipit config file.
+steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN
+
+svn.tagpattern = http://dev.catalyst.perl.org/repos/Catalyst/tags/Catalyst-Plugin-Session-State-Cookie/%v
+CheckChangeLog.files = Changes

Modified: trunk/Catalyst-Plugin-Session-State-Cookie/Changes
===================================================================
--- trunk/Catalyst-Plugin-Session-State-Cookie/Changes	2009-05-13 20:14:44 UTC (rev 10126)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/Changes	2009-05-13 20:25:56 UTC (rev 10127)
@@ -1,5 +1,9 @@
 Revision history for Perl extension Catalyst::Plugin::Session::State::Cookie
 
+0.11    2009-05-13
+        - Change TestApp so that the application is in t/lib, to make it easier
+          for Catalyst to force our package to be immutable.
+
 0.10    2009-02-08
         - POD addition.
         - Switch from NEXT to MRO::Compat

Modified: trunk/Catalyst-Plugin-Session-State-Cookie/MANIFEST.SKIP
===================================================================
--- trunk/Catalyst-Plugin-Session-State-Cookie/MANIFEST.SKIP	2009-05-13 20:14:44 UTC (rev 10126)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/MANIFEST.SKIP	2009-05-13 20:25:56 UTC (rev 10127)
@@ -32,3 +32,6 @@
 
 # No tarballs!
 \.gz$
+
+\.shipit$
+

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-05-13 20:14:44 UTC (rev 10126)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/lib/Catalyst/Plugin/Session/State/Cookie.pm	2009-05-13 20:25:56 UTC (rev 10127)
@@ -7,7 +7,7 @@
 use MRO::Compat;
 use Catalyst::Utils ();
 
-our $VERSION = "0.10";
+our $VERSION = "0.11";
 
 BEGIN { __PACKAGE__->mk_accessors(qw/_deleted_session_id/) }
 

Added: trunk/Catalyst-Plugin-Session-State-Cookie/t/lib/CookieTestApp.pm
===================================================================
--- trunk/Catalyst-Plugin-Session-State-Cookie/t/lib/CookieTestApp.pm	                        (rev 0)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/t/lib/CookieTestApp.pm	2009-05-13 20:25:56 UTC (rev 10127)
@@ -0,0 +1,32 @@
+package # Hide from PAUSE
+  CookieTestApp;
+use Catalyst qw/
+  Session
+  Session::Store::Dummy
+  Session::State::Cookie
+  /;
+
+sub page : Local {
+    my ( $self, $c ) = @_;
+    $c->res->body( "Hi! hit number " . ++$c->session->{counter} );
+}
+
+sub stream : Local {
+    my ( $self, $c ) = @_;
+    my $count = ++$c->session->{counter};
+    $c->res->write("hit number ");
+    $c->res->write($count);
+}
+
+sub deleteme : Local {
+    my ( $self, $c ) = @_;
+    my $id = $c->get_session_id;
+    $c->delete_session;
+    my $id2 = $c->get_session_id;
+    $c->res->body( $id ne ( $id2 || '' ) );
+}
+
+__PACKAGE__->setup;
+
+1;
+

Modified: trunk/Catalyst-Plugin-Session-State-Cookie/t/live_app.t
===================================================================
--- trunk/Catalyst-Plugin-Session-State-Cookie/t/live_app.t	2009-05-13 20:14:44 UTC (rev 10126)
+++ trunk/Catalyst-Plugin-Session-State-Cookie/t/live_app.t	2009-05-13 20:25:56 UTC (rev 10127)
@@ -3,6 +3,9 @@
 use strict;
 use warnings;
 
+use FindBin qw/$Bin/;
+use lib "$Bin/lib";
+
 use Test::More;
 
 BEGIN {
@@ -14,38 +17,6 @@
     plan 'no_plan';
 }
 
-{
-
-    package CookieTestApp;
-    use Catalyst qw/
-      Session
-      Session::Store::Dummy
-      Session::State::Cookie
-      /;
-
-    sub page : Local {
-        my ( $self, $c ) = @_;
-        $c->res->body( "Hi! hit number " . ++$c->session->{counter} );
-    }
-
-    sub stream : Local {
-        my ( $self, $c ) = @_;
-        my $count = ++$c->session->{counter};
-        $c->res->write("hit number ");
-        $c->res->write($count);
-    }
-
-    sub deleteme : Local {
-        my ( $self, $c ) = @_;
-        my $id = $c->get_session_id;
-        $c->delete_session;
-        my $id2 = $c->get_session_id;
-        $c->res->body( $id ne ( $id2 || '' ) );
-    }
-
-    __PACKAGE__->setup;
-}
-
 use Test::WWW::Mechanize::Catalyst qw/CookieTestApp/;
 
 my $m = Test::WWW::Mechanize::Catalyst->new;




More information about the Catalyst-commits mailing list