savon 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
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
 
File without changes
data/Rakefile CHANGED
File without changes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.5
1
+ 0.6.6
File without changes
@@ -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
- # Expects a SOAP action and sets up Savon::SOAP and Savon::WSSE.
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(soap_action, &block)
59
+ def setup(operation, &block)
53
60
  @soap = SOAP.new
54
- @soap.action = @wsdl.operations[soap_action][:action] if wsdl?
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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.5
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-13 00:00:00 +01:00
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/fixtures/user_fixture.rb
148
- - spec/http_stubs.rb
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/core_ext/datetime_spec.rb
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/symbol_spec.rb
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/spec_helper.rb
161
+ - spec/http_stubs.rb
162
+ - spec/fixtures/user_fixture.rb