phcdevworks_active_menus 2.3.0 → 3.0.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: 69dfa4d5554399d20bb1fe9f3fe2c27a8bcbe283557fb4a431dccd60d0b823f1
4
- data.tar.gz: 53e5feef5d14514e0801d3b1bc42ecb4e81ebabee5e7173a216071e27099c732
3
+ metadata.gz: 64f04dbeffc934b1800254fae4ebc560c8f7dc50e73296e74c9138aa3380d526
4
+ data.tar.gz: 1d5ce78b974aab3833e14884b258fb4c396851adeb68da1b6e24d6d75419e692
5
5
  SHA512:
6
- metadata.gz: 61ab8542e99813e58e7d3526722a715121b1d5d572f72a7c2a3ec652a93b0b71924a2ad2f98164e06cf2f60fe697302b575225d300e439790dfcb30d4fec6763
7
- data.tar.gz: 8214db7f059fc315043d485c55811e7fc9608cce98dded69b335d0a4c5ab8c6d89315f76bd851f365754327f7ae7adb71c350706ce6111ca042ed3bc465204e6
6
+ metadata.gz: '048737c82b1f18ec84396f9b2746386cfa9aef5d776f0b800f5b5a0faa2e60816d17fb04947a46804356ae210f3d8bd61b848afcaf6eed42232954c0183ae3f3'
7
+ data.tar.gz: 74a164038dc78307ff6da5b7c7baf1c5dcf267979f4bcb325120130a009a6ca40d64ab7f007b978a20c8241183b0865cec52d0b9a18f00b5171ba09e5823490b
data/MIT-LICENSE CHANGED
@@ -1,20 +1,20 @@
1
- Copyright 2021 PHCDevworks
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 2022 PHCDevworks
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,15 +1,16 @@
1
- ### PHCDevworks Active Menus for Rails 6 (Add Active Class to Menus)
2
- PHCDevworks Active Menus Rails 6 engine with helpers to add active class to menus.
1
+ ### PHCDevworks Active Menus for Rails 7 (Add Active Class to Menus)
3
2
 
3
+ PHCDevworks Active Menus Rails 7 engine with helpers to add active class to menus.
4
+
4
5
  * Add active class based on current controller.
5
6
  * Add active class based on current action.
6
7
  * Add active class based on both current controller plus current action.
7
-
8
+
8
9
  #### Step 1 - Add PHCDevworks Active Menus to your gemfile
9
-
10
+
10
11
  gem 'phcdevworks_active_menus'
11
12
  bundle install
12
-
13
+
13
14
  #### Step 2 - Load Helpers in the Application's Controller
14
15
  Add the line of code below into your app/controllers/application_controller.rb (application's controller file).
15
16
 
@@ -30,4 +31,7 @@ Add the line of code in between div class tag.
30
31
 
31
32
  <div class"<%= phc_menu_active_action_controller("ExampleControllerName", "ExampleActionName") %>">
32
33
 
33
- [![Gem Version](https://badge.fury.io/rb/phcdevworks_active_menus.svg)](https://badge.fury.io/rb/phcdevworks_active_menus)
34
+ ### Status
35
+
36
+ [![Gem Version](https://badge.fury.io/rb/phcdevworks_active_menus.svg)](https://badge.fury.io/rb/phcdevworks_active_menus) [![Publish to Github.com](https://github.com/phcdevworks/phcdevworks_active_menus/actions/workflows/publish_gem_github_com.yml/badge.svg)](https://github.com/phcdevworks/phcdevworks_active_menus/actions/workflows/publish_gem_github_com.yml) [![Publish to Rubygems.org](https://github.com/phcdevworks/phcdevworks_active_menus/actions/workflows/publish_gem_rubygems_org.yml/badge.svg)](https://github.com/phcdevworks/phcdevworks_active_menus/actions/workflows/publish_gem_rubygems_org.yml)
37
+
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"
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ Rails.application.routes.draw do
2
+ end
@@ -1,12 +1,12 @@
1
- module PhcdevworksActiveMenus
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 PhcdevworksActiveMenus
10
-
11
- end
12
- end
1
+ module PhcdevworksActiveMenus
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 PhcdevworksActiveMenus
10
+
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
- module PhcdevworksActiveMenus
2
- VERSION = '2.3.0'
3
- end
1
+ module PhcdevworksActiveMenus
2
+ VERSION = "3.0.0"
3
+ end
@@ -1,6 +1,6 @@
1
- require "phcdevworks_active_menus/version"
2
- require "phcdevworks_active_menus/engine"
3
-
4
- module PhcdevworksActiveMenus
5
- # Your code goes here...
6
- end
1
+ require "phcdevworks_active_menus/version"
2
+ require "phcdevworks_active_menus/engine"
3
+
4
+ module PhcdevworksActiveMenus
5
+ # Your code goes here...
6
+ end
@@ -1,4 +1,4 @@
1
- # desc "Explaining what the task does"
2
- # task :phcdevworks_active_menus do
3
- # # Task goes here
4
- # end
1
+ # desc "Explaining what the task does"
2
+ # task :phcdevworks_active_menus do
3
+ # # Task goes here
4
+ # end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_active_menus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 3.0.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-10-17 00:00:00.000000000 Z
11
+ date: 2022-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.1'
19
+ version: '7.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '6.1'
26
+ version: '7.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: phcthemes_admin_panel_pack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.1'
33
+ version: '5.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.1'
40
+ version: '5.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.1'
47
+ version: '5.0'
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.1'
54
+ version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,8 +66,8 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.4'
69
- description: Rails helpers to add active class to menu items based on controller and
70
- controller action.
69
+ description: Rails 7 helpers to add active class to menu items based on controller
70
+ and controller action.
71
71
  email:
72
72
  - imfo@phcdevworks.com
73
73
  executables: []
@@ -78,6 +78,7 @@ files:
78
78
  - README.md
79
79
  - Rakefile
80
80
  - app/helpers/phcdevworks_active_menus/application_helper.rb
81
+ - config/routes.rb
81
82
  - lib/phcdevworks_active_menus.rb
82
83
  - lib/phcdevworks_active_menus/engine.rb
83
84
  - lib/phcdevworks_active_menus/version.rb
@@ -86,7 +87,6 @@ homepage: https://phcdevworks.com/
86
87
  licenses:
87
88
  - MIT
88
89
  metadata:
89
- allowed_push_host: https://rubygems.org/
90
90
  homepage_uri: https://phcdevworks.com/
91
91
  source_code_uri: https://github.com/phcdevworks/phcdevworks_active_menus
92
92
  changelog_uri: https://github.com/phcdevworks/phcdevworks_active_menus/releases
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.2.22
108
+ rubygems_version: 3.0.3.1
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: PHCDevworks - Helpers - Active Menus