zuora_connect 1.7.13 → 1.7.14

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
  SHA1:
3
- metadata.gz: 57c64ea79f4b3a6ba77116c1676bb251646a437b
4
- data.tar.gz: 0cd25ac6227fe07ddb2c65c20a0be9a9a624e58a
3
+ metadata.gz: 1801b0ed92964d4fb54e800c88611bdef7c4eb41
4
+ data.tar.gz: 4e079bfbe6976531f9f71dad400e6514b81d3483
5
5
  SHA512:
6
- metadata.gz: d2cf687aa779cd9b95a6c941b9e6801b9d078ee1f1e72bfe4dcb5a598c940551df2da7ea384764c89eb3f59e36adedc2df6f025c2d0266abca276750f437d1dd
7
- data.tar.gz: 7df46ffe2704050c65f1373e24c2bd61eee127dd4aa90144b2b81ac2f11b7325f60c8e1a78f3dbad3b81a1e4f2f888d90120bd323db10555dc0b8668e0eaa45b
6
+ metadata.gz: eff2680fe0d4432beafa7c1e1e0a2bc91b74137eb78ff4decf966134f737ec457f2663ea85fb730b97b9022b6794cc233c20448eea13f5e156bea7e971a5c807
7
+ data.tar.gz: 7c98ca9b8fdaf49711e8077403fc1fc7a555dc25270ee41c7204d9a8e37823ce77ee168614e31956bc0556a3a8f907ae93bd0b9c6ba7e692580be048de54782c
@@ -433,20 +433,21 @@ module ZuoraConnect
433
433
 
434
434
  def decrypt_data(data: nil, rescue_return: nil)
435
435
  return data if data.blank?
436
- begin
437
- if Rails.env == 'development'
436
+ if Rails.env == 'development'
437
+ begin
438
438
  return JSON.parse(data)
439
- else
440
- begin
441
- return JSON.parse(self.encryptor.decrypt_and_verify(CGI::unescape(data)))
442
- rescue ActiveSupport::MessageVerifier::InvalidSignature => ex
443
- Rails.logger.fatal('Error Decrypting')
444
- return rescue_return
445
- end
439
+ rescue JSON::ParserError => ex
440
+ return data
441
+ end
442
+ else
443
+ begin
444
+ return JSON.parse(encryptor.decrypt_and_verify(CGI::unescape(data)))
445
+ rescue ActiveSupport::MessageVerifier::InvalidSignature => ex
446
+ Rails.logger.fatal('Error Decrypting')
447
+ return rescue_return
448
+ rescue JSON::ParserError => ex
449
+ return encryptor.decrypt_and_verify(CGI::unescape(data))
446
450
  end
447
- rescue JSON::ParserError => ex
448
- Rails.logger.fatal('Error Parsing')
449
- return rescue_return
450
451
  end
451
452
  end
452
453
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.7.13"
2
+ VERSION = "1.7.14"
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.7.13
4
+ version: 1.7.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-18 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment