zuora_connect 2.0.34 → 2.0.35
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c3c6b7ac935c55509c6e6a17119ae886704a3a53aab7cf68d4f632d41941160
|
4
|
+
data.tar.gz: 6797088f6387e6ed51ffce504653a087e8a902b142dc166d9dc09fc4759d6d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5ee82d006aa5383af74246b5668f3ef8457596d3192b920147ef26389ff090d6d1a81078a1ca5c9c4210e5cfdb74e9f050c1a39d9faa8aba19eed42d67557c
|
7
|
+
data.tar.gz: 622acfefb244129ef4c493ac6723df3d7ca564076744908524cbb9af9b6f306f9663a69b6fcba3c13104b1426b8eb0224a4ffecc360074391f3446dedbd540fa
|
@@ -278,7 +278,7 @@ module ZuoraConnect
|
|
278
278
|
end
|
279
279
|
|
280
280
|
self.build_task(task_data: parsed_json, session: session)
|
281
|
-
if self.kms_key.present?
|
281
|
+
if self.kms_key.present? && self.kms_key.match(/^arn:aws:.*/)
|
282
282
|
begin
|
283
283
|
self.zuora_logins = self.strip_cache_data(object: parsed_json.dup, keys: ['applications', 'tokens', 'user_settings'])
|
284
284
|
self.save(:validate => false)
|
@@ -101,6 +101,8 @@ module ZuoraConnect
|
|
101
101
|
setup_instance_via_dev_mode
|
102
102
|
end
|
103
103
|
|
104
|
+
return if performed?
|
105
|
+
|
104
106
|
if !defined?(@appinstance) || @appinstance.blank?
|
105
107
|
render "zuora_connect/static/error_handled", :locals => {
|
106
108
|
:title => "Application state could not be found.",
|
@@ -274,10 +276,21 @@ module ZuoraConnect
|
|
274
276
|
urls = navbar['menus'].map {|x| x['url']}
|
275
277
|
app_env = ENV["DEIS_APP"] || "xyz123"
|
276
278
|
url = urls.compact.select {|url| File.basename(url).start_with?(app_env + '?')}.first
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
279
|
+
if url.blank?
|
280
|
+
if navbar['menus'].map {|x| x['label']}.include?('Link Connect Account')
|
281
|
+
render "zuora_connect/static/error_handled", :locals => {
|
282
|
+
:title => "Link Account",
|
283
|
+
:message => "Link Connect account to gain access to application."
|
284
|
+
}, :layout => false
|
285
|
+
return
|
286
|
+
end
|
287
|
+
ZuoraConnect::Exceptions::APIError.new(message: "#{app_env} navbar url was blank", response: response)
|
288
|
+
else
|
289
|
+
begin
|
290
|
+
task_ids = JSON.parse(Base64.urlsafe_decode64(CGI.parse(URI.parse(url).query)["app_instance_ids"][0]))
|
291
|
+
rescue URI::InvalidURIError => ex
|
292
|
+
raise ZuoraConnect::Exceptions::APIError.new(message: "Failure in parsing the navbar urls.", response: response)
|
293
|
+
end
|
281
294
|
end
|
282
295
|
appinstances = ZuoraConnect::AppInstance.where(:id => task_ids).pluck(:id, :name)
|
283
296
|
else
|
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.35
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|