softwear-lib 2.0.10 → 2.0.11
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: 0f2b580aec423a3ba7246fcf5cfd456cd8ce4a42
|
4
|
+
data.tar.gz: 4b2faa0dbc1384c88a245c036f3231ec101c928e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf4167e4de245646a482c62334813926963ee117b94f4e8369ecca682555a6877d2bb71fb872472f0eb14fa7e5dd533e0d0edbf4e5939dedaa5cc8baf175aca3
|
7
|
+
data.tar.gz: c2d00b84c380954ed98b65b3fdb248e89b7b34f385ac634220446a867c9f3d5ab5b95b7249975d694b99d5ed7cee54cd071abd95741deb7a5cad809495a5bb5d
|
data/README.md
CHANGED
@@ -46,6 +46,28 @@ user's email:
|
|
46
46
|
- rightn
|
47
47
|
</pre>
|
48
48
|
|
49
|
+
To include error handling in your app, add:
|
50
|
+
<br />
|
51
|
+
<pre>
|
52
|
+
Include Softwear::ErrorCatcher
|
53
|
+
helper Softwear::Auth::EmailsHelper
|
54
|
+
</pre>
|
55
|
+
to your application controller.
|
56
|
+
<br />
|
57
|
+
<br />
|
58
|
+
For error styling and animation add:
|
59
|
+
<br />
|
60
|
+
<pre>
|
61
|
+
*= require animate/animate
|
62
|
+
|
63
|
+
.box-info-error{
|
64
|
+
background: "your desired color here";
|
65
|
+
}
|
66
|
+
</pre>
|
67
|
+
to your application.css file.
|
68
|
+
|
69
|
+
|
70
|
+
|
49
71
|
## Contributing
|
50
72
|
|
51
73
|
1. Fork it ( https://github.com/[my-github-username]/softwear-lib/fork )
|
@@ -1,15 +1,4 @@
|
|
1
|
-
.box-info-error
|
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{
|
1
|
+
.box-info-error{
|
13
2
|
position:relative;
|
14
3
|
padding: 15px;
|
15
4
|
background: #ffffff;
|
@@ -19,4 +8,3 @@
|
|
19
8
|
-moz-transition:All 0.4s ease;
|
20
9
|
-o-transition:All 0.4s ease;
|
21
10
|
}
|
22
|
-
|
@@ -1,13 +1,4 @@
|
|
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
|
12
3
|
end
|
13
4
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="full-content-center animated fadeInDownBig">
|
2
|
-
<div class
|
2
|
+
<div class="box-info-error">
|
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>
|
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: 2.0.
|
4
|
+
version: 2.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nigel Baillie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|