smacks-savon 0.1.5 → 0.1.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.
Files changed (2) hide show
  1. data/lib/savon/service.rb +7 -2
  2. metadata +3 -2
data/lib/savon/service.rb CHANGED
@@ -24,8 +24,6 @@ module Savon
24
24
  # namespace for Apricot eats Gorilla.
25
25
  def initialize(endpoint)
26
26
  @uri = URI(endpoint)
27
- ApricotEatsGorilla.nodes_to_namespace = wsdl.choice_elements
28
- ApricotEatsGorilla.node_namespace = "wsdl"
29
27
  end
30
28
 
31
29
  # Returns an instance of the Savon::Wsdl.
@@ -89,6 +87,12 @@ module Savon
89
87
  end
90
88
  end
91
89
 
90
+ # Sets options for the XML parser.
91
+ def setup_parser
92
+ ApricotEatsGorilla.nodes_to_namespace = wsdl.choice_elements
93
+ ApricotEatsGorilla.node_namespace = "wsdl"
94
+ end
95
+
92
96
  # Logs a given +message+ using the +@@logger+ instance or yields the logger
93
97
  # to a given +block+ for logging multiple messages at once.
94
98
  def debug(message = nil)
@@ -109,6 +113,7 @@ module Savon
109
113
  @soap_action = ApricotEatsGorilla.to_lower_camel_case(method)
110
114
  @options = options
111
115
  validate_soap_action
116
+ setup_parser
112
117
  dispatch(root_node)
113
118
  end
114
119
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smacks-savon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Harrington
@@ -48,6 +48,7 @@ files:
48
48
  - lib/savon/response.rb
49
49
  has_rdoc: true
50
50
  homepage: http://github.com/smacks/savon
51
+ licenses:
51
52
  post_install_message:
52
53
  rdoc_options:
53
54
  - --inline-source
@@ -69,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
70
  requirements:
70
71
  - mocha and shoulda for testing
71
72
  rubyforge_project:
72
- rubygems_version: 1.2.0
73
+ rubygems_version: 1.3.5
73
74
  signing_key:
74
75
  specification_version: 2
75
76
  summary: Ruby SOAP client library to enjoy.