google-ads-common 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ 0.8.2:
2
+ - Fixed issue #89.
3
+
1
4
  0.8.1:
2
5
  - Updated dependencies for Savon, OAuth2, HTTPI.
3
6
 
@@ -98,19 +98,14 @@ module AdsCommon
98
98
  original_action_name =
99
99
  get_service_registry.get_method_signature(action)[:original_name]
100
100
  original_action_name = action if original_action_name.nil?
101
- response = @client.request(original_action_name) do |soap|
101
+ response = @client.request(original_action_name) do |soap, wsdl, http|
102
102
  soap.body = args
103
- set_headers(soap, extra_namespaces)
103
+ header_handler.prepare_request(http, soap)
104
+ soap.namespaces.merge!(extra_namespaces) unless extra_namespaces.nil?
104
105
  end
105
106
  return response
106
107
  end
107
108
 
108
- # Executes each handler to generate SOAP headers.
109
- def set_headers(soap, extra_namespaces)
110
- header_handler.prepare_request(@client.http, soap)
111
- soap.namespaces.merge!(extra_namespaces) unless extra_namespaces.nil?
112
- end
113
-
114
109
  # Checks for errors in response and raises appropriate exception.
115
110
  def handle_errors(response)
116
111
  if response.soap_fault?
@@ -21,6 +21,6 @@
21
21
 
22
22
  module AdsCommon
23
23
  module ApiConfig
24
- CLIENT_LIB_VERSION = '0.8.1'
24
+ CLIENT_LIB_VERSION = '0.8.2'
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-ads-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-24 00:00:00.000000000 Z
13
+ date: 2012-10-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: savon