savon 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +5 -0
- data/README.textile +0 -0
- data/Rakefile +0 -0
- data/VERSION +1 -1
- data/lib/savon.rb +0 -0
- data/lib/savon/client.rb +11 -5
- data/lib/savon/core_ext.rb +0 -0
- data/lib/savon/core_ext/datetime.rb +0 -0
- data/lib/savon/core_ext/hash.rb +0 -0
- data/lib/savon/core_ext/object.rb +0 -0
- data/lib/savon/core_ext/string.rb +0 -0
- data/lib/savon/core_ext/symbol.rb +0 -0
- data/lib/savon/core_ext/uri.rb +0 -0
- data/lib/savon/request.rb +0 -0
- data/lib/savon/response.rb +0 -0
- data/lib/savon/soap.rb +0 -0
- data/lib/savon/wsdl.rb +0 -0
- data/lib/savon/wsse.rb +0 -0
- data/spec/endpoint_helper.rb +0 -0
- data/spec/fixtures/multiple_user_response.xml +0 -0
- data/spec/fixtures/soap_fault.xml +0 -0
- data/spec/fixtures/user_fixture.rb +0 -0
- data/spec/fixtures/user_response.xml +0 -0
- data/spec/fixtures/user_wsdl.xml +0 -0
- data/spec/http_stubs.rb +0 -0
- data/spec/savon/client_spec.rb +0 -0
- data/spec/savon/core_ext/datetime_spec.rb +0 -0
- data/spec/savon/core_ext/hash_spec.rb +0 -0
- data/spec/savon/core_ext/object_spec.rb +0 -0
- data/spec/savon/core_ext/string_spec.rb +0 -0
- data/spec/savon/core_ext/symbol_spec.rb +0 -0
- data/spec/savon/core_ext/uri_spec.rb +0 -0
- data/spec/savon/request_spec.rb +0 -0
- data/spec/savon/response_spec.rb +0 -0
- data/spec/savon/savon_spec.rb +0 -0
- data/spec/savon/soap_spec.rb +0 -0
- data/spec/savon/wsdl_spec.rb +0 -0
- data/spec/savon/wsse_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +13 -13
data/CHANGELOG
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.6.6 (2009-12-14)
|
2
|
+
* Default to use the name of the SOAP action (the method called in a client) in lowerCamelCase for SOAP action and input
|
3
|
+
when Savon::WSDL is disabled. You still need to specify soap.action and maybe soap.input in case your SOAP actions are
|
4
|
+
named any different.
|
5
|
+
|
1
6
|
== 0.6.5 (2009-12-13)
|
2
7
|
* Added an open_timeout method to Savon::Request.
|
3
8
|
|
data/README.textile
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.6
|
data/lib/savon.rb
CHANGED
File without changes
|
data/lib/savon/client.rb
CHANGED
@@ -43,16 +43,22 @@ module Savon
|
|
43
43
|
def method_missing(method, *args, &block) #:doc:
|
44
44
|
super if wsdl? && !@wsdl.respond_to?(method)
|
45
45
|
|
46
|
-
setup method, &block
|
46
|
+
setup operation_from(method), &block
|
47
47
|
dispatch method
|
48
48
|
end
|
49
49
|
|
50
|
-
#
|
50
|
+
# Returns a SOAP operation Hash containing the SOAP action and input
|
51
|
+
# for a given +method+.
|
52
|
+
def operation_from(method)
|
53
|
+
return @wsdl.operations[method] if wsdl?
|
54
|
+
{ :action => method.to_soap_key, :input => method.to_soap_key }
|
55
|
+
end
|
56
|
+
|
57
|
+
# Expects a SOAP operation Hash and sets up Savon::SOAP and Savon::WSSE.
|
51
58
|
# Yields them to a given +block+ in case one was given.
|
52
|
-
def setup(
|
59
|
+
def setup(operation, &block)
|
53
60
|
@soap = SOAP.new
|
54
|
-
@soap.action =
|
55
|
-
@soap.input = @wsdl.operations[soap_action][:input] if wsdl?
|
61
|
+
@soap.action, @soap.input = operation[:action], operation[:input]
|
56
62
|
@wsse = WSSE.new
|
57
63
|
|
58
64
|
yield_parameters &block if block
|
data/lib/savon/core_ext.rb
CHANGED
File without changes
|
File without changes
|
data/lib/savon/core_ext/hash.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/savon/core_ext/uri.rb
CHANGED
File without changes
|
data/lib/savon/request.rb
CHANGED
File without changes
|
data/lib/savon/response.rb
CHANGED
File without changes
|
data/lib/savon/soap.rb
CHANGED
File without changes
|
data/lib/savon/wsdl.rb
CHANGED
File without changes
|
data/lib/savon/wsse.rb
CHANGED
File without changes
|
data/spec/endpoint_helper.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/fixtures/user_wsdl.xml
CHANGED
File without changes
|
data/spec/http_stubs.rb
CHANGED
File without changes
|
data/spec/savon/client_spec.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/savon/request_spec.rb
CHANGED
File without changes
|
data/spec/savon/response_spec.rb
CHANGED
File without changes
|
data/spec/savon/savon_spec.rb
CHANGED
File without changes
|
data/spec/savon/soap_spec.rb
CHANGED
File without changes
|
data/spec/savon/wsdl_spec.rb
CHANGED
File without changes
|
data/spec/savon/wsse_spec.rb
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: savon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Harrington
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-14 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -143,20 +143,20 @@ signing_key:
|
|
143
143
|
specification_version: 3
|
144
144
|
summary: Heavy metal Ruby SOAP client library
|
145
145
|
test_files:
|
146
|
+
- spec/spec_helper.rb
|
146
147
|
- spec/endpoint_helper.rb
|
147
|
-
- spec/
|
148
|
-
- spec/
|
148
|
+
- spec/savon/response_spec.rb
|
149
|
+
- spec/savon/savon_spec.rb
|
150
|
+
- spec/savon/wsdl_spec.rb
|
151
|
+
- spec/savon/request_spec.rb
|
149
152
|
- spec/savon/client_spec.rb
|
150
|
-
- spec/savon/
|
153
|
+
- spec/savon/soap_spec.rb
|
154
|
+
- spec/savon/core_ext/symbol_spec.rb
|
151
155
|
- spec/savon/core_ext/hash_spec.rb
|
152
|
-
- spec/savon/core_ext/object_spec.rb
|
153
156
|
- spec/savon/core_ext/string_spec.rb
|
154
|
-
- spec/savon/core_ext/
|
157
|
+
- spec/savon/core_ext/datetime_spec.rb
|
158
|
+
- spec/savon/core_ext/object_spec.rb
|
155
159
|
- spec/savon/core_ext/uri_spec.rb
|
156
|
-
- spec/savon/request_spec.rb
|
157
|
-
- spec/savon/response_spec.rb
|
158
|
-
- spec/savon/savon_spec.rb
|
159
|
-
- spec/savon/soap_spec.rb
|
160
|
-
- spec/savon/wsdl_spec.rb
|
161
160
|
- spec/savon/wsse_spec.rb
|
162
|
-
- spec/
|
161
|
+
- spec/http_stubs.rb
|
162
|
+
- spec/fixtures/user_fixture.rb
|