zuora_connect 2.0.3f → 2.0.3g

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: 88e407d0338daf55ef54d679e31e24fe20207302baf36ce02610d0866f430e75
4
- data.tar.gz: a7cbb416e61808e2438c1de65492f38ad23ef201000f486bee69329c91482459
3
+ metadata.gz: 5ea38482aef642ebd188f3bd633184d3dfb82cb5e8a14e47a8a54b95da8512f6
4
+ data.tar.gz: e9910981c7a6e590eddac9382a4b97dad732b958b32bc64e7084c315f84bce62
5
5
  SHA512:
6
- metadata.gz: 5d220ae8c3b4fb197de436a193b9465c13062406665ce1a0cc052cc4207727384f72c0638727a31a86eb306e47da6ffd5a5b5f42c6eaea8ceca54760e8b7f66f
7
- data.tar.gz: 5c051665949d76218d84d7597d907ea26767f44573da36b504a48d01c5773c04204fc6bdf28e935d3bdb5a2bc5feba0bb753d6d2971de12477bbe7d8a65b0ffd
6
+ metadata.gz: 9ff8414184f681c1c10c365c193997f72e616eeb33be972b5d61eefadebf4338a9a5b0798c3c10daece325975d616477338b60b4bb4a5676bbd6fdc1d1722205
7
+ data.tar.gz: 92bea246725a6308ad17afb0f485ecb5875a036c2e417c1a1ba68251e16b63884f88320bc33b5a0e944eea7fdf930c5562272ee075cccaa0d3be2032e5009f27
@@ -52,14 +52,26 @@
52
52
  </style>
53
53
  </head>
54
54
 
55
- <body>
55
+ <body style='background: white;'>
56
56
  <!-- This file lives in public/500.html -->
57
- <div class="dialog">
58
- <div>
59
- <h1>The launch url was invalid.</h1>
57
+ <% if defined?(exception) %>
58
+ <div class="dialog" style='max-width: 74em;'>
59
+ <div>
60
+ <h1><%= exception.class %> - '<%= exception.message %>'</h1>
61
+ </div>
62
+ <p style='text-align: left;'>
63
+ <% exception.backtrace.each do |line| %>
64
+ <%= line %><br>
65
+ <% end %>
60
66
  </div>
61
- <p>Please try relaunching this application</p>
62
- </div>
67
+ <% else %>
68
+ <div class="dialog">
69
+ <div>
70
+ <h1>The launch url was invalid.</h1>
71
+ </div>
72
+ <p>Please try relaunching this application</p>
73
+ </div>
74
+ <% end %>
63
75
 
64
76
 
65
77
  </body></html>
@@ -128,11 +128,11 @@ module ZuoraConnect
128
128
  session["ZuoraCurrentIdentity"] = identity
129
129
  session["ZuoraCurrentEntity"] = identity['entityId']
130
130
 
131
- raise "Header entity id does not match identity call entity id" if zuora_entity_id != identity['entityId']
131
+ raise ZuoraConnect::Exceptions::Error.new("Header entity id, '#{zuora_entity_id}' does not match identity call entity id, '#{identity['entityId']}'.") if zuora_entity_id != identity['entityId']
132
132
  rescue => ex
133
133
  ZuoraConnect.logger.error(ex)
134
- render "zuora_connect/static/invalid_launch_request"
135
- return
134
+ render "zuora_connect/static/invalid_launch_request", :locals => {:exception => ex}
135
+ return
136
136
  end
137
137
  end
138
138
 
@@ -143,7 +143,7 @@ module ZuoraConnect
143
143
  #if app_instance_ids is present then permissions still controlled by connect
144
144
  if params[:app_instance_ids].present?
145
145
  begin
146
- navbar, response = zuora_client.rest_call(url: zuora_client.rest_endpoint("v1/navigation"))
146
+ navbar, response = zuora_client.rest_call(url: zuora_client.rest_endpoint("navigation"))
147
147
 
148
148
  urls = a['menus'].map {|x| x['url']}
149
149
  app_env = ENV["DEIS_APP"] || "xyz123"
@@ -153,7 +153,7 @@ module ZuoraConnect
153
153
  appinstances = ZuoraConnect::AppInstance.where(:id => task_ids).pluck(:id, :name)
154
154
  rescue => ex
155
155
  ZuoraConnect.logger.error(ex)
156
- render "zuora_connect/static/invalid_launch_request"
156
+ render "zuora_connect/static/invalid_launch_request", :locals => {:exception => ex}
157
157
  return
158
158
  end
159
159
  else
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.3f"
2
+ VERSION = "2.0.3g"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3f
4
+ version: 2.0.3g
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
@@ -308,7 +308,7 @@ files:
308
308
  - app/views/layouts/zuora_connect/application.html.erb
309
309
  - app/views/sql/refresh_aggregate_table.txt
310
310
  - app/views/zuora_connect/static/invalid_app_instance_error.html.erb
311
- - app/views/zuora_connect/static/invalid_launch_request.html
311
+ - app/views/zuora_connect/static/invalid_launch_request.html.erb
312
312
  - app/views/zuora_connect/static/launch.html.erb
313
313
  - app/views/zuora_connect/static/session_error.html.erb
314
314
  - config/initializers/apartment.rb