zuora_api 1.10.8 → 1.10.9

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: 2a45196609ccd1e087973dc354b0aa009b9748f3741d45b9950f0e67a79d9605
4
- data.tar.gz: 0d74f7ab813118713a3a83e10efe894537c164c68248e46d4b8c732cf150a84b
3
+ metadata.gz: c2a845512e7b0a92e7df9140569bbd71b12db189e0b8399e3e4e7ee5b35eda16
4
+ data.tar.gz: 3ddd1693bb6efb40f5e1e4c0f1e437e325163ed260c316e40ade3608aca76b8c
5
5
  SHA512:
6
- metadata.gz: 1d47aefe0c596d641d082140f8c024103207b42e12c79e112e8bd78c9185fe19d997c1f38164799d144a366be98269f352769ee4da8f697dc2569bf7d189e5de
7
- data.tar.gz: 9be6265246f131049748a0704e42188846e6144a6c8b42a7666fb90c97d767ec37422f271c96ce96d22be025c04320027ce003923fc27c0e525525fdf2989e11
6
+ metadata.gz: e2e8b020a6a0a72283eef2230d5519538c4239559fe946d54a79bbc3e21b276fce2c7701a9e6bf10472fb78460e096e16c82e48b94da39334706a6bae5c4b2dc
7
+ data.tar.gz: a8787fa1982733ff473758e5b1d6a949683684cadcbf1eb516d19096dbfbaf73991b552fcd8e7e6b4a43f8d66fdf07ae5f0dbabae32c24f8dcece1eefec58510
@@ -112,6 +112,7 @@ module ZuoraAPI
112
112
  class ZuoraAPIRequestLimit < Error
113
113
  attr_reader :code, :response
114
114
  attr_writer :default_message
115
+ attr_accessor :logged
115
116
 
116
117
  def initialize(message = nil,response=nil, errors = [], successes = [], *args)
117
118
  @code = response.class.to_s == "HTTParty::Response" ? response.code : nil
@@ -542,7 +542,10 @@ module ZuoraAPI
542
542
  when ZuoraAPI::Exceptions::ZuoraAPIUnkownError, ZuoraAPI::Exceptions::ZuoraDataIntegrity
543
543
  Rails.logger.error('Zuora Unknown/Integrity Error', ex, exception_args)
544
544
  when ZuoraAPI::Exceptions::ZuoraAPIRequestLimit
545
- Rails.logger.info('Zuora APILimit Reached', ex, exception_args)
545
+ if ex.logged.nil? || !ex.logged
546
+ ex.logged = true
547
+ Rails.logger.info('Zuora APILimit Reached', ex, exception_args)
548
+ end
546
549
  when *(ZuoraAPI::Login::ZUORA_API_ERRORS-ZuoraAPI::Login::ZUORA_SERVER_ERRORS)
547
550
  #Rails.logger.debug('Zuora API Error', ex, self.exception_args(ex))
548
551
  when *ZuoraAPI::Login::ZUORA_SERVER_ERRORS
@@ -1,3 +1,3 @@
1
1
  module ZuoraAPI
2
- VERSION = "1.10.8"
2
+ VERSION = "1.10.9"
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.10.8
4
+ version: 1.10.9
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: 2022-03-24 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler