zuora_connect 0.0.6.3 → 0.0.6.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10ec086d9d4d846b6f7cb5152b3fbdabc9bc0618
|
4
|
+
data.tar.gz: 8f81dfe2d648ce8527e11a32ebc945aec39c479c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e80569259cc59b76ed3bd03bc77ce531e53ec00d95656a835e61dc60ef0320e3fa79ad7f97a45d311ad707b627a6cfaf2a54e2931975e817a4fd04d6f9feaab8
|
7
|
+
data.tar.gz: 6d30831d27cf1c7e8a00369f16530303e2078b503d94896490e95bfb7f849e9a2aa8c333533fe1b9a1be3056316f942d37d59b9ce702e0c04a112aa9c147667f
|
@@ -14,7 +14,11 @@ module ZuoraConnect
|
|
14
14
|
@user = user
|
15
15
|
@pass = password
|
16
16
|
if session.nil? || (!session.nil? && self.id != session["appInstance"].to_i) || session["#{self.id}::task_data"].blank? || ( session["#{self.id}::last_refresh"].blank? || session["#{self.id}::last_refresh"].to_i < ZuoraConnect.configuration.timeout.ago.to_i )
|
17
|
-
Rails.logger.debug("REFRESHING")
|
17
|
+
Rails.logger.debug("REFRESHING - Session Nil") if session.nil?
|
18
|
+
Rails.logger.debug("REFRESHING - AppInstance ID does not match session id") if (!session.nil? && self.id != session["appInstance"].to_i)
|
19
|
+
Rails.logger.debug("REFRESHING - Task Data Blank") if session["#{self.id}::task_data"].blank?
|
20
|
+
Rails.logger.debug("REFRESHING - No Time on Cookie") if session["#{self.id}::last_refresh"].blank?
|
21
|
+
Rails.logger.debug("REFRESHING - Session Old") if (session["#{self.id}::last_refresh"].blank? || session["#{self.id}::last_refresh"].to_i < ZuoraConnect.configuration.timeout.ago.to_i )
|
18
22
|
self.refresh(session)
|
19
23
|
else
|
20
24
|
Rails.logger.debug("REBUILDING")
|
@@ -20,16 +20,24 @@ module ZuoraConnect
|
|
20
20
|
begin
|
21
21
|
@appinstance.new_session(session["#{instance_id}::user"], session["#{instance_id}::key"], session)
|
22
22
|
rescue
|
23
|
-
puts "redirect"
|
24
23
|
redirect_to "/500.html"
|
25
24
|
end
|
26
25
|
else
|
27
|
-
puts "redirect2"
|
28
26
|
redirect_to "/500.html"
|
29
27
|
end
|
30
28
|
else
|
31
29
|
dev_mode
|
32
|
-
|
30
|
+
instance_id = session["appInstance"].to_i
|
31
|
+
if session["appInstance"]
|
32
|
+
if ZuoraConnect::AppInstance.where(:id => instance_id).size == 0
|
33
|
+
Apartment::Tenant.switch!("public")
|
34
|
+
Apartment::Tenant.create(instance_id)
|
35
|
+
ZuoraConnect::AppInstance.create!(:id => instance_id )
|
36
|
+
end
|
37
|
+
@appinstance = ZuoraConnect::AppInstance.find(instance_id)
|
38
|
+
else
|
39
|
+
redirect_to "/500.html"
|
40
|
+
end
|
33
41
|
@appinstance.options = ZuoraConnect.configuration.dev_mode_options
|
34
42
|
@appinstance.logins = ZuoraConnect.configuration.dev_mode_logins
|
35
43
|
@appinstance.mode = ZuoraConnect.configuration.dev_mode_mode
|
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: 0.0.6.
|
4
|
+
version: 0.0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|