zuora_api 0.2.6.9 → 0.2.7.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/zuora_api/login.rb +5 -6
- data/lib/zuora_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 316da6cfc7bdfda2eb32301749d6830dfc6337f7
|
|
4
|
+
data.tar.gz: 379d5933b1615b2985bc09c3c24e618fb73878c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fa52339742bf21b6364c8123cf4534da30d4d13788479594a9acc15f7b306579ba19984453c8f808918c2a86dae57db4645534d3d63f94e625b86207e170114
|
|
7
|
+
data.tar.gz: 905294c50b5222b17874c505acfbcc7e69730a97c91b3aaab9ff4d1a8ec7430b6664f696bb377d22fcc8e641b263a4e8e87c9a0b94214276aa031f2233fe26ef
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
|
@@ -259,8 +259,7 @@ module ZuoraAPI
|
|
|
259
259
|
tries ||= 2
|
|
260
260
|
raise "Method not supported, supported methods include: :get, :post, :put, :delete, :patch, :head, :options" if ![:get, :post, :put, :delete, :patch, :head, :options].include?(method)
|
|
261
261
|
response = HTTParty::Request.new("Net::HTTP::#{method.to_s.capitalize}".constantize, url, body: body, headers: {'Content-Type' => "application/json; charset=utf-8", "Authorization" => "ZSession #{self.get_session}"}.merge(headers)).perform
|
|
262
|
-
|
|
263
|
-
raise "#{response.code}::#{response.return_code}" if !response.success?
|
|
262
|
+
raise "#{response.code}::#{response.message}" if !response.success?
|
|
264
263
|
Rails.logger.debug('Connect') { response.code} if debug
|
|
265
264
|
output_json = JSON.parse(response.body)
|
|
266
265
|
Rails.logger.debug('Connect') {"Response JSON: #{output_json}"} if debug
|
|
@@ -276,16 +275,16 @@ module ZuoraAPI
|
|
|
276
275
|
if debug
|
|
277
276
|
raise ex
|
|
278
277
|
else
|
|
279
|
-
return output_json
|
|
278
|
+
return output_json, response
|
|
280
279
|
end
|
|
281
280
|
end
|
|
282
281
|
elsif debug
|
|
283
|
-
return output_json
|
|
284
|
-
else
|
|
285
282
|
raise ex
|
|
283
|
+
else
|
|
284
|
+
return output_json, response
|
|
286
285
|
end
|
|
287
286
|
else
|
|
288
|
-
return output_json
|
|
287
|
+
return output_json, response
|
|
289
288
|
end
|
|
290
289
|
|
|
291
290
|
def update_create_tenant
|
data/lib/zuora_api/version.rb
CHANGED