zuora_api 1.5.0 → 1.5.1

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
  SHA1:
3
- metadata.gz: 9b2a8ddb2245c12bb0d95d1d838a0d39190de064
4
- data.tar.gz: d4ecd28e223f763e3e7113f720f3d7dc6779f5f3
3
+ metadata.gz: 2257ef8207b9e8d0472fdc414318e455ef2fd6ae
4
+ data.tar.gz: 12e4400938a8171f125f35b188b56dd8043a2ae4
5
5
  SHA512:
6
- metadata.gz: 7200923efb484248935190b47b402ad2e987e0f92bd22a3c05576a9934ca635d7d0f9dd6b9ac2c45f9e3cb2035adafaaa5dac21ffcdbb9e1dd099cf2cc164e5f
7
- data.tar.gz: 4da71d50b312948a08bfee906241a888b9417475fad8dd1d83852940bdb50194ec8142636069b930bd7a16cd3d243bccb81b77e4ebc113320828322b195a2a5a
6
+ metadata.gz: ef6f986a09732c9246498182cca0b8f8bd31242cd902b8801d6a5931cbbb8dc2a54bb78f17e26b18e52d62f0a225aecb279f57f50746cee311bb84d4d54dfd84
7
+ data.tar.gz: 065c4ff3d7d5b76747f67cbf20b249843bce3716118eb84e9fd486db73b459a26f788f06530a41cfdbb2bb6e9e120279320cf0c4feaf0776a059ff542d876821
@@ -189,7 +189,7 @@ module ZuoraAPI
189
189
  self.status = 'Active'
190
190
  end
191
191
  return self.status
192
- rescue Net::ReadTimeout, Net::OpenTimeout, Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNREFUSED, SocketError => ex
192
+ rescue Net::ReadTimeout, Net::OpenTimeout, Errno::EPIPE, Errno::ECONNRESET, OpenSSL::SSL::SSLError, Errno::ECONNREFUSED, SocketError => ex
193
193
  if !(tries -= 1).zero?
194
194
  Rails.logger.info {"#{ex.class} Timed out will retry after 5 seconds"}
195
195
  sleep(self.timeout_sleep)
@@ -270,7 +270,7 @@ module ZuoraAPI
270
270
  else
271
271
  return output_xml, input_xml, response
272
272
  end
273
- rescue Net::OpenTimeout, Errno::ECONNRESET, Errno::ECONNREFUSED, SocketError => ex
273
+ rescue Net::OpenTimeout, Errno::ECONNRESET, OpenSSL::SSL::SSLError, Errno::ECONNREFUSED, SocketError => ex
274
274
  error_type = "#{ex.class}"
275
275
  if !(tries -= 1).zero? && timeout_retry
276
276
  Rails.logger.info {"#{ex.class} Timed out will retry after 5 seconds"}
@@ -508,7 +508,7 @@ module ZuoraAPI
508
508
  end
509
509
  des_hash[:related_objects] = output_xml.xpath(".//related-objects").xpath(".//object").map{ |x| [x.xpath(".//name").text.to_sym, [ [:url, x.attributes["href"].value], [:label, x.xpath(".//name").text ] ].to_h] }.to_h
510
510
  end
511
- rescue Net::ReadTimeout, Net::OpenTimeout, Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNREFUSED, SocketError => ex
511
+ rescue Net::ReadTimeout, Net::OpenTimeout, Errno::EPIPE, Errno::ECONNRESET, OpenSSL::SSL::SSLError, Errno::ECONNREFUSED, SocketError => ex
512
512
  error_type = "#{ex.class}"
513
513
  if !(tries -= 1).zero?
514
514
  Rails.logger.info {"#{ex.class} Timed out will retry after 5 seconds"}
@@ -573,7 +573,7 @@ module ZuoraAPI
573
573
  else
574
574
  return [output_json, response]
575
575
  end
576
- rescue Net::OpenTimeout, Errno::ECONNRESET, Errno::ECONNREFUSED, SocketError => ex
576
+ rescue Net::OpenTimeout, Errno::ECONNRESET, OpenSSL::SSL::SSLError, Errno::ECONNREFUSED, SocketError => ex
577
577
  error_type = "#{ex.class}"
578
578
  if !(tries -= 1).zero? && timeout_retry
579
579
  Rails.logger.info {"#{ex.class} Timed out will retry after 5 seconds"}
@@ -680,7 +680,7 @@ module ZuoraAPI
680
680
  self.new_session
681
681
  return get_file(:url => url, :headers => headers, :count => count - 1, :z_session => z_session, :tempfile => tempfile, :file_path => file_path, :timeout_retries => timeout_retries, :timeout => timeout)
682
682
 
683
- when Net::ReadTimeout, Net::OpenTimeout, Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNREFUSED, SocketError
683
+ when Net::ReadTimeout, Net::OpenTimeout, Errno::EPIPE, Errno::ECONNRESET, OpenSSL::SSL::SSLError, Errno::ECONNREFUSED, SocketError
684
684
  Rails.logger.fatal("#{response.class} timeout - retry")
685
685
  return get_file(:url => url, :headers => headers, :count => count, :z_session => z_session, :tempfile => tempfile, :file_path => file_path, :timeout_retries => timeout_retries - 1, :timeout => timeout)
686
686
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
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.5.0
4
+ version: 1.5.1
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: 2018-08-14 00:00:00.000000000 Z
11
+ date: 2018-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler