zuora_connect 1.7.36 → 1.7.37
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: e165cc15e9124725a8531bbb37fdedbffc2b0041
|
4
|
+
data.tar.gz: b30757389dd1b67751c462178d2d7aa519c9b9f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a635b7ebd76c29e45a76cbfa55b92ae87949ae2bc2438621672487a6857636e6095c3183f6c124e2497128aa3eaa282bd5d95c11ae7a9a5ac63855f8033b1e4
|
7
|
+
data.tar.gz: bddf8ea1da0213428f64752286a6355880cc076e45c882455778ee66de1af803dd38d3a77da6dd65a66d49faed218343c5525f66a4ad23d00cbf4aaaf4432f51
|
@@ -64,7 +64,8 @@
|
|
64
64
|
<div class="dialog">
|
65
65
|
<div>
|
66
66
|
<h1>Please select the instance you would like to launch.</h1>
|
67
|
-
|
67
|
+
<input type="hidden" id="name_hash" value="<%= @names.to_s %>" />
|
68
|
+
<input type="hidden" id="app_instance_list" value="<%= @app_instance_ids.to_s %>" />
|
68
69
|
|
69
70
|
<% @app_instance_ids.each do |id| %>
|
70
71
|
<div class="button">
|
@@ -49,12 +49,12 @@ module Resque
|
|
49
49
|
false
|
50
50
|
end
|
51
51
|
|
52
|
-
def get_grouped_queues
|
52
|
+
def get_grouped_queues
|
53
53
|
queues.sort.group_by{|u| /(\d{1,20})_.*/.match(u) ? /(\d{1,20})_.*/.match(u).captures.first : nil}
|
54
54
|
end
|
55
55
|
|
56
56
|
def reserve_with_round_robin
|
57
|
-
grouped_queues =
|
57
|
+
grouped_queues = get_grouped_queues
|
58
58
|
|
59
59
|
#Instance queue grouping
|
60
60
|
if !grouped_queues.keys.include?(nil) && grouped_queues.keys.size > 0
|
@@ -68,6 +68,7 @@ module ZuoraConnect
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def authenticate_connect_app_request
|
71
|
+
Thread.current[:appinstance] = nil
|
71
72
|
if params[:app_instance_ids].present? && !params[:app_instance_id].present?
|
72
73
|
begin
|
73
74
|
app_instance_ids = JSON.parse(Base64.urlsafe_decode64(params[:app_instance_ids]))
|
@@ -79,6 +80,7 @@ module ZuoraConnect
|
|
79
80
|
@appinstance.new_session(session: {})
|
80
81
|
@appinstance.cache_app_instance
|
81
82
|
else
|
83
|
+
Rails.logger.fatal("Launch Error: Param Instance didnt match session data")
|
82
84
|
render "zuora_connect/static/invalid_launch_request"
|
83
85
|
return
|
84
86
|
end
|
@@ -86,7 +88,8 @@ module ZuoraConnect
|
|
86
88
|
select_instance
|
87
89
|
return
|
88
90
|
end
|
89
|
-
rescue
|
91
|
+
rescue => ex
|
92
|
+
Rails.logger.fatal("Launch Error: #{ex.message}")
|
90
93
|
render "zuora_connect/static/invalid_launch_request"
|
91
94
|
return
|
92
95
|
end
|
@@ -95,7 +98,7 @@ module ZuoraConnect
|
|
95
98
|
begin
|
96
99
|
instances = JSON.parse(Base64.urlsafe_decode64(CGI.parse(URI.parse(session[params[:app_instance_ids]]["url"]).query)["app_instance_ids"][0]))
|
97
100
|
if instances.include?(params[:app_instance_id].to_i)
|
98
|
-
@appinstance = ZuoraConnect::AppInstance.find(params[app_instance_id].to_i)
|
101
|
+
@appinstance = ZuoraConnect::AppInstance.find(params[:app_instance_id].to_i)
|
99
102
|
@appinstance.new_session(session: {})
|
100
103
|
@appinstance.cache_app_instance
|
101
104
|
else
|
@@ -103,11 +106,11 @@ module ZuoraConnect
|
|
103
106
|
return
|
104
107
|
end
|
105
108
|
rescue => ex
|
109
|
+
Rails.logger.fatal("Launch Error: #{ex.message}")
|
106
110
|
render "zuora_connect/static/invalid_launch_request"
|
107
111
|
return
|
108
112
|
end
|
109
113
|
end
|
110
|
-
Thread.current[:appinstance] = nil
|
111
114
|
start_time = Time.now
|
112
115
|
if ZuoraConnect.configuration.mode == "Production"
|
113
116
|
if request["data"] && /^([A-Za-z0-9+\/\-\_]{4})*([A-Za-z0-9+\/]{4}|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}==)$/.match(request["data"].to_s)
|
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.
|
4
|
+
version: 1.7.37
|
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-12-
|
11
|
+
date: 2018-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|