actionwebservice 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/README +5 -5
- data/Rakefile +2 -2
- data/lib/action_web_service/api.rb +2 -2
- data/lib/action_web_service/casting.rb +1 -1
- data/lib/action_web_service/container/action_controller_container.rb +4 -4
- data/lib/action_web_service/container/delegated_container.rb +1 -1
- data/lib/action_web_service/templates/scaffolds/layout.rhtml +1 -1
- data/lib/action_web_service/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -21,14 +21,14 @@ You specify the methods you want to make available as API methods in an
|
|
21
21
|
ActionWebService::API::Base derivative, and then specify this API
|
22
22
|
definition class wherever you want to use that API.
|
23
23
|
|
24
|
-
The implementation of the methods is done
|
24
|
+
The implementation of the methods is done separately from the API
|
25
25
|
specification.
|
26
26
|
|
27
27
|
|
28
28
|
==== Method name inflection
|
29
29
|
|
30
30
|
Action Web Service will camelcase the method names according to Rails Inflector
|
31
|
-
rules for the API visible to public callers. What this means, for example
|
31
|
+
rules for the API visible to public callers. What this means, for example,
|
32
32
|
is that the method names in generated WSDL will be camelcased, and callers will
|
33
33
|
have to supply the camelcased name in their requests for the request to
|
34
34
|
succeed.
|
@@ -222,12 +222,12 @@ If you're going to be sending back strings containing non-ASCII UTF-8
|
|
222
222
|
characters using the <tt>:string</tt> data type, you need to make sure that
|
223
223
|
Ruby is using UTF-8 as the default encoding for its strings.
|
224
224
|
|
225
|
-
The default in Ruby to use US-ASCII encoding for strings, which causes a string
|
225
|
+
The default in Ruby is to use US-ASCII encoding for strings, which causes a string
|
226
226
|
validation check in the Ruby SOAP library to fail and your string to be sent
|
227
227
|
back as a Base-64 value, which may confuse clients that expected strings
|
228
228
|
because of the WSDL.
|
229
229
|
|
230
|
-
Two ways of
|
230
|
+
Two ways of setting the default string encoding are:
|
231
231
|
|
232
232
|
* Start Ruby using the <tt>-Ku</tt> command-line option to the Ruby executable
|
233
233
|
* 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
|
|
334
334
|
available to be required immediately or are accessible as GEMs.
|
335
335
|
|
336
336
|
It also requires a version of Ruby that includes SOAP support in the standard
|
337
|
-
library. At least version 1.8.2 final (2004-12-25) of Ruby is recommended
|
337
|
+
library. At least version 1.8.2 final (2004-12-25) of Ruby is recommended; this
|
338
338
|
is the version tested against.
|
339
339
|
|
340
340
|
|
data/Rakefile
CHANGED
@@ -63,8 +63,8 @@ spec = Gem::Specification.new do |s|
|
|
63
63
|
s.rubyforge_project = "aws"
|
64
64
|
s.homepage = "http://www.rubyonrails.org"
|
65
65
|
|
66
|
-
s.add_dependency('actionpack', '= 1.
|
67
|
-
s.add_dependency('activerecord', '= 1.
|
66
|
+
s.add_dependency('actionpack', '= 1.11.0' + PKG_BUILD)
|
67
|
+
s.add_dependency('activerecord', '= 1.13.0' + PKG_BUILD)
|
68
68
|
|
69
69
|
s.has_rdoc = true
|
70
70
|
s.requirements << 'none'
|
@@ -18,7 +18,7 @@ module ActionWebService # :nodoc:
|
|
18
18
|
class_inheritable_option :inflect_names, true
|
19
19
|
|
20
20
|
# Whether to allow ActiveRecord::Base models in <tt>:expects</tt>.
|
21
|
-
# The default is +false
|
21
|
+
# The default is +false+; you should be aware of the security implications
|
22
22
|
# of allowing this, and ensure that you don't allow remote callers to
|
23
23
|
# easily overwrite data they should not have access to.
|
24
24
|
class_inheritable_option :allow_active_record_expects, false
|
@@ -43,7 +43,7 @@ module ActionWebService # :nodoc:
|
|
43
43
|
# A signature is an array of one or more parameter specifiers.
|
44
44
|
# A parameter specifier can be one of the following:
|
45
45
|
#
|
46
|
-
# * A symbol or string
|
46
|
+
# * A symbol or string representing one of the Action Web Service base types.
|
47
47
|
# See ActionWebService::SignatureTypes for a canonical list of the base types.
|
48
48
|
# * The Class object of the parameter type
|
49
49
|
# * A single-element Array containing one of the two preceding items. This
|
@@ -18,7 +18,7 @@ module ActionWebService # :nodoc:
|
|
18
18
|
self.class.cast_expects(@api_method, params)
|
19
19
|
end
|
20
20
|
|
21
|
-
# Coerces the given +return_value+ into the
|
21
|
+
# Coerces the given +return_value+ into the type returned by this
|
22
22
|
# method
|
23
23
|
def cast_returns(return_value)
|
24
24
|
self.class.cast_returns(@api_method, return_value)
|
@@ -25,12 +25,12 @@ module ActionWebService # :nodoc:
|
|
25
25
|
# now exist on the controller, and calling it will return the
|
26
26
|
# XML-RPC client object for working with that remote service.
|
27
27
|
#
|
28
|
-
# +options+ is the set of protocol client specific options
|
29
|
-
#
|
28
|
+
# +options+ is the set of protocol client specific options (see
|
29
|
+
# a protocol client class for details).
|
30
30
|
#
|
31
31
|
# If your API definition does not exist on the load path with the
|
32
|
-
# correct rules for it to be found using +name+, you can pass
|
33
|
-
# the API definition class
|
32
|
+
# correct rules for it to be found using +name+, you can pass in
|
33
|
+
# the API definition class via +options+, using a key of <tt>:api</tt>
|
34
34
|
def web_client_api(name, protocol, endpoint_uri, options={})
|
35
35
|
unless method_defined?(name)
|
36
36
|
api_klass = options.delete(:api) || require_web_service_api(name)
|
@@ -11,7 +11,7 @@ module ActionWebService # :nodoc:
|
|
11
11
|
end
|
12
12
|
|
13
13
|
module ClassMethods
|
14
|
-
# Declares a web service that will
|
14
|
+
# Declares a web service that will provide access to the API of the given
|
15
15
|
# +object+. +object+ must be an ActionWebService::Base derivative.
|
16
16
|
#
|
17
17
|
# Web service object creation can either be _immediate_, where the object
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: actionwebservice
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
date: 2005-
|
6
|
+
version: 0.9.3
|
7
|
+
date: 2005-11-07 00:00:00 +01:00
|
8
8
|
summary: Web service support for Action Pack.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -132,7 +132,7 @@ dependencies:
|
|
132
132
|
-
|
133
133
|
- "="
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: 1.
|
135
|
+
version: 1.11.0
|
136
136
|
version:
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
name: activerecord
|
@@ -142,5 +142,5 @@ dependencies:
|
|
142
142
|
-
|
143
143
|
- "="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
145
|
+
version: 1.13.0
|
146
146
|
version:
|