zuora_connect 2.0.30 → 2.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 813e5c74752fe3397918c21b8ca7b767193687b511b1dddee60fd6ab7f3b3e98
4
- data.tar.gz: fd382f397e4ed8e876c9c2164ed65f5bd1d3b72a419660b78d6dcbf9ff1bb5db
3
+ metadata.gz: f4c353323b9470a1ddfa8b1a59c7a2ecc16ccaba034a04afc3a4debc3c33a012
4
+ data.tar.gz: 9f24e15e3da5bd757a7ae5f9bb61b5e6d5a817e3e0ec23d2c7de129ff283ed21
5
5
  SHA512:
6
- metadata.gz: 89f11fe5126ae2eb9bfccc7b8b98030c3050e7026dba3e3373b37ef8ebef753e3b8862ccdf2ce8f52ab486cb40288f3de0610a986a9c69c83acda5a9c3cacdbd
7
- data.tar.gz: cd51199c9e0a59539a860d5bb7267cac8ecb5fca7ec1e0678cda06ef914ae755d19b548219c609d63b6eb86cad59f41804e5867739ef12907e7c35a7fe1dca49
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
- Resque.redis = resque_url != redis_url ? Redis.new(:id => "#{ZuoraConnect::Telegraf.full_process_name(process_name: 'Resque')}", :url => resque_url, :timeout => 6, :reconnect_attempts => 2) : Redis.current
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
- "Redis" => { "url" => redis_url },
12
- "Resque" => { "url" => resque_url }})
13
- end
22
+ RedisBrowser.configure("connections" => browser_urls)
23
+ end
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.30"
2
+ VERSION = "2.0.31"
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: 2.0.30
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-12 00:00:00.000000000 Z
11
+ date: 2020-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment