zuora_api 0.2.6.4 → 0.2.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/zuora_api/login.rb +15 -16
- 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: a9c1f8874502663f7cdee03e9070150a4a4a00f8
|
4
|
+
data.tar.gz: 25aad3a7dcb1641458d3c2534b7d5fa70dcc8d49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f42b415b8c7fdddb15c28c5473e8697246af6b31fbe29021dc0ee3621c63a792b561211ffa6b035ceb6015a38740256d87ca680716e930754bd84d6583217bac
|
7
|
+
data.tar.gz: f644c667eb2585a42523985fea64c50164b5a0731524af4473f6dede562324049208c8eaf3153884859ce8342643a4ef86109f8b03a7e3a6927c4043ac82c666
|
data/Gemfile.lock
CHANGED
data/lib/zuora_api/login.rb
CHANGED
@@ -264,26 +264,25 @@ module ZuoraAPI
|
|
264
264
|
Rails.logger.debug('Connect') {"Response JSON: #{output_json}"} if debug
|
265
265
|
raise "#{output_json["reasons"][0]["code"]}::#{output_json["reasons"][0]["message"]}" if !output_json["success"] || response.code != 200
|
266
266
|
rescue => ex
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
267
|
+
if !(tries -= 1).zero
|
268
|
+
case ex.to_s.split("::")[0]
|
269
|
+
when "90000011"
|
270
|
+
Rails.logger.debug {"Session Invalid"}
|
271
|
+
self.new_session
|
272
|
+
retry
|
273
|
+
else
|
274
|
+
if debug
|
275
|
+
raise ex
|
273
276
|
else
|
274
|
-
|
275
|
-
raise ex
|
276
|
-
else
|
277
|
-
return output_json
|
278
|
-
end
|
277
|
+
return output_json
|
279
278
|
end
|
280
|
-
elsif debug
|
281
|
-
return output_json
|
282
|
-
else
|
283
|
-
raise ex
|
284
279
|
end
|
280
|
+
elsif debug
|
281
|
+
return output_json
|
282
|
+
else
|
283
|
+
raise ex
|
285
284
|
end
|
286
|
-
|
285
|
+
else
|
287
286
|
return output_json
|
288
287
|
end
|
289
288
|
|
data/lib/zuora_api/version.rb
CHANGED