cccux 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/README.md +124 -112
- data/Rakefile +57 -4
- data/app/assets/stylesheets/cccux/application.css +39 -84
- data/app/controllers/cccux/ability_permissions_controller.rb +3 -9
- data/app/controllers/cccux/application_controller.rb +7 -0
- data/app/controllers/cccux/cccux_controller.rb +19 -9
- data/app/controllers/cccux/dashboard_controller.rb +1 -16
- data/app/controllers/cccux/role_abilities_controller.rb +70 -0
- data/app/controllers/cccux/roles_controller.rb +70 -81
- data/app/controllers/cccux/users_controller.rb +22 -7
- data/app/controllers/concerns/cccux/application_controller_concern.rb +6 -2
- data/app/helpers/cccux/authorization_helper.rb +23 -21
- data/app/models/cccux/ability.rb +82 -32
- data/app/models/cccux/post.rb +5 -0
- data/app/models/cccux/role.rb +19 -1
- data/app/models/cccux/role_ability.rb +3 -0
- data/app/models/concerns/cccux/user_concern.rb +2 -2
- data/app/views/cccux/roles/_form.html.erb +24 -71
- data/app/views/cccux/roles/edit.html.erb +5 -5
- data/app/views/cccux/roles/index.html.erb +1 -8
- data/app/views/cccux/roles/new.html.erb +1 -3
- data/app/views/cccux/users/edit.html.erb +4 -4
- data/app/views/cccux/users/new.html.erb +30 -15
- data/app/views/layouts/cccux/admin.html.erb +1 -2
- data/config/routes.rb +6 -6
- data/lib/cccux/version.rb +1 -1
- data/lib/tasks/cccux.rake +23 -2
- metadata +10 -22
metadata
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cccux
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-07-
|
|
10
|
+
date: 2025-07-16 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
|
-
- - "~>"
|
|
17
|
-
- !ruby/object:Gem::Version
|
|
18
|
-
version: '7.1'
|
|
19
16
|
- - ">="
|
|
20
17
|
- !ruby/object:Gem::Version
|
|
21
18
|
version: 7.1.5.1
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '9.0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
|
-
- - "~>"
|
|
27
|
-
- !ruby/object:Gem::Version
|
|
28
|
-
version: '7.1'
|
|
29
26
|
- - ">="
|
|
30
27
|
- !ruby/object:Gem::Version
|
|
31
28
|
version: 7.1.5.1
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '9.0'
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: cancancan
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -71,20 +71,6 @@ dependencies:
|
|
|
71
71
|
- - "~>"
|
|
72
72
|
- !ruby/object:Gem::Version
|
|
73
73
|
version: '1.4'
|
|
74
|
-
- !ruby/object:Gem::Dependency
|
|
75
|
-
name: rspec-rails
|
|
76
|
-
requirement: !ruby/object:Gem::Requirement
|
|
77
|
-
requirements:
|
|
78
|
-
- - "~>"
|
|
79
|
-
- !ruby/object:Gem::Version
|
|
80
|
-
version: '6.0'
|
|
81
|
-
type: :development
|
|
82
|
-
prerelease: false
|
|
83
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
84
|
-
requirements:
|
|
85
|
-
- - "~>"
|
|
86
|
-
- !ruby/object:Gem::Version
|
|
87
|
-
version: '6.0'
|
|
88
74
|
description: CCCUX provides a comprehensive admin interface and user experience layer
|
|
89
75
|
for CanCanCan authorization. It includes role-based access control (RBAC) models,
|
|
90
76
|
admin controllers for managing users, roles, and permissions, and a clean interface
|
|
@@ -107,6 +93,7 @@ files:
|
|
|
107
93
|
- app/controllers/cccux/cccux_controller.rb
|
|
108
94
|
- app/controllers/cccux/dashboard_controller.rb
|
|
109
95
|
- app/controllers/cccux/home_controller.rb
|
|
96
|
+
- app/controllers/cccux/role_abilities_controller.rb
|
|
110
97
|
- app/controllers/cccux/roles_controller.rb
|
|
111
98
|
- app/controllers/cccux/simple_controller.rb
|
|
112
99
|
- app/controllers/cccux/users_controller.rb
|
|
@@ -118,6 +105,7 @@ files:
|
|
|
118
105
|
- app/models/cccux/ability.rb
|
|
119
106
|
- app/models/cccux/ability_permission.rb
|
|
120
107
|
- app/models/cccux/application_record.rb
|
|
108
|
+
- app/models/cccux/post.rb
|
|
121
109
|
- app/models/cccux/role.rb
|
|
122
110
|
- app/models/cccux/role_ability.rb
|
|
123
111
|
- app/models/cccux/user_role.rb
|