softwear-lib 2.0.7 → 2.0.8

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: 27dcf063c6d6668c670f3508f3e9dc378f0998c1
4
- data.tar.gz: 2e838eb60272b678b6eee24ede5ee387352452ea
3
+ metadata.gz: bbf95365428efabffabd7bf0a1f74991c0f15bfe
4
+ data.tar.gz: 53b59c528071a2565141d1faaa3863904dee0c82
5
5
  SHA512:
6
- metadata.gz: 0b864121e30e1d79d851c49c381badf21507f93bd192fc055184abe9419f36f493436f8c56be6f5de123f7bb304f826685412b2de37606ac7a13430d88626d40
7
- data.tar.gz: f2b3b46158dc6972a81f0d79d6c10cb38edf775109a4449fbfaa62dde8f94167bb3ec6119b8e6ad47fc9fa1b7316de13d6d47cd8cccd8ace80f0478753d01797
6
+ metadata.gz: 35f53b0606efc3536b4669da91221e6826988bb84a66ab4931e6c7ae9977070f1963858c5336655c8ff3096e57979f1458e157d91daa7faf326bcb1bc402ae3b
7
+ data.tar.gz: 9c8a286ad8f0c0e5c4455cad696e5245f304a92cbbb101765d50d1c77607f37751b836ba5e90378b6da633b89fc7011b1db88235ca2207d9fc2d9243f50d1546
@@ -1,4 +1,15 @@
1
- .box-info{
1
+ .box-info-error-grey{
2
+ position:relative;
3
+ padding: 15px;
4
+ background: #D3D3D3;
5
+ color: #5b5b5b;
6
+ margin-bottom: 20px;
7
+ -webkit-transition:All 0.4s ease;
8
+ -moz-transition:All 0.4s ease;
9
+ -o-transition:All 0.4s ease;
10
+ }
11
+
12
+ .box-info-error-white{
2
13
  position:relative;
3
14
  padding: 15px;
4
15
  background: #fff;
@@ -23,7 +23,7 @@ module Softwear
23
23
  end
24
24
  end
25
25
 
26
- ErrorReportMailer.send_report(user, params).deliver
26
+ ErrorReportMailer.send_report(user, params).deliver_now
27
27
  flash[:success] = 'Sent error report. Sorry about that and thank you for your submission.'
28
28
 
29
29
  if user
@@ -1,4 +1,13 @@
1
1
  module Softwear
2
2
  module ApplicationHelper
3
+ def grey_or_white_box_info
4
+ case Rails.application.class.parent.to_s
5
+ when "CrmSoftwearcrmCom" then return "box-info-error-white"
6
+ else
7
+ return "box-info-error-grey"
8
+ end
9
+ end
10
+
11
+ extend self
3
12
  end
4
13
  end
@@ -1,5 +1,5 @@
1
1
  <div class="full-content-center animated fadeInDownBig">
2
- <div class='box-info'>
2
+ <div class=<%= Softwear::ApplicationHelper.grey_or_white_box_info %>>
3
3
  <h2 class='text-center'>You have encountered an error!</h2>
4
4
  <%= render 'softwear/errors/error', error: @error, additional_info: @additional_info %>
5
5
  </div>
@@ -1,7 +1,6 @@
1
1
  module Softwear
2
2
  module Auth
3
3
  module EmailsHelper
4
-
5
4
  def backtrace_is_from_app?(line)
6
5
  !(line.include?('/gems/') || /^kernel\// =~ line || line.include?('/vendor_ruby/'))
7
6
  end
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Library
3
- VERSION = "2.0.7"
3
+ VERSION = "2.0.8"
4
4
  end
5
5
  end