zuora_api 1.7.65c → 1.7.65d

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6707b17c4dcf42bc9b1125e2d0cf4060cc92a32f73ada2407d68ac23c3b13c90
4
- data.tar.gz: 59f9d07a0741f61581d85b5b0354f050f81832276cca1a1f8a6a6f974020fde6
3
+ metadata.gz: 4378b590458c431ed29397e2db3d2dfb192a5cda5e88cdbb7372748cb0a039a4
4
+ data.tar.gz: ded3b02d61513e4b63fa426f9d487da302770724df9e8f7df5ff1c8c043627a2
5
5
  SHA512:
6
- metadata.gz: aa61a11e859e7a00b82903f2c792a3b9bbe486a24c8774cbe0b049db7ffbf9afe800060c0c41aa782918d3e373f57c45eb0e50143bc7a487c29d5bc09db02458
7
- data.tar.gz: b6bf8efa26d37b295a1ed4db27809833e3821d03fb62d2cc186c11846b504d6b85591800cd105494820b53ef4a76cd36f1e0187f6c94780c836787dd43190c9e
6
+ metadata.gz: 1ba5cee3c08537339902615885a9f4d6f808d3a1bb973dcc39e334be30e153b443ab1bb798de5691c0dffdeea844b3f4d292bf106f278d611749f512a7563332
7
+ data.tar.gz: 82fb03c3825a44af2f051a6022461642ec57a330310ab010575f6421f1a8933af2c5c84b267f5d3226e9db0b2876b2a43ad4d0990d5b47ba42b166ad384a893c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zuora_api (1.7.65c)
4
+ zuora_api (1.7.65d)
5
5
  httparty
6
6
  nokogiri
7
7
  railties (>= 4.1.0, < 6)
@@ -526,36 +526,26 @@ module ZuoraAPI
526
526
  sleep(timeout_sleep_interval)
527
527
  retry
528
528
  rescue *CONNECTION_READ_EXCEPTIONS => ex
529
- if tries.zero?
530
- if output_exception_messages
531
- if Rails.logger.class.to_s == "Ougai::Logger"
532
- Rails.logger.error("SOAP Call - Timed out will retry after #{timeout_sleep_interval} seconds", ex)
533
- else
534
- Rails.logger.error("SOAP Call - #{ex.class} Timed out will retry after #{timeout_sleep_interval} seconds")
535
- end
529
+ if !tries.zero?
530
+ tries -= 1
531
+
532
+ if ex.is_a?(Errno::ECONNRESET) && ex.message.include?('SSL_connect')
533
+ retry
534
+ elsif timeout_retry
535
+ sleep(timeout_sleep_interval)
536
+ retry
536
537
  end
537
- raise ZuoraAPI::Exceptions::ZuoraAPIReadTimeout.new("Received read timeout from #{url}") if ex.is_a?(Net::ReadTimeout)
538
- raise ex
539
538
  end
540
539
 
541
- tries -= 1
542
-
543
- if ex.is_a?(Errno::ECONNRESET) && ex.message.include?('SSL_connect')
544
- retry
545
- elsif timeout_retry
546
- sleep(timeout_sleep_interval)
547
- retry
548
- else
549
- if output_exception_messages
550
- if Rails.logger.class.to_s == "Ougai::Logger"
551
- Rails.logger.error("SOAP Call - Timed out will retry after #{timeout_sleep_interval} seconds", ex)
552
- else
553
- Rails.logger.error("SOAP Call - #{ex.class} Timed out will retry after #{timeout_sleep_interval} seconds")
554
- end
540
+ if output_exception_messages
541
+ if Rails.logger.class.to_s == "Ougai::Logger"
542
+ Rails.logger.error("SOAP Call - Timed out will retry after #{timeout_sleep_interval} seconds", ex)
543
+ else
544
+ Rails.logger.error("SOAP Call - #{ex.class} Timed out will retry after #{timeout_sleep_interval} seconds")
555
545
  end
556
- raise ZuoraAPI::Exceptions::ZuoraAPIReadTimeout.new("Received read timeout from #{url}") if ex.is_a?(Net::ReadTimeout)
557
- raise ex
558
546
  end
547
+ raise ZuoraAPI::Exceptions::ZuoraAPIReadTimeout.new("Received read timeout from #{url}") if ex.instance_of?(Net::ReadTimeout)
548
+ raise ex
559
549
  rescue => ex
560
550
  raise ex
561
551
  else
@@ -1108,36 +1098,25 @@ module ZuoraAPI
1108
1098
  sleep(timeout_sleep_interval)
1109
1099
  retry
1110
1100
  rescue *CONNECTION_READ_EXCEPTIONS => ex
1111
- if tries.zero?
1112
- if output_exception_messages
1113
- if Rails.logger.class.to_s == "Ougai::Logger"
1114
- Rails.logger.error("Rest Call - Timed out will retry after #{timeout_sleep_interval} seconds", ex)
1115
- else
1116
- Rails.logger.error("Rest Call - #{ex.class} Timed out will retry after #{timeout_sleep_interval} seconds")
1117
- end
1101
+ if !tries.zero?
1102
+ tries -= 1
1103
+ if ex.is_a?(Errno::ECONNRESET) && ex.message.include?('SSL_connect')
1104
+ retry
1105
+ elsif timeout_retry
1106
+ sleep(timeout_sleep_interval)
1107
+ retry
1118
1108
  end
1119
- raise ZuoraAPI::Exceptions::ZuoraAPIReadTimeout.new("Received read timeout from #{url}") if ex.is_a?(Net::ReadTimeout)
1120
- raise ex
1121
1109
  end
1122
-
1123
- tries -= 1
1124
-
1125
- if ex.is_a?(Errno::ECONNRESET) && ex.message.include?('SSL_connect')
1126
- retry
1127
- elsif timeout_retry
1128
- sleep(timeout_sleep_interval)
1129
- retry
1130
- else
1131
- if output_exception_messages
1132
- if Rails.logger.class.to_s == "Ougai::Logger"
1133
- Rails.logger.error("Rest Call - Timed out will retry after #{timeout_sleep_interval} seconds", ex)
1134
- else
1135
- Rails.logger.error("Rest Call - #{ex.class} Timed out will retry after #{timeout_sleep_interval} seconds")
1136
- end
1110
+
1111
+ if output_exception_messages
1112
+ if Rails.logger.class.to_s == "Ougai::Logger"
1113
+ Rails.logger.error("Rest Call - Timed out will retry after #{timeout_sleep_interval} seconds", ex)
1114
+ else
1115
+ Rails.logger.error("Rest Call - #{ex.class} Timed out will retry after #{timeout_sleep_interval} seconds")
1137
1116
  end
1138
- raise ZuoraAPI::Exceptions::ZuoraAPIReadTimeout.new("Received read timeout from #{url}") if ex.is_a?(Net::ReadTimeout)
1139
- raise ex
1140
1117
  end
1118
+ raise ZuoraAPI::Exceptions::ZuoraAPIReadTimeout.new("Received read timeout from #{url}") if ex.instance_of?(Net::ReadTimeout)
1119
+ raise ex
1141
1120
  rescue => ex
1142
1121
  raise ex
1143
1122
  else
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.7.65c"
2
+ VERSION = "1.7.65d"
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.7.65c
4
+ version: 1.7.65d
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zuora Strategic Solutions Group