phcnotifi 2.0.1 → 2.5.0

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: 207037df609c2335761c625ec5688ef12447eefc
4
- data.tar.gz: 56af69ee1d08cc28d4d2229c9bb69c442822f63a
3
+ metadata.gz: 822787f05e6b64f6d6f306ea87d069a696e1d179
4
+ data.tar.gz: 4fe97d649deef8ef47033a2fcc9cd9cfb00e7013
5
5
  SHA512:
6
- metadata.gz: dff6ca76085d75005d3d3d67b609fe78b4528f366c6a2651b92f8d1b8aabaeb775bc0a6e1a12f58be49d40f5873277bfedd1e0076298b79fc03427c43a9d599c
7
- data.tar.gz: 5d91f8899b813cf3e3d3d841ce0714fdebaa9f89c998096cc6557bce2a242ed139a78b517599959e2c1dc30e08967b009ea45d92efd372a9178f6cee81dfc85e
6
+ metadata.gz: a1f0d40b2e58cc0670ebaac74879112bcc494ad3ff39ad1c0af6dc532ed8925d20f7667ccb958a7028e83c5b60a12fd916040affd52ef8d14e11d9ae2d536fec
7
+ data.tar.gz: ae0828d2468326a0cffd978293c6751b59aada5ccf3995b6ad21f5508f23784a874a86239e0ddae52b240204b1e609eff557e30027d33ce991b1fc9206ddf681
data/README.md CHANGED
@@ -3,12 +3,12 @@
3
3
  [![Issue Count](https://codeclimate.com/github/PHCNetworks/phc-notifi/badges/issue_count.svg)](https://codeclimate.com/github/PHCNetworks/phc-notifi)
4
4
  [![Gem Version](https://badge.fury.io/rb/phcnotifi.svg)](https://badge.fury.io/rb/phcnotifi)
5
5
 
6
- ### PHC-Notifi (Script Notification System) Documentation
7
- PHCNotifi is a notification and form validation gem using Bootstrap 3 styles for your rails application.
6
+ ### PHC-Notifi(2) (Form Validation & Notification Engine) Documentation
7
+ PHCNotifi(2) is an open source notification & validation engine built for PHCNetworks.
8
8
 
9
- #### Step 1 - Add PHC-Notifi to your gemfile
9
+ #### Step 1 - Add PHCNotifi to your gemfile
10
10
 
11
- gem 'phcnotifi', '~> 0.4.0'
11
+ gem 'phcnotifi', '~> 2.0', '>= 2.0.1'
12
12
  bundle exec install
13
13
 
14
14
  #### Step 2 - Recompile Assets
@@ -22,9 +22,9 @@ Our UI requires Bootstrap and FontAwesome to operate.
22
22
  Add the below line to your layout file.
23
23
  (Usually Above <%= yield %> but not necessary)
24
24
 
25
- <%= render 'layouts/phcnotifi/components/notifications' %>
25
+ <%= render 'phcnotifi/notifications' %>
26
26
 
27
27
  #### Add Validations to your Form.
28
28
  Add the below line to your form file changing @example_object to one on your form.
29
29
 
30
- <%= render 'layouts/phcnotifi/components/validations', :object => @example_object %>
30
+ <%= render 'phcnotifi/validations', :object => @example_object %>
@@ -2,4 +2,4 @@ module Phcnotifi
2
2
  class ApplicationController < ActionController::Base
3
3
 
4
4
  end
5
- end
5
+ end
@@ -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
@@ -6,13 +6,25 @@ module Phcnotifi
6
6
  require 'sass-rails'
7
7
  require 'bootstrap-sass'
8
8
  require 'font-awesome-rails'
9
- require 'phcnotifi/flash'
10
-
9
+
10
+ # Configuration
11
11
  require 'figaro'
12
12
 
13
13
  # Isolate Namespace for PHC Members
14
14
  isolate_namespace Phcnotifi
15
15
 
16
+ # Load Requried Helper Files
17
+ config.to_prepare do
18
+ ApplicationController.helper(ApplicationHelper)
19
+ end
20
+
21
+ # Auto Mount Plugin
22
+ initializer "phcnotifi", before: :load_config_initializers do |app|
23
+ Rails.application.routes.append do
24
+ mount Phcnotifi::Engine, at: "/"
25
+ end
26
+ end
27
+
16
28
  # Testing Generator
17
29
  config.generators do |g|
18
30
  g.test_framework :rspec,
@@ -24,18 +36,6 @@ module Phcnotifi
24
36
  request_specs: false
25
37
  g.fixture_replacement :factory_girl, dir: "spec/factories"
26
38
  end
27
-
28
- # Load Helper Files
29
- config.to_prepare do
30
- ApplicationController.helper(ApplicationHelper)
31
- end
32
-
33
- # Auto Mount Plugin
34
- initializer "phcnotifi", before: :load_config_initializers do |app|
35
- Rails.application.routes.append do
36
- mount Phcnotifi::Engine, at: "/"
37
- end
38
- end
39
39
 
40
40
  end
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module Phcnotifi
2
- VERSION = "2.0.1"
2
+ VERSION = "2.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcnotifi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Potts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-19 00:00:00.000000000 Z
11
+ date: 2016-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -228,8 +228,8 @@ dependencies:
228
228
  - - "~>"
229
229
  - !ruby/object:Gem::Version
230
230
  version: '2.52'
231
- description: PHC-Notifi with bootstrap styled norifications/form validations for your
232
- rails application.
231
+ description: PHCNotifi(2) is an open source notification & validation engine built
232
+ for PHCNetworks.
233
233
  email:
234
234
  - info@phcnetworks.net
235
235
  executables: []
@@ -251,7 +251,6 @@ files:
251
251
  - config/routes.rb
252
252
  - lib/phcnotifi.rb
253
253
  - lib/phcnotifi/engine.rb
254
- - lib/phcnotifi/flash.rb
255
254
  - lib/phcnotifi/version.rb
256
255
  - lib/tasks/phcnotifi_tasks.rake
257
256
  homepage: http://www.phcnetworks.net/engine-yard
@@ -1,15 +0,0 @@
1
- module Phcnotifi
2
- module Flash
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