summary refs log tree commit diff
diff options
context:
space:
mode:
authorAsh Berlin <ash_github@firemirror.com>2013-08-14 01:45:00 -0700
committerAsh Berlin <ash_github@firemirror.com>2013-08-14 01:45:00 -0700
commite106fc5bc6181aed7289d9c2ea830adc2cbcb576 (patch)
tree500c17fe441683446cbeffe28b12f039cec93783
parentv0.06 (diff)
parentRe-wrap some documentation. (diff)
downloadnet-http-spore-e106fc5bc6181aed7289d9c2ea830adc2cbcb576.tar.gz
Merge pull request #26 from oalders/master
Typo fixes
-rw-r--r--lib/Net/HTTP/Spore.pm33
1 files changed, 21 insertions, 12 deletions
diff --git a/lib/Net/HTTP/Spore.pm b/lib/Net/HTTP/Spore.pm
index d3b2165..e8c6c28 100644
--- a/lib/Net/HTTP/Spore.pm
+++ b/lib/Net/HTTP/Spore.pm
@@ -172,19 +172,24 @@ sub _add_methods {
 
 This module is an implementation of the SPORE specification.
 
-To use this client, you need to use or to write a SPORE specification of an API.
-A description of the SPORE specification format is available at
+To use this client, you need to use or to write a SPORE specification of an
+API.  A description of the SPORE specification format is available at
 L<http://github.com/SPORE/specifications/blob/master/spore_description.pod>
 
-Some specifications for well-known services are available L<http://github.com/SPORE/api-description>.
+Some specifications for well-known services are available
+L<http://github.com/SPORE/api-description>.
 
 =head2 CLIENT CREATION
 
-First you need to create a client. This can be done using two methods, B<new_from_spec> and B<new_from_string>. The client will read the specification file to create a appropriate methods to interact with the API.
+First you need to create a client. This can be done using two methods,
+B<new_from_spec> and B<new_from_string>. The client will read the specification
+file to create the appropriate methods to interact with the API.
 
 =head2 MIDDLEWARES
 
-It's possible to activate some middlewares to extend the usage of the client. If you're using an API that discuss in JSON, you can enable the middleware L<Net::HTTP::Spore::Middleware::JSON>.
+It's possible to activate some middlewares to extend the usage of the client.
+If you're using an API that discuss in JSON, you can enable the middleware
+L<Net::HTTP::Spore::Middleware::JSON>.
 
     $client->enable('Format::JSON');
 
@@ -192,7 +197,7 @@ or only on some path
 
     $client->enable_if(sub{$_->[0]->path =~ m!/path/to/json/stuff!}, 'Format::JSON');
 
-For very simple middlewares, you can simple pass in an anonymous function
+For very simple middlewares, you can simply pass in an anonymous function
 
     $client->enable( sub { my $request = shift; ... } );
 
@@ -202,9 +207,9 @@ For very simple middlewares, you can simple pass in an anonymous function
 
 =item new_from_spec($specification_file, %args)
 
-Create and return a L<Net::HTTP::Spore::Core> object, with methods
-generated from the specification file. The specification file can
-either be a file on disk or a remote URL.
+Create and return a L<Net::HTTP::Spore::Core> object, with methods generated
+from the specification file. The specification file can either be a file on
+disk or a remote URL.
 
 =item new_from_string($specification_string, %args)
 
@@ -215,15 +220,19 @@ generated from a JSON specification string.
 
 =head2 TRACING
 
-L<Net::HTTP::Spore> provides a way to trace what's going on when doing a request.
+L<Net::HTTP::Spore> provides a way to trace what's going on when doing a
+request.
 
 =head3 Enabling Trace
 
-You can enable tracing using the environment variable B<SPORE_TRACE>. You can also enable tracing at construct time by adding B<trace =E<gt> 1> when calling B<new_from_spec>.
+You can enable tracing using the environment variable B<SPORE_TRACE>. You can
+also enable tracing at construct time by adding B<trace =E<gt> 1> when calling
+B<new_from_spec>.
 
 =head3 Trace Output
 
-By default output will be directed to B<STDERR>. You can specify another default output:
+By default output will be directed to B<STDERR>. You can specify another
+default output:
 
     SPORE_TRACE=1=log.txt