phcdevworks_notifications 2.2.3 → 2.3.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
  SHA256:
3
- metadata.gz: 231cabd55f2fa07d0209701e8a23242cf864a83805e648d404735fbbe2cae288
4
- data.tar.gz: f376b5718f4354f351a134d96e5e1774519cf9829ab5c2312cc3dbc328adc2f1
3
+ metadata.gz: 6b4b5e4922b5875c3419c2227293184af19c0c2a45bbb981ed4a777db4b28290
4
+ data.tar.gz: b372825448aa31f4a04ed7e7d2f183bf124345c0659b1b7bf2fe4382e4c6d09c
5
5
  SHA512:
6
- metadata.gz: 73543ca97597cef233f0d233af7a5403c11e6d9c40bed3837ace8fd043c3df67bf3be0cc6f2eb3de96d11958ddefc7ef836eb2a0042be4661aa57213ee510b59
7
- data.tar.gz: 25bdc3d395c1ca503865c625e27923d94f2b02f75a1b9712f2fc1e7d55a2db2987b3c16d8233b1a35cc48e421224ac8962c0dd22579bc21cc71062e77b7b6bd6
6
+ metadata.gz: c744734d2b91a52f560cb360dd98491ee0ee6826f083e622687bddc68767740a801aeb49485735c678d4bedfd9cedb9f88aa9fb2ac58b6fbe2394590e9d42d6f
7
+ data.tar.gz: 6c09350a5756bb86d70dd2cf3105b3596f87d699644a21a6af88fa297746dacc984acc1b62041c893c7c4932b9777b4aad8b48d4b361346c8ca527f985bfda4f
data/MIT-LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Copyright 2021 BradPotts
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright 2021 BradPotts
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,26 +1,26 @@
1
- ### PHCDevworks Notifications for Rails 6 (Form Validation & Notification Engine)
2
- PHCDevworks Notifications Rails 6 engine with helpers for alerts and form validation notifications.
3
-
4
- * Add alert and form validation helpers ruby on rails.
5
- * Setup in seconds with only one line of code in the application_helper file.
6
- * Save time and keep your rails projects manageable, tidy and secure.
7
-
8
- #### Step 1 - Add PHCDevworks Notifications to your gemfile
9
-
10
- gem 'phcdevworks_notifications'
11
- bundle install
12
-
13
- #### Step 2 - Load Helpers in the Application's Controller
14
- Add the line of code below into your app/controllers/application_controller.rb (application's controller file).
15
-
16
- helper PhcdevworksNotifications::Engine.helpers
17
-
18
- #### How to Add Bootstrap 4 Notifications to Layouts
19
- Add the line of code below to your app/views/layouts/application.rb
20
-
21
- <%= render 'phcdevworks_notifications/bootstrap/notifications' %>
22
-
23
- #### How to Add Bootstrap 4 Validations to your Form
24
- Add the line of code below to your _form.rb file. Change @example_object to the same one on your form.
25
-
26
- <%= render 'phcdevworks_notifications/bootstrap/validations', :object => @example_object %>
1
+ ### PHCDevworks Notifications for Rails 6 (Form Validation & Notification Engine) [![Gem Version](https://badge.fury.io/rb/phcdevworks_notifications.svg)](https://badge.fury.io/rb/phcdevworks_notifications)
2
+ PHCDevworks Notifications Rails 6 engine with helpers for alerts and form validation notifications.
3
+
4
+ * Add alert and form validation helpers ruby on rails.
5
+ * Setup in seconds with only one line of code in the application_helper file.
6
+ * Save time and keep your rails projects manageable, tidy and secure.
7
+
8
+ #### Step 1 - Add PHCDevworks Notifications to your gemfile
9
+
10
+ gem 'phcdevworks_notifications'
11
+ bundle install
12
+
13
+ #### Step 2 - Load Helpers in the Application's Controller
14
+ Add the line of code below into your app/controllers/application_controller.rb (application's controller file).
15
+
16
+ helper PhcdevworksNotifications::Engine.helpers
17
+
18
+ #### How to Add Bootstrap 4 Notifications to Layouts
19
+ Add the line of code below to your app/views/layouts/application.rb
20
+
21
+ <%= render 'phcdevworks_notifications/bootstrap/notifications' %>
22
+
23
+ #### How to Add Bootstrap 4 Validations to your Form
24
+ Add the line of code below to your _form.rb file. Change @example_object to the same one on your form.
25
+
26
+ <%= render 'phcdevworks_notifications/bootstrap/validations', :object => @example_object %>
data/Rakefile CHANGED
@@ -1,8 +1,8 @@
1
- require "bundler/setup"
2
-
3
- APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
4
- load "rails/tasks/engine.rake"
5
-
6
- load "rails/tasks/statistics.rake"
7
-
8
- require "bundler/gem_tasks"
1
+ require "bundler/setup"
2
+
3
+ APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
5
+
6
+ load "rails/tasks/statistics.rake"
7
+
8
+ require "bundler/gem_tasks"
@@ -1,21 +1,21 @@
1
- module PhcdevworksNotifications
2
- module ApplicationHelper
3
-
4
- # PHCNotifi - Bootstrap Notification Helpers for Rails
5
- def phc_notification(flash_type)
6
- case flash_type
7
- when 'success'
8
- 'alert-success'
9
- when 'error'
10
- 'alert-danger'
11
- when 'alert'
12
- 'alert-warning'
13
- when 'notice'
14
- 'alert-info'
15
- else
16
- flash_type.to_s
17
- end
18
- end
19
-
20
- end
21
- end
1
+ module PhcdevworksNotifications
2
+ module ApplicationHelper
3
+
4
+ # PHCNotifi - Bootstrap Notification Helpers for Rails
5
+ def phc_notification(flash_type)
6
+ case flash_type
7
+ when 'success'
8
+ 'alert-success'
9
+ when 'error'
10
+ 'alert-danger'
11
+ when 'alert'
12
+ 'alert-warning'
13
+ when 'notice'
14
+ 'alert-info'
15
+ else
16
+ flash_type.to_s
17
+ end
18
+ end
19
+
20
+ end
21
+ end
@@ -1,12 +1,12 @@
1
- <% flash.each do |flash_type, phc_notification_msg| %>
2
- <div class="row">
3
- <div class="col-md-12">
4
- <div class="alert <%= phc_notification(flash_type) %> alert-dismissable fade show" role="alert" id="phcdevworks_notifi_alert">
5
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
6
- <span aria-hidden="true">&times;</span>
7
- </button>
8
- <h4 class="text-center"><%= phc_notification_msg %></h4>
9
- </div>
10
- </div>
11
- </div>
12
- <% end %>
1
+ <% flash.each do |flash_type, phc_notification_msg| %>
2
+ <div class="row">
3
+ <div class="col-md-12">
4
+ <div class="alert <%= phc_notification(flash_type) %> alert-dismissable fade show" role="alert" id="phcdevworks_notifi_alert">
5
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
6
+ <span aria-hidden="true">&times;</span>
7
+ </button>
8
+ <h4 class="text-center"><%= phc_notification_msg %></h4>
9
+ </div>
10
+ </div>
11
+ </div>
12
+ <% end %>
@@ -1,14 +1,14 @@
1
- <% if object.errors.any? %>
2
- <div class="alert alert-danger alert-dismissable fade show" role="alert">
3
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
4
- <span aria-hidden="true">&times;</span>
5
- </button>
6
- <h4 class="text-center">The form contains <%= pluralize(object.errors.count, "error") %>.</h4>
7
- <ul class="list-group">
8
- <% object.errors.full_messages.each do |phc_notification_msg| %>
9
- <li class="list-group-item list-group-item-danger borderless"><%= phc_notification_msg %></li>
10
- <li class="list-group-item list-group-item-danger "></li>
11
- <% end %>
12
- </ul>
13
- </div>
14
- <% end %>
1
+ <% if object.errors.any? %>
2
+ <div class="alert alert-danger alert-dismissable fade show" role="alert">
3
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
4
+ <span aria-hidden="true">&times;</span>
5
+ </button>
6
+ <h4 class="text-center">The form contains <%= pluralize(object.errors.count, "error") %>.</h4>
7
+ <ul class="list-group">
8
+ <% object.errors.full_messages.each do |phc_notification_msg| %>
9
+ <li class="list-group-item list-group-item-danger borderless"><%= phc_notification_msg %></li>
10
+ <li class="list-group-item list-group-item-danger "></li>
11
+ <% end %>
12
+ </ul>
13
+ </div>
14
+ <% end %>
@@ -1,8 +1,8 @@
1
- <% flash.each do |flash_type, phc_notification_msg| %>
2
- <div class="alert <%= phc_notification(flash_type) %> alert-dismissable fade show" role="alert" id="phcdevworks_notifi_alert">
3
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
4
- <span aria-hidden="true">&times;</span>
5
- </button>
6
- <h4 class="text-center"><%= phc_notification_msg %></h4>
7
- </div>
8
- <% end %>
1
+ <% flash.each do |flash_type, phc_notification_msg| %>
2
+ <div class="alert <%= phc_notification(flash_type) %> alert-dismissable fade show" role="alert" id="phcdevworks_notifi_alert">
3
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
4
+ <span aria-hidden="true">&times;</span>
5
+ </button>
6
+ <h4 class="text-center"><%= phc_notification_msg %></h4>
7
+ </div>
8
+ <% end %>
@@ -1,15 +1,15 @@
1
- <% flash.each do |flash_type, phc_notification_msg| %>
2
- <div class="row">
3
- <div class="col-md-12">
4
- <div class="alert <%= phc_notification(flash_type) %> fade show" role="alert">
5
- <!-- <div class="alert-icon"><i class="flaticon-<%= phc_notification(flash_type) %>"></i></div> -->
6
- <div class="alert-text"><%= phc_notification_msg %></div>
7
- <div class="alert-close">
8
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
9
- <span aria-hidden="true"><i class="la la-close"></i></span>
10
- </button>
11
- </div>
12
- </div>
13
- </div>
14
- </div>
15
- <% end %>
1
+ <% flash.each do |flash_type, phc_notification_msg| %>
2
+ <div class="row">
3
+ <div class="col-md-12">
4
+ <div class="alert <%= phc_notification(flash_type) %> fade show" role="alert">
5
+ <!-- <div class="alert-icon"><i class="flaticon-<%= phc_notification(flash_type) %>"></i></div> -->
6
+ <div class="alert-text"><%= phc_notification_msg %></div>
7
+ <div class="alert-close">
8
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
9
+ <span aria-hidden="true"><i class="la la-close"></i></span>
10
+ </button>
11
+ </div>
12
+ </div>
13
+ </div>
14
+ </div>
15
+ <% end %>
@@ -1,18 +1,18 @@
1
- <% if object.errors.any? %>
2
- <div class="alert alert-outline-danger fade show" role="alert">
3
- <div class="alert-text">
4
- <h4 class="alert-heading text-center">The form contains <%= pluralize(object.errors.count, "error") %>.</h4>
5
- <br>
6
- <ul class="list-group">
7
- <% object.errors.full_messages.each do |phc_notification_msg| %>
8
- <li class="list-group-item"><%= phc_notification_msg %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <div class="alert-close">
13
- <button type="button" class="close" data-dismiss="alert" aria-label="Close">
14
- <span aria-hidden="true"><i class="la la-close"></i></span>
15
- </button>
16
- </div>
17
- </div>
18
- <% end %>
1
+ <% if object.errors.any? %>
2
+ <div class="alert alert-outline-danger fade show" role="alert">
3
+ <div class="alert-text">
4
+ <h4 class="alert-heading text-center">The form contains <%= pluralize(object.errors.count, "error") %>.</h4>
5
+ <br>
6
+ <ul class="list-group">
7
+ <% object.errors.full_messages.each do |phc_notification_msg| %>
8
+ <li class="list-group-item"><%= phc_notification_msg %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <div class="alert-close">
13
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
14
+ <span aria-hidden="true"><i class="la la-close"></i></span>
15
+ </button>
16
+ </div>
17
+ </div>
18
+ <% end %>
@@ -1,12 +1,12 @@
1
- module PhcdevworksNotifications
2
- class Engine < ::Rails::Engine
3
-
4
- # Theme Dependencies
5
- require "phcthemes_admin_panel_pack"
6
- require "phcthemes_web_theme_pack"
7
-
8
- # Plugin Namespace
9
- isolate_namespace PhcdevworksNotifications
10
-
11
- end
12
- end
1
+ module PhcdevworksNotifications
2
+ class Engine < ::Rails::Engine
3
+
4
+ # Theme Dependencies
5
+ require "phcthemes_admin_panel_pack"
6
+ require "phcthemes_web_theme_pack"
7
+
8
+ # Plugin Namespace
9
+ isolate_namespace PhcdevworksNotifications
10
+
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
- module PhcdevworksNotifications
2
- VERSION = '2.2.3'
3
- end
1
+ module PhcdevworksNotifications
2
+ VERSION = '2.3.0'
3
+ end
@@ -1,6 +1,6 @@
1
- require "phcdevworks_notifications/version"
2
- require "phcdevworks_notifications/engine"
3
-
4
- module PhcdevworksNotifications
5
- # Your code goes here...
6
- end
1
+ require "phcdevworks_notifications/version"
2
+ require "phcdevworks_notifications/engine"
3
+
4
+ module PhcdevworksNotifications
5
+ # Your code goes here...
6
+ end
@@ -1,4 +1,4 @@
1
- # desc "Explaining what the task does"
2
- # task :phcdevworks_notifications do
3
- # # Task goes here
4
- # end
1
+ # desc "Explaining what the task does"
2
+ # task :phcdevworks_notifications do
3
+ # # Task goes here
4
+ # end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_notifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
33
+ version: '4.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: '4.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: phcthemes_web_theme_pack
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.0'
47
+ version: '4.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4.0'
54
+ version: '4.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.0.3
112
+ rubygems_version: 3.2.22
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: PHCDevworks - Helpers - Notifications