zuora_connect 1.4.52 → 1.4.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/zuora_connect/app_instance_base.rb +9 -2
- data/lib/zuora_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6c32eb2ed39e1e7fc999320bd68cb4d1fd94743
|
4
|
+
data.tar.gz: 76926265798c3e1861ab8ae9ca0c2f28c0630d97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e0c1a0350db2e1fc00787a3027ee69add1a18f8ad265aee13733e37bfca8cfd1d3df09e9c217eb0c6a6dfd8552aab4fb9bb6f8d853afe281a866d6f3445d377
|
7
|
+
data.tar.gz: 30b8ac54f5b06cb093b1fa801718854bc3d21b8bc9845b88805615b3d059e388eac63df7c36af7490425f401d98f003b749653e5ed00162bf7b66f544427937d
|
@@ -24,7 +24,14 @@ module ZuoraConnect
|
|
24
24
|
PaperTrail.whodunnit = session["#{self.id}::user::email"].present? ? session["#{self.id}::user::email"] : nil if session.present?
|
25
25
|
end
|
26
26
|
if defined?(Redis.current)
|
27
|
-
|
27
|
+
cached_instance = Redis.current.get("AppInstance:#{self.id}")
|
28
|
+
if cached_instance.blank?
|
29
|
+
Rails.logger.debug('Cached AppInstance Missing')
|
30
|
+
return {}
|
31
|
+
else
|
32
|
+
Rails.logger.debug('Cached AppInstance Found')
|
33
|
+
return decrypt_data(data: cached_instance, rescue_return: {})
|
34
|
+
end
|
28
35
|
else
|
29
36
|
return session
|
30
37
|
end
|
@@ -246,7 +253,7 @@ module ZuoraConnect
|
|
246
253
|
while !response["nextPage"].blank?
|
247
254
|
url = login.rest_endpoint(response["nextPage"].split('/v1/').last)
|
248
255
|
Rails.logger.debug("Fetch Catalog URL #{url}")
|
249
|
-
output_json, response = login.rest_call(:debug => false, :url => url, :errors => [ZuoraAPI::Exceptions::ZuoraAPISessionError])
|
256
|
+
output_json, response = login.rest_call(:debug => false, :url => url, :errors => [ZuoraAPI::Exceptions::ZuoraAPISessionError], :timeout_retry => true)
|
250
257
|
Rails.logger.debug("Fetch Catalog Response Code #{response.code}")
|
251
258
|
Rails.logger.debug("Fetch Catalog DATA #{output_json.to_json}")
|
252
259
|
|
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.
|
4
|
+
version: 1.4.53
|
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-09-
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord-session_store
|