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: 4fc1f45e7f9e3c63ecd86706c3162b0da1ae9fc01edb7dda67eb0a497e3cd6bb
4
- data.tar.gz: 0f6db154fecc1f3c81ef3632287308cef0cb6abc79321e19b0fff274112df966
3
+ metadata.gz: 5c3c6b7ac935c55509c6e6a17119ae886704a3a53aab7cf68d4f632d41941160
4
+ data.tar.gz: 6797088f6387e6ed51ffce504653a087e8a902b142dc166d9dc09fc4759d6d51
5
5
  SHA512:
6
- metadata.gz: 2fa2124107f2a02b2eefb9e25cf97c78c5e756f13c1c81a8dcade51a9a9fdd71c75488065195280751578da729ff937486f1dc127362813b6d51d00116899910
7
- data.tar.gz: 73bd24cc407b101cd8e1f6028367cbfd7e973e7888a084456e9af4fdf4de0c00e0fa6ac0e92654967b4f9082bb441050f8f43b26cab71d1f6336790299abcc43
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
- begin
278
- task_ids = JSON.parse(Base64.urlsafe_decode64(CGI.parse(URI.parse(url).query)["app_instance_ids"][0]))
279
- rescue URI::InvalidURIError => ex
280
- raise ZuoraConnect::Exceptions::APIError.new(message: "Failure in parsing the navbar urls.", response: response)
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
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.34"
2
+ VERSION = "2.0.35"
3
3
  end
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.34
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-18 00:00:00.000000000 Z
11
+ date: 2020-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment