zuora_api 0.2.5.2 → 0.2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zuora_api/login.rb +2 -1
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0409dff31b8141c742abcbae06dcfaf4870bcaf4
|
4
|
+
data.tar.gz: aee31e9d143a81b6b88444e74f34bb1494321f1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45334f881630ef4b16488f875d2c7c3ca952f5bdc5f885869ce0e00b5aa30a02f0ed1df07b7b5c651f75b3354d573baec25168907ee9db0d4d2d828d3538aca2
|
7
|
+
data.tar.gz: 99ca1f118a690bfa9c32c36310c3e884b6d43715775a25368fbefa1276d69c78db69057cbc0186493b85f89b17aa1578186fc20441a65f1507829cf651b8d93b
|
data/lib/zuora_api/login.rb
CHANGED
@@ -250,9 +250,10 @@ module ZuoraAPI
|
|
250
250
|
raise "Method not supported, supported methods include: :get, :post, :put, :delete, :patch, :head, :options" if ![:get, :post, :put, :delete, :patch, :head, :options].include?(method)
|
251
251
|
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}"}).perform
|
252
252
|
raise "#{response.code}::#{response.return_code}" if !response.success?
|
253
|
+
Rails.logger.debug('Connect') { response.code}
|
253
254
|
output_json = JSON.parse(response.body)
|
254
255
|
Rails.logger.debug('Connect') {"Response JSON: #{output_json}"}
|
255
|
-
raise "#{output_json["reasons"][0]["code"]}::#{output_json["reasons"][0]["message"]}" if !output_json["success"]
|
256
|
+
raise "#{output_json["reasons"][0]["code"]}::#{output_json["reasons"][0]["message"]}" if !output_json["success"] || response.code != 200
|
256
257
|
rescue => ex
|
257
258
|
if !(tries -= 1).zero?
|
258
259
|
case ex.to_s.split("::")[0]
|
data/lib/zuora_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.5.
|
4
|
+
version: 0.2.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zuora Strategic Solutions Group
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|