zuora_connect 1.4.64 → 1.4.65

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
  SHA1:
3
- metadata.gz: b98193c077f3336dc1d67709255d37cfa1e2d827
4
- data.tar.gz: a03c9655bf983819deb930e9e76d48197a3c3acf
3
+ metadata.gz: c0fe0a8ca73e850b80f646f13ce1da4ef0d9e19d
4
+ data.tar.gz: bbe2bcebb6ef2be73c3a2ef83414820fbc8d6ddb
5
5
  SHA512:
6
- metadata.gz: 444434e777c1ed26767afd4710a66086d41adc2db234cc566e5853b4500d0ef5d5167082459868bac1fb62f57b24f04c63c9c785ef52af639e08b6301e41a24c
7
- data.tar.gz: 92010439edd791ef72a4da8726a0b747396ee7529c9296e60d8c947dd8a2ba28b5a03685e9406be9f566ea85d0a5a98ffb4cf29d866742fdabfc5f160c376a4e
6
+ metadata.gz: 3158556e7541dd63ea9b758ca2790fd46e3b01a61eacdc2d581800c453b0ea6ecc2e9b77f8a2117b8f289dfa0f7a73894bfb482e3685382cf17da831722d2c7c
7
+ data.tar.gz: c7a75a3d467038f8c8d32da8c56aa09ca8bebc19d678f8ea92ae2f0952d5f808570c79a551260fb0e65675e77a21ca6392718e234e2c01e9af08e0c64317a92d
@@ -91,6 +91,10 @@ module ZuoraConnect
91
91
  end
92
92
  end
93
93
 
94
+ def api_limit?
95
+ return Redis.current.get("APILimits:#{@appinstance.id}").to_bool
96
+ end
97
+
94
98
  def queue_pause(time: nil)
95
99
  if time.present?
96
100
  raise "Time must be fixnum of seconds." if time.class != Fixnum
@@ -403,8 +407,7 @@ module ZuoraConnect
403
407
  raise ZuoraConnect::Exceptions::ConnectCommunicationError.new("Error Communicating with Connect", response.body, response.code)
404
408
  end
405
409
  rescue Net::ReadTimeout, Net::OpenTimeout, Errno::EPIPE, Errno::ECONNRESET, Errno::ECONNREFUSED, SocketError
406
- if count < 2
407
- count += 1
410
+ if (count += 1) < 2
408
411
  retry
409
412
  else
410
413
  raise
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.4.64"
2
+ VERSION = "1.4.65"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.64
4
+ version: 1.4.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-03 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-session_store