[Catalyst-commits] r14052 - in Catalyst-Plugin-Authentication/0.10000/trunk: . lib/Catalyst/Plugin t/author t/lib

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Fri Jul 29 08:03:53 GMT 2011


Author: t0m
Date: 2011-07-29 08:03:52 +0000 (Fri, 29 Jul 2011)
New Revision: 14052

Added:
   Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestEngineRole.pm
Modified:
   Catalyst-Plugin-Authentication/0.10000/trunk/
   Catalyst-Plugin-Authentication/0.10000/trunk/Changes
   Catalyst-Plugin-Authentication/0.10000/trunk/MANIFEST.SKIP
   Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin/Authentication.pm
   Catalyst-Plugin-Authentication/0.10000/trunk/t/author/notabs.t
   Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp1.pm
   Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp2.pm
Log:
Checking in changes prior to tagging of version 0.10018.

Changelog diff is:

Index: Changes
===================================================================
--- Changes	(revision 14000)
+++ Changes	(working copy)
@@ -1,5 +1,8 @@
 Revision history for Perl extension Catalyst::Plugin::Authentication
 
+0.10018 29 Jul 2011
+     - Fix failing tests with the new PSGI Catalyst dev release
+
 0.10017 24 Jan 2010
      - Fix failing tests with the new PSGI Catalyst dev release
 



Property changes on: Catalyst-Plugin-Authentication/0.10000/trunk
___________________________________________________________________
Modified: svn:ignore
   - MANIFEST
README
META.yml
.shipit
blib
pm_to_blib
inc
Makefile
Makefile.old

   + Catalyst-Plugin-Authentication-*
MANIFEST
README
MYMETA.yml
META.yml
blib
pm_to_blib
inc
Makefile
Makefile.old


Modified: Catalyst-Plugin-Authentication/0.10000/trunk/Changes
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/Changes	2011-07-16 18:44:12 UTC (rev 14051)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/Changes	2011-07-29 08:03:52 UTC (rev 14052)
@@ -1,5 +1,8 @@
 Revision history for Perl extension Catalyst::Plugin::Authentication
 
+0.10018 29 Jul 2011
+     - Fix failing tests with the new PSGI Catalyst dev release
+
 0.10017 24 Jan 2010
      - Fix failing tests with the new PSGI Catalyst dev release
 

Modified: Catalyst-Plugin-Authentication/0.10000/trunk/MANIFEST.SKIP
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/MANIFEST.SKIP	2011-07-16 18:44:12 UTC (rev 14051)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/MANIFEST.SKIP	2011-07-29 08:03:52 UTC (rev 14052)
@@ -6,6 +6,7 @@
 \B\.git\b
 
 # Avoid Makemaker generated and utility files.
+\bMYMETA.yml$
 \bMakefile$
 \bblib
 \bMakeMaker-\d

Modified: Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin/Authentication.pm
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin/Authentication.pm	2011-07-16 18:44:12 UTC (rev 14051)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/lib/Catalyst/Plugin/Authentication.pm	2011-07-29 08:03:52 UTC (rev 14052)
@@ -12,7 +12,7 @@
 use Class::Inspector;
 use Catalyst::Authentication::Realm;
 
-our $VERSION = "0.10017";
+our $VERSION = "0.10018";
 
 sub set_authenticated {
     my ( $c, $user, $realmname ) = @_;

Modified: Catalyst-Plugin-Authentication/0.10000/trunk/t/author/notabs.t
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/t/author/notabs.t	2011-07-16 18:44:12 UTC (rev 14051)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/t/author/notabs.t	2011-07-29 08:03:52 UTC (rev 14052)
@@ -1,5 +1,6 @@
 use strict;
 use warnings;
+use Test::More;
 use Test::NoTabs;
 
 all_perl_files_ok;

Modified: Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp1.pm
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp1.pm	2011-07-16 18:44:12 UTC (rev 14051)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp1.pm	2011-07-29 08:03:52 UTC (rev 14052)
@@ -6,7 +6,9 @@
 /;
 
 use base qw/Catalyst/;
-__PACKAGE__->engine_class('RemoteTestEngine');
+unless ($Catalyst::VERSION >= 5.89000) {
+    __PACKAGE__->engine_class('RemoteTestEngine');
+}
 __PACKAGE__->config(
     'Plugin::Authentication' => {
         default_realm => 'remote',
@@ -25,8 +27,11 @@
         },
     },
 );
-
 __PACKAGE__->setup;
+if ($Catalyst::VERSION >= 5.89000) {
+    require RemoteTestEngineRole;
+    RemoteTestEngineRole->meta->apply(__PACKAGE__->engine);
+}
 
 1;
 

Modified: Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp2.pm
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp2.pm	2011-07-16 18:44:12 UTC (rev 14051)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestApp2.pm	2011-07-29 08:03:52 UTC (rev 14052)
@@ -7,7 +7,9 @@
 /;
 
 use base qw/Catalyst/;
-__PACKAGE__->engine_class('RemoteTestEngine');
+unless ($Catalyst::VERSION >= 5.89000) {
+    __PACKAGE__->engine_class('RemoteTestEngine');
+}
 __PACKAGE__->config(
     'Plugin::Authentication' => {
         default_realm => 'remote',
@@ -28,8 +30,11 @@
         },
     },
 );
-
 __PACKAGE__->setup;
+if ($Catalyst::VERSION >= 5.89000) {
+    require RemoteTestEngineRole;
+    RemoteTestEngineRole->meta->apply(__PACKAGE__->engine);
+}
 
 1;
 

Added: Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestEngineRole.pm
===================================================================
--- Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestEngineRole.pm	                        (rev 0)
+++ Catalyst-Plugin-Authentication/0.10000/trunk/t/lib/RemoteTestEngineRole.pm	2011-07-29 08:03:52 UTC (rev 14052)
@@ -0,0 +1,15 @@
+package RemoteTestEngineRole;
+use Moose::Role;
+require Catalyst;
+
+around env => sub {
+    my ($orig, $self, @args) = @_;
+    my $e = $self->$orig(@args);
+
+    $e->{REMOTE_USER} = $RemoteTestEngine::REMOTE_USER;
+    $e->{SSL_CLIENT_S_DN} = $RemoteTestEngine::SSL_CLIENT_S_DN;
+    return $e;
+};
+
+1;
+




More information about the Catalyst-commits mailing list