softwear-lib 3.1.4 → 3.1.5
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: 0525b8c27ab7c6762367aa3ea551f1754ca70796
|
|
4
|
+
data.tar.gz: fd7c8d8c48bc75f5061ae99cc8ceadfff1b3bf03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3210964ea6c7a6d91aca1cef1ef18d80746bd25e4ea853edc02595ad6eb6f402e70312efcad6e170765eaf33aed316cc3ed0e27bdc96898ca10e118bf2a4ce5
|
|
7
|
+
data.tar.gz: 6624741f606adad42442fb4ca5c1f6f750d7c7675c65be2868c1047ba99db5f94aee3ef7c48b01b5f283307a995f783fbe64043d5c4d89154ff379b85863f874
|
|
@@ -28,7 +28,7 @@ module Softwear
|
|
|
28
28
|
|
|
29
29
|
if user
|
|
30
30
|
redirect_to '/'
|
|
31
|
-
elsif params[:order_id] && (key = Order.where(id: params[:order_id]).pluck(:customer_key).first)
|
|
31
|
+
elsif (params[:order_id] && (key = Order.where(id: params[:order_id]).pluck(:customer_key).first) rescue false)
|
|
32
32
|
redirect_to customer_order_path(key)
|
|
33
33
|
else
|
|
34
34
|
render inline: "<%= flash[:success] %>"
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
<% if current_user || !Rails.env.production? %>
|
|
6
6
|
<div>
|
|
7
|
-
<%= link_to '
|
|
8
|
-
<div id='error-details' style='<%= "display: none;" if Rails.env.production? %>'>
|
|
7
|
+
<%= link_to 'Toggle error details', '#', id: 'show-error-details-btn', onclick: '$("#error-details").toggle(); return false;', class: 'btn btn-info' %>
|
|
8
|
+
<div id='error-details' style='<%= "display: none;" if Rails.env.production? %> border: 1px solid black; background-color: white;'>
|
|
9
9
|
<p><%= error.class.name %>: <%= error.message %></p>
|
|
10
10
|
<% error.backtrace.each do |line| %>
|
|
11
11
|
<% if backtrace_is_from_app?(line) %>
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
<%= text_area_tag 'user_message', '', class: 'form-control' %>
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
|
-
<%= submit_tag 'Send', class: 'btn btn-info' %>
|
|
34
|
+
<%= submit_tag 'Send', class: 'btn btn-info', style: 'width: 100%; margin-bottom: 3em;' %>
|
|
35
35
|
<% end %>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
<
|
|
2
|
-
<div class="
|
|
3
|
-
<
|
|
4
|
-
|
|
1
|
+
<section id="content" class="table-layout animated fadeInDownBig">
|
|
2
|
+
<div class="full-content-center tray tray-center">
|
|
3
|
+
<div class="box-info-error">
|
|
4
|
+
<h2 class='text-center'>You have encountered an error!</h2>
|
|
5
|
+
<%= render 'softwear/errors/error', error: @error, additional_info: @additional_info %>
|
|
6
|
+
</div>
|
|
5
7
|
</div>
|
|
6
|
-
</
|
|
8
|
+
</section>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: softwear-lib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nigel Baillie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|