zuora_connect 3.1.5.pre.b → 3.1.5.pre.c

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 299831b3de0ae8c2e95bd85ff682bb0f3cbd52e764b7b00befc0f67bcddf6235
4
- data.tar.gz: 6bdb7c237e270176cfe457fcab0f0ce717a92444afd846d1aeb699fdf7369b35
3
+ metadata.gz: 46d27ab8e67bb535b556c6691e8f3e699bede791df15ef15a1017b89044db1f1
4
+ data.tar.gz: 5bed177dd9a2974e416b344c70060b22239554c60d0ed078907c0069b6eec230
5
5
  SHA512:
6
- metadata.gz: 35c5b8515a84e82f797d67eebd74a0964980a044b11692b9055dde639661268d85a6bd20ba1600ad257e1b7fd43c4730bd1cd836334f8b8da51049a5afb60a22
7
- data.tar.gz: 33ec657b9790811636763d6706dc41fc8fc29fac14d47c623eff14f7db9438b162533fc3cfcca21154bb2b4c88b79a9541f7d0cb170876572d03220c89291fcc
6
+ metadata.gz: 72bba22075d8d4990c36206db79ae31683759efa35af50b5338df0b9d93d751e35dbb465a2a399ea512e4b0f9b8fb5e7e5872e2a5f1f2d327b8f7cb427e34f93
7
+ data.tar.gz: 53233188e104192526968fc1973f065172e82a6cd637e5d5b9bdf3d4102c7dae2cffd150780c71349803872db9b4e46fc3a547c48c3350b0ac7f6dee31c874e3
@@ -52,7 +52,7 @@ module ZuoraConnect
52
52
 
53
53
  def provision
54
54
  if ZuoraConnect.configuration.disable_provisioning
55
- render(json: { status: 403, message: 'Provisioning is suspended until 2022-08-17' }, status: 403) && return
55
+ render(json: { status: 403, message: 'Provisioning is suspended' }, status: 403) && return
56
56
  end
57
57
 
58
58
  create_new_instance
@@ -516,8 +516,11 @@ module ZuoraConnect
516
516
  else
517
517
  ZuoraConnect::Exceptions::Error.new("Invalid encryption method '#{encryption_type}'.")
518
518
  end
519
- rescue ArgumentError => ex
520
- if ex.message == 'invalid base64' && encryption_type == :envelope && (kms_tries += 1) < 3
519
+ rescue ArgumentError, OpenSSL::Cipher::CipherError => ex
520
+ if (
521
+ ex.is_a?(ArgumentError) && ['invalid base64'].include?(ex.message) ||
522
+ ex.is_a?(OpenSSL::Cipher::CipherError) && ['wrong final block length', 'bad decrypt'].include?(ex.message)
523
+ ) && encryption_type == :envelope && (kms_tries += 1) < 3
521
524
  ZuoraConnect.logger.warn("Fallback to encryption 'direct', from '#{encryption_type}'", ex, self.default_ougai_items)
522
525
  encryption_type = :direct
523
526
  retry
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnect
4
- VERSION = "3.1.5-b"
4
+ VERSION = "3.1.5-c"
5
5
  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: 3.1.5.pre.b
4
+ version: 3.1.5.pre.c
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-15 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment