[Catalyst-commits] r11412 - in trunk/Catalyst-Plugin-Server: . lib/Catalyst/Plugin/Server lib/Catalyst/Plugin/Server/XMLRPC/DispatchType

kane at dev.catalyst.perl.org kane at dev.catalyst.perl.org
Fri Sep 25 10:39:43 GMT 2009


Author: kane
Date: 2009-09-25 10:39:42 +0000 (Fri, 25 Sep 2009)
New Revision: 11412

Modified:
   trunk/Catalyst-Plugin-Server/
   trunk/Catalyst-Plugin-Server/README
   trunk/Catalyst-Plugin-Server/lib/Catalyst/Plugin/Server/XMLRPC.pm
   trunk/Catalyst-Plugin-Server/lib/Catalyst/Plugin/Server/XMLRPC/DispatchType/XMLRPCPath.pm
Log:
 r6098 at myriad-wifi:  kane | 2009-03-05 13:52:19 +0100
 * Address #43839: Misspelling. 'seperator' should be 'separator'. This is
   now changed, meaning the corresponding config value has also changed.
   Please verify your spelling.
 



Property changes on: trunk/Catalyst-Plugin-Server
___________________________________________________________________
Name: svk:merge
   - 8a9521aa-ff93-41d6-9f87-b05cafcdab40:/local/cat/Catalyst-Plugin-Server:6096
e5869dfe-760d-0410-9433-71cdb9993b4e:/local/Catalyst-Plugin-Server:7854
   + 8a9521aa-ff93-41d6-9f87-b05cafcdab40:/local/cat/Catalyst-Plugin-Server:6098
e5869dfe-760d-0410-9433-71cdb9993b4e:/local/Catalyst-Plugin-Server:7854

Modified: trunk/Catalyst-Plugin-Server/README
===================================================================
--- trunk/Catalyst-Plugin-Server/README	2009-09-25 09:38:44 UTC (rev 11411)
+++ trunk/Catalyst-Plugin-Server/README	2009-09-25 10:39:42 UTC (rev 11412)
@@ -236,13 +236,13 @@
 
         The default is '' (empty).
 
-    seperator
+    separator
         This is a STRING used to split your method on, allowing you to use a
         hierarchy in your method calls.
 
-        For example, with a seperator of "." the method call "demo.echo"
+        For example, with a separator of "." the method call "demo.echo"
         would be forwarded to "/demo/echo". To make "demo_echo" forward to
-        the same path, you would change the seperator to "_",
+        the same path, you would change the separator to "_",
 
         The default is ".", splitting methods on a single "."
 

Modified: trunk/Catalyst-Plugin-Server/lib/Catalyst/Plugin/Server/XMLRPC/DispatchType/XMLRPCPath.pm
===================================================================
--- trunk/Catalyst-Plugin-Server/lib/Catalyst/Plugin/Server/XMLRPC/DispatchType/XMLRPCPath.pm	2009-09-25 09:38:44 UTC (rev 11411)
+++ trunk/Catalyst-Plugin-Server/lib/Catalyst/Plugin/Server/XMLRPC/DispatchType/XMLRPCPath.pm	2009-09-25 10:39:42 UTC (rev 11412)
@@ -76,9 +76,9 @@
                 $self->{paths}->{$path}->[0] : $self->{paths}->{$path};
         $path = "/$path" unless $path eq '/';
         my ($method) = $path =~ m|^/?(.*)$|;
-        my $seperator= $self->config->seperator;
+        my $separator= $self->config->separator;
         my $prefix = $self->config->prefix;
-        $method =~ s|/|$seperator|g;
+        $method =~ s|/|$separator|g;
         $method =~ s|^$prefix\.||g;
         $self->{methods}->{$method} = $action;
     }

Modified: trunk/Catalyst-Plugin-Server/lib/Catalyst/Plugin/Server/XMLRPC.pm
===================================================================
--- trunk/Catalyst-Plugin-Server/lib/Catalyst/Plugin/Server/XMLRPC.pm	2009-09-25 09:38:44 UTC (rev 11411)
+++ trunk/Catalyst-Plugin-Server/lib/Catalyst/Plugin/Server/XMLRPC.pm	2009-09-25 10:39:42 UTC (rev 11412)
@@ -505,7 +505,7 @@
     ### XXX add: stash_fields (to encode) stash_exclude_fields (grep -v)
 
     __PACKAGE__->mk_accessors(
-        qw/ path prefix seperator attribute convert_params
+        qw/ path prefix separator attribute convert_params
             show_errors xml_encoding
         /
     );
@@ -520,7 +520,7 @@
         my $self  = $class->SUPER::new;
 
         $self->prefix(   $c->config->{xmlrpc}->{prefix}    || $DefaultPrefix);
-        $self->seperator($c->config->{xmlrpc}->{seperator} || $DefaultSep);
+        $self->separator($c->config->{xmlrpc}->{separator} || $DefaultSep);
         $self->path(     $c->config->{xmlrpc}->{path}      || $DefaultPath);
         $self->show_errors( $c->config->{xmlrpc}->{show_errors}
                                 || $DefaultShowErrors );
@@ -617,7 +617,7 @@
                 my $prefix  = $c->server->xmlrpc->config->prefix;
                 my ($sep)   = map { qr/$_/ }
                               map { quotemeta $_ }
-                                        $c->server->xmlrpc->config->seperator;
+                                        $c->server->xmlrpc->config->separator;
 
                 ### error checks here
                 if( $prefix =~ m|^/| ) {
@@ -627,7 +627,7 @@
                 }
 
                 unless( UNIVERSAL::isa( $sep, 'Regexp' ) ) {
-                    $c->log->debug( __PACKAGE__ . ": Your seperator is not a ".
+                    $c->log->debug( __PACKAGE__ . ": Your separator is not a ".
                                     "Regexp object -- This is not recommended"
                                 ) if $c->debug;
                 }
@@ -766,14 +766,14 @@
 
 The default is '' (empty).
 
-=item seperator
+=item separator
 
 This is a STRING used to split your method on, allowing you to use
 a hierarchy in your method calls.
 
-For example, with a seperator of C<.> the method call C<demo.echo>
+For example, with a separator of C<.> the method call C<demo.echo>
 would be forwarded to C</demo/echo>.  To make C<demo_echo> forward to the
-same path, you would change the seperator to C<_>,
+same path, you would change the separator to C<_>,
 
 The default is C<.>, splitting methods on a single C<.>
 




More information about the Catalyst-commits mailing list