google-ads-common 0.5.2 → 0.5.3

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.5.3:
2
+ - Ruby 1.9 compatibility hotfix.
3
+
1
4
  0.5.2:
2
5
  - Additional information such as headers are now available via user-specified
3
6
  block. See API-specific README for more details.
@@ -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.2'
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.2'
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: yield(header)
297
- when 2: yield(header, body)
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
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-20 00:00:00 +04:00
19
+ date: 2011-10-21 00:00:00 +04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency