zuora_connect 2.0.13 → 2.0.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
  SHA256:
3
- metadata.gz: 07e73fb957129c6479da05fae7c9ceb1a06139417161a7d0c94fae98ca0fd879
4
- data.tar.gz: 8c72f13fe929201167cf9d1a00c4cbd1b7c0c43e5b0a08b4227949a0a7b3399e
3
+ metadata.gz: 52b8a547b0e701edb9c51e5dd5b5cd09bb3cecc60130b5cc7435f2aca85a4eb8
4
+ data.tar.gz: 5e12b8e9f461ab5e63883ce3eb68dc73e2e1932b87fc5753d5299f353ea45f03
5
5
  SHA512:
6
- metadata.gz: 7d32ac57e48100fcac10b05f2f0e29c3fe838fd42bc816f80e45957a665a7f91b4dec70db192db1de29ef3f6abaa06983d684e73660866c31ef2df5af61b125c
7
- data.tar.gz: 20331fef52bd4544169489b6e147229b0be4cb509801ff6198bf170b7a7b2e3fb2e7c535b17eea6f49895ec8d98fb691c4bc81793864a372c9109735f8b9cb94
6
+ metadata.gz: 2600517d4d40d2c4d792327abe5653db9b17115c41823e6bfc84b8ef354d5090a6acf06b5eb73b470550efbf87161ad3b0387fc5238d42f6aa832b3ba1ae8ded
7
+ data.tar.gz: 747d0afe7d31385da67872406ca6c9fa6f423314fbf5d767f624e4e2d1a70ed4c2d9cbc1c1a0efa86a560a3b2c56160727d41a25ad6f678944f733612eac0cb3
@@ -216,9 +216,12 @@ module ZuoraConnect
216
216
  :zuora_tenant_ids => tenants.map(&:to_s),
217
217
  }
218
218
  if self.methods.include?(LOGIN_TENANT_DESTINATION.to_sym)
219
- zuora_domain = self.send(LOGIN_TENANT_DESTINATION).client.rest_domain
220
- ZuoraConnect::RequestIdMiddleware.zuora_rest_domain = zuora_domain
221
- params.merge!({:zuora_domain => zuora_domain })
219
+ client = self.send(LOGIN_TENANT_DESTINATION).client
220
+ if defined?(client) && client.present?
221
+ zuora_domain = client.rest_domain
222
+ ZuoraConnect::RequestIdMiddleware.zuora_rest_domain = zuora_domain
223
+ params.merge!({:zuora_domain => zuora_domain })
224
+ end
222
225
  end
223
226
  params = params.reject{|k,v| !self.attributes.keys.member?(k.to_s) || self[k] == v}
224
227
  self.update_columns(params) if params.present?
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.13"
2
+ VERSION = "2.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team