zuora_connect 2.0.30 → 2.0.31
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 +3 -1
- data/config/initializers/redis.rb +15 -5
- data/lib/zuora_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c353323b9470a1ddfa8b1a59c7a2ecc16ccaba034a04afc3a4debc3c33a012
|
4
|
+
data.tar.gz: 9f24e15e3da5bd757a7ae5f9bb61b5e6d5a817e3e0ec23d2c7de129ff283ed21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be6512b18a580dcc897598062fd12e7104f31f8cb611cc3a9c9c7fbc252ff867ea4f58de5e645679e711a7746ed4e9baae5e2254f0efb608d3028fbc233b73fe
|
7
|
+
data.tar.gz: 0d3f8a0af8cb7c0aaf863f2641b59c6d7f252262fab6fc9812da525a64bb7dd248adff8230c203fa2990d2a164c68ac24d7194f2b8b3b2d9bf26957b39e1a322
|
@@ -280,8 +280,10 @@ module ZuoraConnect
|
|
280
280
|
parsed_json.delete('tokens')
|
281
281
|
self.zuora_logins = parsed_json
|
282
282
|
self.save(:validate => false)
|
283
|
-
rescue *AWS_AUTH_ERRORS => ex
|
283
|
+
rescue Aws::KMS::Errors::ValidationException, *AWS_AUTH_ERRORS => ex
|
284
284
|
Rails.logger.warn(AWS_AUTH_ERRORS_MSG, ex)
|
285
|
+
rescue => ex
|
286
|
+
Rails.logger.error(AWS_AUTH_ERRORS_MSG, ex)
|
285
287
|
end
|
286
288
|
end
|
287
289
|
else
|
@@ -1,13 +1,23 @@
|
|
1
1
|
redis_url = ENV["REDIS_URL"].present? ? ENV["REDIS_URL"] : defined?(Rails.application.secrets.redis) ? Rails.application.secrets.redis : 'redis://localhost:6379/1'
|
2
2
|
resque_url = ENV["RESQUE_URL"].present? ? ENV["RESQUE_URL"] : defined?(Rails.application.secrets.resque) ? Rails.application.secrets.resque : 'redis://localhost:6379/1'
|
3
|
+
flash_url = ENV["FLASH_URL"].present? ? ENV["FLASH_URL"] : defined?(Rails.application.secrets.flash) ? Rails.application.secrets.flash : 'redis://localhost:6379/1'
|
4
|
+
browser_urls = {}
|
3
5
|
if defined?(Redis.current)
|
4
6
|
Redis.current = Redis.new(:id => "#{ZuoraConnect::Telegraf.full_process_name(process_name: 'Redis')}", :url => redis_url, :timeout => 6, :reconnect_attempts => 2)
|
7
|
+
browser_urls['Redis'] = { "url" => redis_url }
|
5
8
|
if defined?(Resque.redis)
|
6
|
-
|
9
|
+
if resque_url != redis_url
|
10
|
+
Resque.redis = Redis.new(:id => "#{ZuoraConnect::Telegraf.full_process_name(process_name: 'Resque')}", :url => resque_url, :timeout => 6, :reconnect_attempts => 2)
|
11
|
+
browser_urls['Resque'] = { "url" => resque_url }
|
12
|
+
else
|
13
|
+
Resque.redis = Redis.current
|
14
|
+
end
|
15
|
+
end
|
16
|
+
if defined?(RedisFlash)
|
17
|
+
RedisFlash.current = Redis.new(:id => "#{ZuoraConnect::Telegraf.full_process_name(process_name: 'Flash')}", :url => flash_url, :timeout => 6, :reconnect_attempts => 2)
|
18
|
+
browser_urls['Flash'] = { "url" => flash_url }
|
7
19
|
end
|
8
20
|
end
|
9
21
|
if defined?(RedisBrowser)
|
10
|
-
RedisBrowser.configure("connections" =>
|
11
|
-
|
12
|
-
"Resque" => { "url" => resque_url }})
|
13
|
-
end
|
22
|
+
RedisBrowser.configure("connections" => browser_urls)
|
23
|
+
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: 2.0.
|
4
|
+
version: 2.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|