From: Alexander Hartmaier Date: Wed, 7 Jan 2015 15:19:34 +0000 (+0100) Subject: fix spelling to satisfy t/author/spelling.t X-Git-Tag: 5.90079_008~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=566678d0245e49d7f2f1abce553b5bdb87879086 fix spelling to satisfy t/author/spelling.t --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 738149b..a255543 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -592,7 +592,7 @@ sub last_error { my ($err, @errs) = @{shift->error}; return $err } =head2 shift_errors shifts the most recently added error off the error stack and returns if. Returns -nothing if there are nomore errors. +nothing if there are no more errors. =cut @@ -2105,7 +2105,7 @@ sub finalize_headers { =head2 $c->finalize_encoding Make sure your body is encoded properly IF you set an encoding. By -default the encoding is UTF-8 but you can disable it by explictly setting the +default the encoding is UTF-8 but you can disable it by explicitly setting the encoding configuration value to undef. We can only encode when the body is a scalar. Methods for encoding via the @@ -3038,7 +3038,7 @@ $ENV{SCRIPT_NAME}. Please B that if you do use C the middleware is now adding via C rather than this method. -If you are using Lighttp or IIS6 you may wish to apply these middlewares. In +If you are using Lighttpd or IIS6 you may wish to apply these middlewares. In general this is no longer a common case but we have this here for backward compatibility. @@ -3107,7 +3107,7 @@ with a generated server script (via L and C) we do not attempt to return a valid L application using any existing C<${myapp}.psgi> scripts in your $HOME directory. -B C was orginally created when the first PSGI +B C was originally created when the first PSGI port was done for v5.90000. These are middlewares that are added to achieve backward compatibility with older applications. If you start your application using one of the supplied server scripts (generated with L and @@ -4207,7 +4207,7 @@ manually as well such as to conform to the JSON specification. NOTE: We also examine the value of $c->response->content_encoding. If you set this (like for example 'gzip', and manually gzipping the body) -we assume that you have done all the neccessary encoding yourself, since +we assume that you have done all the necessary encoding yourself, since we cannot encode the gzipped contents. If you use a plugin like L you need to update to a modern version in order to have this function correctly with the new UTF8 encoding code, or you diff --git a/lib/Catalyst/ActionChain.pm b/lib/Catalyst/ActionChain.pm index 0b58602..5e222c2 100644 --- a/lib/Catalyst/ActionChain.pm +++ b/lib/Catalyst/ActionChain.pm @@ -37,7 +37,7 @@ sub dispatch { # break the chain if exception occurs in the middle of chain. We # check the global config flag 'abort_chain_on_error_fix', but this - # is now considered true by default, so unless someone explictly sets + # is now considered true by default, so unless someone explicitly sets # it to false we default it to true (if its not defined). my $abort = defined($c->config->{abort_chain_on_error_fix}) ? $c->config->{abort_chain_on_error_fix} : 1; diff --git a/lib/Catalyst/Delta.pod b/lib/Catalyst/Delta.pod index 4d1572a..e1d89c6 100755 --- a/lib/Catalyst/Delta.pod +++ b/lib/Catalyst/Delta.pod @@ -13,7 +13,7 @@ The biggest change in this release is that UTF8 encoding is now enabled by default. So you no longer need any plugins (such as L) which you can just no go ahead and remove. You also don't need to set the encoding configuration (__PACKAGE__->config(encoding=>'UTF-8')) anymore -as well (although its presense hurts nothing). +as well (although its presence hurts nothing). If this change causes you trouble, you can disable it: @@ -30,7 +30,7 @@ also has details. A small change is that the configuration setting C was not doing the right thing if you started your application with C -and dod not apply the default middleware. This setting is now honored in +and did not apply the default middleware. This setting is now honored in all the ways an application may be started. This could cause trouble if you are using the configuration value and also adding the proxy middleware manually with a custom application startup. The solution is that you only diff --git a/lib/Catalyst/Middleware/Stash.pm b/lib/Catalyst/Middleware/Stash.pm index e31f2d6..4682da8 100644 --- a/lib/Catalyst/Middleware/Stash.pm +++ b/lib/Catalyst/Middleware/Stash.pm @@ -58,7 +58,7 @@ directly since it is likely to move off the Catalyst namespace into a stand alone distribution We store a coderef under the C which can be dereferenced with -key values or nothing to access the underly hashref. +key values or nothing to access the underlying hashref. The stash middleware is designed so that you can 'nest' applications that use it. If for example you have a L application that is called diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index c0d9fca..0cfcbae 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -531,7 +531,7 @@ If the POST is malformed in some way (such as undefined or not content that matches the content-type) we raise a L with the error text as the message. -If the POSTed content type does not match an availabled data handler, this +If the POSTed content type does not match an available data handler, this will also raise an exception. =head2 $req->body_parameters @@ -683,7 +683,7 @@ Basically this is an exploit that takes advantage of how L<\param> will do one t in scalar context and another thing in list context. This is combined with how Perl chooses to deal with duplicate keys in a hash definition by overwriting the value of existing keys with a new value if the same key shows up again. Generally you will be -vulnerale to this exploit if you are using this method in a direct assignment in a +vulnerable to this exploit if you are using this method in a direct assignment in a hash, such as with a L create statement. For example, if you have parameters like: diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 69006e7..186eb0d 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -205,7 +205,7 @@ handler you are using and might be optimized using server specific abilities (fo example L will attempt to server a real local file in a non blocking manner). If you are using a filehandle as the body response you are responsible for -making sure it comforms to the L specification with regards to content +making sure it conforms to the L specification with regards to content encoding. Unlike with scalar body values or when using the streaming interfaces we currently do not attempt to normalize and encode your filehandle. In general this means you should be sure to be sending bytes not UTF8 decoded multibyte diff --git a/t/author/spelling.t b/t/author/spelling.t index 910a657..503cf5a 100644 --- a/t/author/spelling.t +++ b/t/author/spelling.t @@ -4,25 +4,25 @@ use Test::More; use Test::Spelling; add_stopwords(qw( - API CGI MVC PSGI Plack README SSI Starman XXXX URI htaccess middleware + Accel API CGI MVC PSGI Plack README SSI Starman XXXX URI htaccess middleware mixins namespace psgi startup Deprecations catamoose cataplack linearize - subclasses subdirectories refactoring adaptors + subclasses subdirectories refactoring adaptors validator remediations undef env regex unary rethrow rethrows stringifies CPAN STDERR SIGCHLD baz roadmap wishlist refactor refactored Runtime pluggable pluggability hoc apis - fastcgi nginx Lighttpd IIS middlewares backend IRC + fastcgi nginx Lighttpd IIS middlewares backend IRC IOLayer ctx _application MyApp restarter httponly Utils stash's unescapes - dispatchtype dispatchtypes redispatch redispatching + actionchain dispatchtype dispatchtypes redispatch redispatching CaptureArgs ChainedParent PathPart PathPrefix BUILDARGS metaclass namespaces pre ARGV ReverseProxy filename tempname request's subdirectory ini uninstalled uppercased wiki bitmask uri url urls dir hostname proxied http https IP SSL - inline INLINE plugins cpanfile + inline INLINE plugins cpanfile resized FastCGI Stringifies Rethrows DispatchType Wishlist Refactor ROADMAP HTTPS Unescapes Restarter Nginx Refactored - ActionClass LocalRegex LocalRegexp MyAction metadata cometd io psgix websockets - UTF async codebase dev filenames params MyMiddleware - JSON POSTed RESTful performant subref actionrole - chunked chunking codewise distingush equivilent plack Javascript - ConfigLoader getline + ActionClass LocalRegex LocalRegexp MyAction metadata cometd io psgix websocket websockets proxying + UTF async codebase dev encodable filenames params MyMiddleware Sendfile + JSON xml POSTed RESTful performant subref actionrole + chunked chunking codewise distingush equivilent plack Javascript gzipping + ConfigLoader getline whitepaper Andreas Ashton Axel @@ -94,6 +94,7 @@ add_stopwords(qw( audreyt bricas chansen + davewood dhoss dkubb dwc @@ -107,12 +108,14 @@ add_stopwords(qw( ilmari jcamacho jhannah + jnap jon konobi marcus mgrimes miyagawa mst + Napiorkowski naughton ningu nothingmuch