google-ads-common 0.5.4 → 0.5.5

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
@@ -1,3 +1,6 @@
1
+ 0.5.5:
2
+ - Now support Savon 0.9.7.
3
+
1
4
  0.5.4:
2
5
  - Improved support for OAuth.
3
6
  - Cleanups and better wsdl compatibility.
data/README CHANGED
@@ -17,7 +17,7 @@ Install it using the gem install command.
17
17
  $ gem install --local google-ads-common-VERSION.gem
18
18
 
19
19
  The following gem libraries are required:
20
- - savon v0.9.6;
20
+ - savon v0.9.7;
21
21
  - httpi v0.9.2 or greater;
22
22
  - httpclient v2.1.6 or greater.
23
23
 
data/Rakefile CHANGED
@@ -47,7 +47,7 @@ spec = Gem::Specification.new do |s|
47
47
  s.test_files = tests
48
48
  s.has_rdoc = true
49
49
  s.extra_rdoc_files = docs
50
- s.add_dependency('savon', '= 0.9.6')
50
+ s.add_dependency('savon', '= 0.9.7')
51
51
  s.add_dependency('httpclient', '>= 2.1.6')
52
52
  s.add_dependency('httpi', '~> 0.9.2')
53
53
  s.add_dependency('oauth', '~> 0.4.5')
@@ -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.4'
29
+ ADS_COMMON_VERSION = '0.5.5'
30
30
 
31
31
  # Get the available API versions.
32
32
  #
@@ -103,6 +103,11 @@ module AdsCommon
103
103
  raise NotImplementedError, 'api_name not overriden.'
104
104
  end
105
105
 
106
+ # Get the API path.
107
+ def api_path
108
+ return api_name.to_s.snakecase
109
+ end
110
+
106
111
  # Get the default environment.
107
112
  #
108
113
  # Returns:
@@ -176,7 +181,7 @@ module AdsCommon
176
181
  #
177
182
  def do_require(version, service)
178
183
  filename = "%s/%s/%s" %
179
- [api_name.to_s.snakecase, version.to_s, service.to_s.snakecase]
184
+ [api_path, version.to_s, service.to_s.snakecase]
180
185
  require filename
181
186
  return filename
182
187
  end
@@ -88,7 +88,7 @@ module AdsCommon
88
88
  app_name = credentials[:userAgent] || credentials[:useragent]
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.4'
91
+ lib_version = '0.5.5'
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
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-ads-common
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 5
9
- - 4
10
- version: 0.5.4
8
+ - 5
9
+ version: 0.5.5
11
10
  platform: ruby
12
11
  authors:
13
12
  - Sergio Gomes
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-11-01 00:00:00 +04:00
18
+ date: 2011-11-28 00:00:00 +04:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -27,12 +26,11 @@ dependencies:
27
26
  requirements:
28
27
  - - "="
29
28
  - !ruby/object:Gem::Version
30
- hash: 55
31
29
  segments:
32
30
  - 0
33
31
  - 9
34
- - 6
35
- version: 0.9.6
32
+ - 7
33
+ version: 0.9.7
36
34
  type: :runtime
37
35
  version_requirements: *id001
38
36
  - !ruby/object:Gem::Dependency
@@ -43,7 +41,6 @@ dependencies:
43
41
  requirements:
44
42
  - - ">="
45
43
  - !ruby/object:Gem::Version
46
- hash: 7
47
44
  segments:
48
45
  - 2
49
46
  - 1
@@ -59,7 +56,6 @@ dependencies:
59
56
  requirements:
60
57
  - - ~>
61
58
  - !ruby/object:Gem::Version
62
- hash: 63
63
59
  segments:
64
60
  - 0
65
61
  - 9
@@ -75,7 +71,6 @@ dependencies:
75
71
  requirements:
76
72
  - - ~>
77
73
  - !ruby/object:Gem::Version
78
- hash: 5
79
74
  segments:
80
75
  - 0
81
76
  - 4
@@ -94,25 +89,25 @@ extra_rdoc_files:
94
89
  - COPYING
95
90
  - ChangeLog
96
91
  files:
97
- - lib/ads_common/auth/client_login_handler.rb
98
92
  - lib/ads_common/auth/base_handler.rb
93
+ - lib/ads_common/auth/client_login_handler.rb
99
94
  - lib/ads_common/auth/oauth_handler.rb
100
- - lib/ads_common/credential_handler.rb
95
+ - lib/ads_common/build/savon_abstract_generator.rb
101
96
  - lib/ads_common/build/savon_generator.rb
102
- - lib/ads_common/build/savon_registry_generator.rb
103
97
  - lib/ads_common/build/savon_registry.rb
98
+ - lib/ads_common/build/savon_registry_generator.rb
104
99
  - lib/ads_common/build/savon_service_generator.rb
105
- - lib/ads_common/build/savon_abstract_generator.rb
106
- - lib/ads_common/api_config.rb
107
- - lib/ads_common/config.rb
108
- - lib/ads_common/api.rb
109
100
  - lib/ads_common/savon_headers/base_header_handler.rb
110
- - lib/ads_common/savon_headers/simple_header_handler.rb
111
- - lib/ads_common/savon_headers/oauth_header_handler.rb
112
101
  - lib/ads_common/savon_headers/httpi_request_proxy.rb
113
- - lib/ads_common/savon_service.rb
114
- - lib/ads_common/http.rb
102
+ - lib/ads_common/savon_headers/oauth_header_handler.rb
103
+ - lib/ads_common/savon_headers/simple_header_handler.rb
104
+ - lib/ads_common/api_config.rb
105
+ - lib/ads_common/api.rb
106
+ - lib/ads_common/config.rb
107
+ - lib/ads_common/credential_handler.rb
115
108
  - lib/ads_common/errors.rb
109
+ - lib/ads_common/http.rb
110
+ - lib/ads_common/savon_service.rb
116
111
  - Rakefile
117
112
  - test/test_config.rb
118
113
  - test/test_savon_service.rb
@@ -133,7 +128,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
128
  requirements:
134
129
  - - ">="
135
130
  - !ruby/object:Gem::Version
136
- hash: 3
137
131
  segments:
138
132
  - 0
139
133
  version: "0"
@@ -142,7 +136,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
136
  requirements:
143
137
  - - ">="
144
138
  - !ruby/object:Gem::Version
145
- hash: 3
146
139
  segments:
147
140
  - 0
148
141
  version: "0"