softwear-lib 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfdd6dda46573001db0c6427a84aa8f124b59741
4
- data.tar.gz: 6e6de9df0cf148043fefeaf653c0c5271b735937
3
+ metadata.gz: 0525b8c27ab7c6762367aa3ea551f1754ca70796
4
+ data.tar.gz: fd7c8d8c48bc75f5061ae99cc8ceadfff1b3bf03
5
5
  SHA512:
6
- metadata.gz: e79660cf8d3063c8cb39ba15e99f95b6ab8df4fcb119cdd3d259887918710e761c135b0d1cc89e43a8cd769191a5a13570396fa2df89e8694bc7c15aeb356c11
7
- data.tar.gz: b28f7cd766f06b6d3dace967446277e171c0b29ecc12799d243b6bcc4852ab8c5a76e068749c085d0754a68e666770b55be3ce1b0cad80f2dc2ef3202d90a7ad
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 'Show 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? %>'>
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
- <div class="full-content-center animated fadeInDownBig">
2
- <div class="box-info-error">
3
- <h2 class='text-center'>You have encountered an error!</h2>
4
- <%= render 'softwear/errors/error', error: @error, additional_info: @additional_info %>
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
- </div>
8
+ </section>
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Library
3
- VERSION = "3.1.4"
3
+ VERSION = "3.1.5"
4
4
  end
5
5
  end
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
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-09 00:00:00.000000000 Z
11
+ date: 2017-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler