[Catalyst-commits] r14245 - in Catalyst-Plugin-RequireSSL/trunk: . lib/Catalyst/Plugin

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Sat Jan 14 19:08:25 GMT 2012


Author: t0m
Date: 2012-01-14 19:08:25 +0000 (Sat, 14 Jan 2012)
New Revision: 14245

Modified:
   Catalyst-Plugin-RequireSSL/trunk/Changes
   Catalyst-Plugin-RequireSSL/trunk/README
   Catalyst-Plugin-RequireSSL/trunk/lib/Catalyst/Plugin/RequireSSL.pm
Log:
Version 0.07

Modified: Catalyst-Plugin-RequireSSL/trunk/Changes
===================================================================
--- Catalyst-Plugin-RequireSSL/trunk/Changes	2012-01-05 18:37:18 UTC (rev 14244)
+++ Catalyst-Plugin-RequireSSL/trunk/Changes	2012-01-14 19:08:25 UTC (rev 14245)
@@ -1,6 +1,6 @@
 Revision history for Perl extension Catalyst::Plugin::RequireSSL
 
-0.07	2010-04-02 07:28:00
+0.07	2011-01-14 19:07:00
 	- Converted to use Module::Install instead of Module::Build.
         - Removed unused 'default' method from the app (triggered a deprecation warning).
         - Fix Perl Critic test for hard tabs (t0m)

Modified: Catalyst-Plugin-RequireSSL/trunk/README
===================================================================
--- Catalyst-Plugin-RequireSSL/trunk/README	2012-01-05 18:37:18 UTC (rev 14244)
+++ Catalyst-Plugin-RequireSSL/trunk/README	2012-01-14 19:08:25 UTC (rev 14245)
@@ -3,17 +3,21 @@
 
 SYNOPSIS
         # in MyApp.pm
-        use Catalyst;
-        MyApp->setup( qw/RequireSSL/ );
-    
-        MyApp->config->{require_ssl} = {
-            https => 'secure.mydomain.com',
-            http => 'www.mydomain.com',
-            remain_in_ssl => 0,
-            no_cache => 0,
-            detach_on_redirect => 1,
-        };
+        use Catalyst qw/
+            RequireSSL
+        /;
+        __PACKAGE__->config(
+            require_ssl => {
+                https => 'secure.mydomain.com',
+                http => 'www.mydomain.com',
+                remain_in_ssl => 0,
+                no_cache => 0,
+                detach_on_redirect => 1,
+            },
+        );
+        __PACKAGE__->setup;
 
+
         # in any controller methods that should be secured
         $c->require_ssl;
 

Modified: Catalyst-Plugin-RequireSSL/trunk/lib/Catalyst/Plugin/RequireSSL.pm
===================================================================
--- Catalyst-Plugin-RequireSSL/trunk/lib/Catalyst/Plugin/RequireSSL.pm	2012-01-05 18:37:18 UTC (rev 14244)
+++ Catalyst-Plugin-RequireSSL/trunk/lib/Catalyst/Plugin/RequireSSL.pm	2012-01-14 19:08:25 UTC (rev 14245)
@@ -110,17 +110,21 @@
 =head1 SYNOPSIS
 
     # in MyApp.pm
-    use Catalyst;
-    MyApp->setup( qw/RequireSSL/ );
-    
-    MyApp->config->{require_ssl} = {
-        https => 'secure.mydomain.com',
-        http => 'www.mydomain.com',
-        remain_in_ssl => 0,
-        no_cache => 0,
-        detach_on_redirect => 1,
-    };
+    use Catalyst qw/
+        RequireSSL
+    /;
+    __PACKAGE__->config(
+        require_ssl => {
+            https => 'secure.mydomain.com',
+            http => 'www.mydomain.com',
+            remain_in_ssl => 0,
+            no_cache => 0,
+            detach_on_redirect => 1,
+        },
+    );
+    __PACKAGE__->setup;
 
+
     # in any controller methods that should be secured
     $c->require_ssl;
 




More information about the Catalyst-commits mailing list