aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-11-07 09:52:56 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-11-07 09:52:56 +0000
commitea5bd8e75664e3d6e3c4bf51ba033f67ce9069f0 (patch)
tree695d01c12d23bd9125f0269b6a5cc0d6a04db0c7 /actionwebservice
parent6ab9f2bb407194ada0973301d55525ad79e1ff78 (diff)
downloadrails-ea5bd8e75664e3d6e3c4bf51ba033f67ce9069f0.tar.gz
rails-ea5bd8e75664e3d6e3c4bf51ba033f67ce9069f0.tar.bz2
rails-ea5bd8e75664e3d6e3c4bf51ba033f67ce9069f0.zip
Fix docs (closes #2679) [coffee2code]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice')
-rw-r--r--actionwebservice/README10
-rw-r--r--actionwebservice/install.rb2
-rw-r--r--actionwebservice/lib/action_web_service/api.rb4
-rw-r--r--actionwebservice/lib/action_web_service/container/action_controller_container.rb8
-rw-r--r--actionwebservice/lib/action_web_service/container/delegated_container.rb2
5 files changed, 13 insertions, 13 deletions
diff --git a/actionwebservice/README b/actionwebservice/README
index 5b82475fe2..78b91f0810 100644
--- a/actionwebservice/README
+++ b/actionwebservice/README
@@ -21,14 +21,14 @@ You specify the methods you want to make available as API methods in an
ActionWebService::API::Base derivative, and then specify this API
definition class wherever you want to use that API.
-The implementation of the methods is done seperately to the API
+The implementation of the methods is done separately from the API
specification.
==== Method name inflection
Action Web Service will camelcase the method names according to Rails Inflector
-rules for the API visible to public callers. What this means, for example
+rules for the API visible to public callers. What this means, for example,
is that the method names in generated WSDL will be camelcased, and callers will
have to supply the camelcased name in their requests for the request to
succeed.
@@ -222,12 +222,12 @@ If you're going to be sending back strings containing non-ASCII UTF-8
characters using the <tt>:string</tt> data type, you need to make sure that
Ruby is using UTF-8 as the default encoding for its strings.
-The default in Ruby to use US-ASCII encoding for strings, which causes a string
+The default in Ruby is to use US-ASCII encoding for strings, which causes a string
validation check in the Ruby SOAP library to fail and your string to be sent
back as a Base-64 value, which may confuse clients that expected strings
because of the WSDL.
-Two ways of doing setting the default string encoding are:
+Two ways of setting the default string encoding are:
* Start Ruby using the <tt>-Ku</tt> command-line option to the Ruby executable
* Set the <tt>$KCODE</tt> flag in <tt>config/environment.rb</tt> to the
@@ -334,7 +334,7 @@ Action Web Service requires that the Action Pack and Active Record are either
available to be required immediately or are accessible as GEMs.
It also requires a version of Ruby that includes SOAP support in the standard
-library. At least version 1.8.2 final (2004-12-25) of Ruby is recommended, this
+library. At least version 1.8.2 final (2004-12-25) of Ruby is recommended; this
is the version tested against.
diff --git a/actionwebservice/install.rb b/actionwebservice/install.rb
index a3796708cb..e2a9048070 100644
--- a/actionwebservice/install.rb
+++ b/actionwebservice/install.rb
@@ -4,7 +4,7 @@ require 'ftools'
include Config
-# this was adapted from rdoc's install.rb by ways of Log4r
+# this was adapted from rdoc's install.rb by way of Log4r
$sitedir = CONFIG["sitelibdir"]
unless $sitedir
diff --git a/actionwebservice/lib/action_web_service/api.rb b/actionwebservice/lib/action_web_service/api.rb
index baf7856c6c..a0d0af6267 100644
--- a/actionwebservice/lib/action_web_service/api.rb
+++ b/actionwebservice/lib/action_web_service/api.rb
@@ -18,7 +18,7 @@ module ActionWebService # :nodoc:
class_inheritable_option :inflect_names, true
# Whether to allow ActiveRecord::Base models in <tt>:expects</tt>.
- # The default is +false+, you should be aware of the security implications
+ # The default is +false+; you should be aware of the security implications
# of allowing this, and ensure that you don't allow remote callers to
# easily overwrite data they should not have access to.
class_inheritable_option :allow_active_record_expects, false
@@ -43,7 +43,7 @@ module ActionWebService # :nodoc:
# A signature is an array of one or more parameter specifiers.
# A parameter specifier can be one of the following:
#
- # * A symbol or string of representing one of the Action Web Service base types.
+ # * A symbol or string representing one of the Action Web Service base types.
# See ActionWebService::SignatureTypes for a canonical list of the base types.
# * The Class object of the parameter type
# * A single-element Array containing one of the two preceding items. This
diff --git a/actionwebservice/lib/action_web_service/container/action_controller_container.rb b/actionwebservice/lib/action_web_service/container/action_controller_container.rb
index d5afff09bb..b74b5ba6d4 100644
--- a/actionwebservice/lib/action_web_service/container/action_controller_container.rb
+++ b/actionwebservice/lib/action_web_service/container/action_controller_container.rb
@@ -25,12 +25,12 @@ module ActionWebService # :nodoc:
# now exist on the controller, and calling it will return the
# XML-RPC client object for working with that remote service.
#
- # +options+ is the set of protocol client specific options,
- # see a protocol client class for details.
+ # +options+ is the set of protocol client specific options (see
+ # a protocol client class for details).
#
# If your API definition does not exist on the load path with the
- # correct rules for it to be found using +name+, you can pass through
- # the API definition class in +options+, using a key of <tt>:api</tt>
+ # correct rules for it to be found using +name+, you can pass in
+ # the API definition class via +options+, using a key of <tt>:api</tt>
def web_client_api(name, protocol, endpoint_uri, options={})
unless method_defined?(name)
api_klass = options.delete(:api) || require_web_service_api(name)
diff --git a/actionwebservice/lib/action_web_service/container/delegated_container.rb b/actionwebservice/lib/action_web_service/container/delegated_container.rb
index 4a1ee93e09..12a857e4e3 100644
--- a/actionwebservice/lib/action_web_service/container/delegated_container.rb
+++ b/actionwebservice/lib/action_web_service/container/delegated_container.rb
@@ -11,7 +11,7 @@ module ActionWebService # :nodoc:
end
module ClassMethods
- # Declares a web service that will provides access to the API of the given
+ # Declares a web service that will provide access to the API of the given
# +object+. +object+ must be an ActionWebService::Base derivative.
#
# Web service object creation can either be _immediate_, where the object