phcnotifi 0.3.5 → 0.3.6

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: 005f46fe9b6d690857a114c19a5c0a7551e3d7da
4
- data.tar.gz: a81a5166fc278586410ca1124f996fb36c4c5e6a
3
+ metadata.gz: ae6cd7aca29e32bd9fceeac3b6752a93167c53d4
4
+ data.tar.gz: ebcebc8d88320b27febd4ba1e285ce5cb9c0b819
5
5
  SHA512:
6
- metadata.gz: 668cbbd3ba8456736a287501ebe6797611691ef8be4cc645179e7087b4a1325f19182c501a055a62b9f8a6bcecc9dba5b5228694e0f259b3016663a457f8100d
7
- data.tar.gz: 0bca2c8507fa48001e7a6963dc65bc043efddd1271b7f1c2495859d7910956a1560100f5e327e451bb57241d75c9efdc422696cbd46a615d84d60937fc73440d
6
+ metadata.gz: aada908c3106e63c0fa867d937004978dc6f5c2391c084e036122ee179501bbbc4fc58176cd0a035e9906c6e19c9ca31cbcc560dc419ac5680cdc1c8993ee8f9
7
+ data.tar.gz: a32082e5efd52898f3b14cc9b166718a4c733eacf8aec61093ba8a6f77f39bbd02ab9f1cd727fe417bf3db0d563c1ae93ee0cb0b3409223fb67685eeeccbaaaa
@@ -1,5 +1,15 @@
1
1
  module Phcnotifi
2
2
  module ApplicationHelper
3
3
 
4
+ # Bootstrap Notification System
5
+ def flash_class(level)
6
+ case level.to_sym
7
+ when :notice then "alert alert-info"
8
+ when :success then "alert alert-success"
9
+ when :error then "alert alert-danger"
10
+ when :alert then "alert alert-warning"
11
+ end
12
+ end
13
+
4
14
  end
5
15
  end
@@ -27,7 +27,6 @@ module Phcnotifi
27
27
  # Load Helper Files
28
28
  config.to_prepare do
29
29
  ApplicationController.helper(ApplicationHelper)
30
- ApplicationController.helper(Phcnotifi::NotifiHelper)
31
30
  end
32
31
 
33
32
  # Auto Mount Plugin
@@ -1,3 +1,3 @@
1
1
  module Phcnotifi
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcnotifi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Potts
@@ -228,8 +228,8 @@ dependencies:
228
228
  - - "~>"
229
229
  - !ruby/object:Gem::Version
230
230
  version: '2.52'
231
- description: "(Under Development) PHC-Notifi with bootstrap styled norifications/form
232
- validations for your ruby on rails application."
231
+ description: PHC-Notifi with bootstrap styled norifications/form validations for your
232
+ ruby on rails applications.
233
233
  email:
234
234
  - info@phcnetworks.net
235
235
  executables: []
@@ -247,7 +247,6 @@ files:
247
247
  - app/controllers/phcnotifi/application_controller.rb
248
248
  - app/controllers/phcnotifi/notifi_controller.rb
249
249
  - app/helpers/application_helper.rb
250
- - app/helpers/phcnotifi/notifi_helper.rb
251
250
  - app/views/phcnotifi/notifi/notifications.html.erb
252
251
  - app/views/phcnotifi/notifi/validations.html.erb
253
252
  - config/routes.rb
@@ -1,15 +0,0 @@
1
- module Phcnotifi
2
- module NotifiHelper
3
-
4
- # Bootstrap Notification System
5
- def flash_class(level)
6
- case level.to_sym
7
- when :notice then "alert alert-info"
8
- when :success then "alert alert-success"
9
- when :error then "alert alert-danger"
10
- when :alert then "alert alert-warning"
11
- end
12
- end
13
-
14
- end
15
- end