zuora_api 1.7.42 → 1.7.43
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 +5 -5
- data/lib/zuora_api/login.rb +15 -1
- data/lib/zuora_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b11a677647c5905a4fdde8bee799732e93fa8c1b327a090b3d17adbbf8955058
|
|
4
|
+
data.tar.gz: a44d3a07added97058792c164f453dc2e57670c58b2596c5b4285071b79b0ae2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f400385cbb040ca5bc61db231dc31a2431f6edfb473b67a7eb55352446f8d214906621c1c033d1aad9e489fbba96510b51f97f6b01b10af7ef920ce9456b5c74
|
|
7
|
+
data.tar.gz: 51c145638fd18d09b3cd84f06e67cc95946ef6833e322c8ccb5dacfe1c3e0bcfb2d0b396326aa327407dee0d60f6e9b839bdf6c44a57e72cb3207bbf70c0cebd
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
zuora_api (1.7.
|
|
4
|
+
zuora_api (1.7.43)
|
|
5
5
|
httparty
|
|
6
6
|
nokogiri
|
|
7
7
|
railties (>= 4.1.0, < 6)
|
|
@@ -31,7 +31,7 @@ GEM
|
|
|
31
31
|
addressable (2.5.2)
|
|
32
32
|
public_suffix (>= 2.0.2, < 4.0)
|
|
33
33
|
builder (3.2.4)
|
|
34
|
-
concurrent-ruby (1.1.
|
|
34
|
+
concurrent-ruby (1.1.6)
|
|
35
35
|
crack (0.4.3)
|
|
36
36
|
safe_yaml (~> 1.0.0)
|
|
37
37
|
crass (1.0.6)
|
|
@@ -55,10 +55,10 @@ GEM
|
|
|
55
55
|
mini_portile2 (2.4.0)
|
|
56
56
|
minitest (5.14.0)
|
|
57
57
|
multi_xml (0.6.0)
|
|
58
|
-
nokogiri (1.10.
|
|
58
|
+
nokogiri (1.10.8)
|
|
59
59
|
mini_portile2 (~> 2.4.0)
|
|
60
60
|
public_suffix (3.0.3)
|
|
61
|
-
rack (2.
|
|
61
|
+
rack (2.2.2)
|
|
62
62
|
rack-test (1.1.0)
|
|
63
63
|
rack (>= 1.0, < 3)
|
|
64
64
|
rails-dom-testing (2.0.3)
|
|
@@ -86,7 +86,7 @@ GEM
|
|
|
86
86
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
87
87
|
rspec-support (~> 3.8.0)
|
|
88
88
|
rspec-support (3.8.0)
|
|
89
|
-
rubyzip (2.
|
|
89
|
+
rubyzip (2.2.0)
|
|
90
90
|
safe_yaml (1.0.4)
|
|
91
91
|
simplecov (0.16.1)
|
|
92
92
|
docile (~> 1.1)
|
data/lib/zuora_api/login.rb
CHANGED
|
@@ -568,7 +568,8 @@ module ZuoraAPI
|
|
|
568
568
|
raise ZuoraAPI::Exceptions::ZuoraAPIError.new(error.group_by {|v| v}.map {|k,v| "(#{v.size}x) - #{k == "::" ? 'UNKNOWN::No error provided' : k}"}.join(', '), response, error, success)
|
|
569
569
|
end
|
|
570
570
|
end
|
|
571
|
-
elsif response.code == 500
|
|
571
|
+
elsif response.code == 500 ||
|
|
572
|
+
(response.code == 400 && response.headers.fetch('content-type', []).include?('text/html'))
|
|
572
573
|
raise ZuoraAPI::Exceptions::ZuoraAPIInternalServerError.new('Zuora API Internal Server Error', response)
|
|
573
574
|
end
|
|
574
575
|
|
|
@@ -962,6 +963,8 @@ module ZuoraAPI
|
|
|
962
963
|
return [output_json, ex.response]
|
|
963
964
|
end
|
|
964
965
|
|
|
966
|
+
rewind_files(body) if multipart
|
|
967
|
+
|
|
965
968
|
retry
|
|
966
969
|
else
|
|
967
970
|
if errors.include?(ex.class)
|
|
@@ -987,6 +990,7 @@ module ZuoraAPI
|
|
|
987
990
|
|
|
988
991
|
tries -= 1
|
|
989
992
|
sleep(self.timeout_sleep)
|
|
993
|
+
rewind_files(body) if multipart
|
|
990
994
|
retry
|
|
991
995
|
rescue *CONNECTION_READ_EXCEPTIONS => ex
|
|
992
996
|
if tries.zero?
|
|
@@ -997,9 +1001,11 @@ module ZuoraAPI
|
|
|
997
1001
|
tries -= 1
|
|
998
1002
|
|
|
999
1003
|
if ex.is_a?(Errno::ECONNRESET) && ex.message.include?('SSL_connect')
|
|
1004
|
+
rewind_files(body) if multipart
|
|
1000
1005
|
retry
|
|
1001
1006
|
elsif timeout_retry
|
|
1002
1007
|
sleep(self.timeout_sleep)
|
|
1008
|
+
rewind_files(body) if multipart
|
|
1003
1009
|
retry
|
|
1004
1010
|
else
|
|
1005
1011
|
Rails.logger.info("Rest Call - #{ex.class} Timed out will retry after 5 seconds")
|
|
@@ -1320,5 +1326,13 @@ module ZuoraAPI
|
|
|
1320
1326
|
end
|
|
1321
1327
|
return "failure"
|
|
1322
1328
|
end
|
|
1329
|
+
|
|
1330
|
+
def rewind_files(body)
|
|
1331
|
+
return unless body.is_a? Hash
|
|
1332
|
+
|
|
1333
|
+
body.values.each do |value|
|
|
1334
|
+
value.rewind if value.is_a? File
|
|
1335
|
+
end
|
|
1336
|
+
end
|
|
1323
1337
|
end
|
|
1324
1338
|
end
|
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: 1.7.
|
|
4
|
+
version: 1.7.43
|
|
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: 2020-
|
|
11
|
+
date: 2020-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|