zuora_connect 2.0.5q → 2.0.5r
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 +4 -4
- data/lib/zuora_connect/controllers/helpers.rb +2 -3
- data/lib/zuora_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e66bb4e09e9db6723e729fa91d46a9063500810c9bc7d254079dee423a171e
|
4
|
+
data.tar.gz: cd0f1fe201312df43cf54f88c6e470894525bf929d818fe2f29b9caf0ed52397
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4865aa9c175207bdc86238ec7bb1302f111b17e8a8cf69bd48e4e41bba532848dbbe390ff627ba88e08948e984226730d85503b8e2d093bfa92d0d510c4ab7e9
|
7
|
+
data.tar.gz: 9f7cf9563b8fa654ac844dc7ffb5ea1a3db987b8fa203c4659202fe381e643ad33600b91795ea204d7dcf48898e757321c5d561885aea29debd4c59cc8bba90d
|
@@ -382,7 +382,6 @@ module ZuoraConnect
|
|
382
382
|
|
383
383
|
@appinstance = ZuoraConnect::AppInstance.where(:id => values["appInstance"].to_i).first
|
384
384
|
|
385
|
-
mapped_values = {:api_token => values['api_token'], :token => values['api_token'], :access_token => values["access_token"], :refresh_token => values["refresh_token"], :oauth_expires_at => values["expires"]}
|
386
385
|
if @appinstance.blank?
|
387
386
|
Apartment::Tenant.switch!("public")
|
388
387
|
begin
|
@@ -390,11 +389,11 @@ module ZuoraConnect
|
|
390
389
|
rescue Apartment::TenantExists => ex
|
391
390
|
ZuoraConnect.logger.debug("Tenant Already Exists")
|
392
391
|
end
|
393
|
-
|
392
|
+
mapped_values = {:api_token => values['api_token'], :token => values['api_token'], :access_token => values["access_token"], :refresh_token => values["refresh_token"], :oauth_expires_at => values["expires"]}
|
394
393
|
@appinstance = ZuoraConnect::AppInstance.new(mapped_values.merge({:id => values["appInstance"].to_i}))
|
395
394
|
@appinstance.save(:validate => false)
|
396
395
|
else
|
397
|
-
mapped_values
|
396
|
+
mapped_values = {:access_token => values["access_token"], :refresh_token => values["refresh_token"], :oauth_expires_at => values["expires"]}
|
398
397
|
@appinstance.assign_attributes(mapped_values)
|
399
398
|
if @appinstance.access_token_changed? && @appinstance.refresh_token_changed?
|
400
399
|
@appinstance.save(:validate => false)
|
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.
|
4
|
+
version: 2.0.5r
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|