zuora_api 1.6.39 → 1.6.42

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 327020361fd779fff57aad1eae6b019cb0d89117e5e6a2f43bcb6b73577287ab
4
- data.tar.gz: 14b99e36c696d2b8627fce73ad56ae24e6e49e3805a480f532d9a42837638405
3
+ metadata.gz: f12edc1972daf4112ac4bfd93df6463356fecc0dcbb5c324ff5e88b795a01bd9
4
+ data.tar.gz: e3c02a0d1bdfc510caf909ac43982a6a4d22c9d8a8a2b1bcd9235b6fb67f230d
5
5
  SHA512:
6
- metadata.gz: 1cbb02c248d3cf410fdb16b4dfaabe11b7cb5328c8c0ed665aa7bc878221a23b1db8cd1733f8c0f71a171deee979452c36885c783262e9c9c07fca3bc8e831ce
7
- data.tar.gz: 13262076080a1aadfaa9bc40921c8287cf6c921e7dcd93d481b57d83d1878cc6b639f19f985f8814dbd90d113c8212cbe5b4519114e0c725dfad28224ae98545
6
+ metadata.gz: 7822396761d0ea39c16453b4b6a85a8f1d9d9daf950038aba2784869f271b69513fb4fb27f301dd5da79331f150cc319df9374af3433a949a3d39c3e7cd5bb76
7
+ data.tar.gz: 42d35790883c4ed485e33ed3f4b57926307cc1fc93e1cd745c531e8fca083770bc177ad9a626f6fe4bac3e924d21c34fc64709146e169401828b822c9f026b5f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.6.39)
4
+ zuora_api (1.6.42)
5
5
  httparty
6
6
  nokogiri
7
7
  railties (>= 4.1.0, < 5.2)
@@ -20,9 +20,11 @@ module ZuoraAPI
20
20
  # raise "URL is improper. URL must contain zuora.com, zuora.eu, or zuora.na" if /zuora.com|zuora.eu|zuora.na/ === url
21
21
  self.hostname = /(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url)[0] if !/(?<=https:\/\/|http:\/\/)(.*?)(?=\/|$)/.match(url).nil?
22
22
  if !/apps\/services\/a\/\d{2}\.\d$/.match(url.strip)
23
- self.url = "https://#{hostname}/apps/services/#{MIN_Endpoint}"
23
+ self.url = "https://#{hostname}/apps/services/a/#{MIN_Endpoint}"
24
24
  elsif MIN_Endpoint.to_f > url.scan(/(\d{2}\.\d)$/).dig(0,0).to_f
25
25
  self.url = url.gsub(/(\d{2}\.\d)$/, MIN_Endpoint)
26
+ else
27
+ self.url = url
26
28
  end
27
29
  self.entity_id = get_entity_id(entity_id: entity_id)
28
30
  self.errors = Hash.new
@@ -469,6 +471,12 @@ module ZuoraAPI
469
471
  else
470
472
  raise ex
471
473
  end
474
+ rescue Errno::ECONNRESET => ex
475
+ if !(tries -= 1).zero? && ex.message.include?('SSL_connect')
476
+ retry
477
+ else
478
+ raise ex
479
+ end
472
480
  rescue => ex
473
481
  raise ex
474
482
  else
@@ -815,6 +823,12 @@ module ZuoraAPI
815
823
  else
816
824
  raise ex
817
825
  end
826
+ rescue Errno::ECONNRESET => ex
827
+ if !(tries -= 1).zero? && ex.message.include?('SSL_connect')
828
+ retry
829
+ else
830
+ raise ex
831
+ end
818
832
  rescue => ex
819
833
  raise ex
820
834
  else
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.6.39"
2
+ VERSION = "1.6.42"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.39
4
+ version: 1.6.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group