zuora_connect 2.0.57y → 2.0.58

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: 5b0b99979db4af889b1c43657367d2872868a57acba85b3ab557b3607cda970e
4
- data.tar.gz: e05faaef0f5cadad7ed708f2be331caf2880301c5af0b3935b46a1ae4ee56bab
3
+ metadata.gz: 1b0443ea374a1f1f82e212960a7df80fb9aa953fb4bf0fcb123949e73dfc622d
4
+ data.tar.gz: a356f5120206bf8febbdca0db439c5792dca19156776356f09f5a39da50cf7b1
5
5
  SHA512:
6
- metadata.gz: 3bfa76132b7f16cc500576804c817ba94092a75725953524090f59af82808a7e537c3798774d7d6103b1345479f368523c75a46afd38229333483e6e52157d12
7
- data.tar.gz: 4d73ac1a5da30a3c6e98776af80d7fa6e1f118b7167a269aa553352f0ab1d9e57e4ef1f01edbebf380082a99b0655e784385c63527f36d41d9b5bd7f2321a311
6
+ metadata.gz: 34e40410cfcd4752b174d584d2cf883084630b56e7e4d897733da177fa66ece76c9ec3b2556e0ea3778b05eed949c6dba9e4c37f635d178fb9d77f776ec5221f
7
+ data.tar.gz: '08dde90f26d809089f79928c0cfa6d7c43d551b61448b7ce040b0ba05aa64552599ff3e3c49f46feb54340d846565faa75f891730501e2ad1ffe6a8c554856e5'
@@ -24,9 +24,13 @@ module Resque
24
24
  @appinstance.new_session(holding_pattern: true)
25
25
  rescue ActiveRecord::RecordNotFound => exception
26
26
  # If we can't find app_instance let make sure we cleanup
27
- Rails.logger.info("No instance found, purge")
28
- ZuoraConnect::AppInstance.new(id: args['app_instance_id'].to_i).prune_data
29
- return
27
+ if Redis.current.zscore("AppInstance:Deleted", args['app_instance_id'].to_i).present?
28
+ Rails.logger.info("No instance found, purge")
29
+ ZuoraConnect::AppInstance.new(id: args['app_instance_id'].to_i).prune_data
30
+ return
31
+ else
32
+ raise
33
+ end
30
34
  rescue ActiveRecord::StatementInvalid => exception
31
35
  if (connection_count += 1) <= 3 &&
32
36
  (
@@ -272,12 +272,12 @@ module ZuoraConnect
272
272
  ##
273
273
  # If the ZSession was refreshed, but it's still the same user and they aren't launching from the side bar,
274
274
  # we don't need to continue
275
- is_same_user = identity.slice("entityId", "tenantId", "userId", "userProfileId") == (session["ZuoraCurrentIdentity"] || {}).slice("entityId", "tenantId", "userId", "userProfileId")
275
+ is_different_user = identity.slice("entityId", "tenantId", "userId", "userProfileId") == (session["ZuoraCurrentIdentity"] || {}).slice("entityId", "tenantId", "userId", "userProfileId")
276
276
  zuora_details["identity"]["entityId"] = identity['entityId']
277
277
  session["ZuoraCurrentIdentity"] = identity
278
278
  session["ZuoraCurrentEntity"] = identity['entityId']
279
279
  session["ZSession"] = cookies['ZSession']
280
- unless is_same_user && !params[:sidebar_launch].to_s.to_bool
280
+ if is_different_user || params[:sidebar_launch].to_s.to_bool
281
281
  zuora_instance_id = nil
282
282
  ZuoraConnect.logger.debug("UI Authorization", zuora: zuora_details)
283
283
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.57y"
2
+ VERSION = "2.0.58"
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.57y
4
+ version: 2.0.58
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-06-25 00:00:00.000000000 Z
11
+ date: 2020-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment
@@ -429,9 +429,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
429
429
  version: '0'
430
430
  required_rubygems_version: !ruby/object:Gem::Requirement
431
431
  requirements:
432
- - - ">"
432
+ - - ">="
433
433
  - !ruby/object:Gem::Version
434
- version: 1.3.1
434
+ version: '0'
435
435
  requirements: []
436
436
  rubygems_version: 3.0.3
437
437
  signing_key: