softwear-lib 2.0.10 → 2.0.11

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: a5fb46c85cd417edd80c9dd9da9c376606fcb2f9
4
- data.tar.gz: aca65e44c30a79b8c49818881063f26b821f084c
3
+ metadata.gz: 0f2b580aec423a3ba7246fcf5cfd456cd8ce4a42
4
+ data.tar.gz: 4b2faa0dbc1384c88a245c036f3231ec101c928e
5
5
  SHA512:
6
- metadata.gz: 44e277a8a0d846de5ae0ce4e64a419096b1011b396de81279289f6d6a2c696e50c27d51b88d237a9bc2326c3fbc3ce35741af67dfc246f223ddbbfc374e8ded3
7
- data.tar.gz: 113a5bd019bbb6bd49301359cd3f975c44fcdc7a6e79f5422314450d419d950d9477aba4ac924c4c253b477cf8113e770c6796f79b59d62a04fe7e667dd172ea
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-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{
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=<%= Softwear::ApplicationHelper.grey_or_white_box_info %>>
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>
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Library
3
- VERSION = "2.0.10"
3
+ VERSION = "2.0.11"
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: 2.0.10
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-05 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler