google-ads-common 0.5.2 → 0.5.3
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
CHANGED
|
@@ -26,7 +26,7 @@ module AdsCommon
|
|
|
26
26
|
# Contains helper methods for loading and managing the available services.
|
|
27
27
|
# This module is meant to be imported into API-specific modules.
|
|
28
28
|
module ApiConfig
|
|
29
|
-
ADS_COMMON_VERSION = '0.5.
|
|
29
|
+
ADS_COMMON_VERSION = '0.5.3'
|
|
30
30
|
|
|
31
31
|
# Get the available API versions.
|
|
32
32
|
#
|
|
@@ -88,7 +88,7 @@ module AdsCommon
|
|
|
88
88
|
app_name = credentials[:user_agent]
|
|
89
89
|
# We don't know the library version here. A breaking change needs to be
|
|
90
90
|
# introduced. This is scheduled for 0.6.0, using Common version for now.
|
|
91
|
-
lib_version = '0.5.
|
|
91
|
+
lib_version = '0.5.3'
|
|
92
92
|
soap_user_agent = "Common-Ruby-%s; %s" % [lib_version, app_name]
|
|
93
93
|
return "Savon/%s (%s)" % [Savon::Version, soap_user_agent]
|
|
94
94
|
end
|
|
@@ -293,8 +293,8 @@ module AdsCommon
|
|
|
293
293
|
def run_user_block(response, body, &block)
|
|
294
294
|
header = extract_header_data(response)
|
|
295
295
|
case block.arity
|
|
296
|
-
when 1
|
|
297
|
-
when 2
|
|
296
|
+
when 1 then yield(header)
|
|
297
|
+
when 2 then yield(header, body)
|
|
298
298
|
else
|
|
299
299
|
raise AdsCommon::Errors::ApiException,
|
|
300
300
|
"Wrong number of block parameters: %d" % block.arity
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-ads-common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 13
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.5.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Sergio Gomes
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2011-10-
|
|
19
|
+
date: 2011-10-21 00:00:00 +04:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|