rbacan 0.3.2 → 0.5.0
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 +53 -0
- data/README.md +97 -15
- data/app/models/rbacan/role.rb +22 -9
- data/app/models/rbacan/user_role.rb +8 -5
- data/lib/generators/install/templates/create_permissions.rb +1 -1
- data/lib/generators/install/templates/create_role_permissions.rb +3 -3
- data/lib/generators/install/templates/create_roles.rb +10 -1
- data/lib/generators/install/templates/create_user_roles.rb +11 -4
- data/lib/generators/install/templates/rbacan.rb +32 -17
- data/lib/generators/rbacan/install_generator.rb +26 -7
- data/lib/rbacan/authorizable.rb +15 -0
- data/lib/rbacan/authorization.rb +37 -9
- data/lib/rbacan/host_authorization.rb +165 -0
- data/lib/rbacan/not_authorized.rb +10 -3
- data/lib/rbacan/permittable.rb +74 -36
- data/lib/rbacan/roles_and_permissions.rb +12 -4
- data/lib/rbacan/route_constraint.rb +21 -18
- data/lib/rbacan/version.rb +1 -1
- data/lib/rbacan/view_helpers.rb +13 -8
- data/lib/rbacan.rb +63 -14
- metadata +37 -44
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.travis.yml +0 -7
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -319
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/rbacan.gemspec +0 -42
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbacan
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- hamdi
|
|
@@ -30,47 +30,39 @@ dependencies:
|
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
31
|
version: '9'
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
|
-
name:
|
|
33
|
+
name: activerecord
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
|
35
35
|
requirements:
|
|
36
|
-
- - "
|
|
37
|
-
- !ruby/object:Gem::Version
|
|
38
|
-
version: '2.0'
|
|
39
|
-
type: :development
|
|
40
|
-
prerelease: false
|
|
41
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
-
requirements:
|
|
43
|
-
- - "~>"
|
|
36
|
+
- - ">="
|
|
44
37
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: '2
|
|
46
|
-
-
|
|
47
|
-
name: rake
|
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
requirements:
|
|
50
|
-
- - "~>"
|
|
38
|
+
version: '5.2'
|
|
39
|
+
- - "<"
|
|
51
40
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '
|
|
41
|
+
version: '9'
|
|
53
42
|
type: :development
|
|
54
43
|
prerelease: false
|
|
55
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
56
45
|
requirements:
|
|
57
|
-
- - "
|
|
46
|
+
- - ">="
|
|
58
47
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: '
|
|
48
|
+
version: '5.2'
|
|
49
|
+
- - "<"
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '9'
|
|
60
52
|
- !ruby/object:Gem::Dependency
|
|
61
|
-
name:
|
|
53
|
+
name: bundler
|
|
62
54
|
requirement: !ruby/object:Gem::Requirement
|
|
63
55
|
requirements:
|
|
64
|
-
- - "
|
|
56
|
+
- - ">="
|
|
65
57
|
- !ruby/object:Gem::Version
|
|
66
|
-
version: '
|
|
58
|
+
version: '2.0'
|
|
67
59
|
type: :development
|
|
68
60
|
prerelease: false
|
|
69
61
|
version_requirements: !ruby/object:Gem::Requirement
|
|
70
62
|
requirements:
|
|
71
|
-
- - "
|
|
63
|
+
- - ">="
|
|
72
64
|
- !ruby/object:Gem::Version
|
|
73
|
-
version: '
|
|
65
|
+
version: '2.0'
|
|
74
66
|
- !ruby/object:Gem::Dependency
|
|
75
67
|
name: generator_spec
|
|
76
68
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -106,25 +98,33 @@ dependencies:
|
|
|
106
98
|
- !ruby/object:Gem::Version
|
|
107
99
|
version: '9'
|
|
108
100
|
- !ruby/object:Gem::Dependency
|
|
109
|
-
name:
|
|
101
|
+
name: rake
|
|
110
102
|
requirement: !ruby/object:Gem::Requirement
|
|
111
103
|
requirements:
|
|
112
|
-
- - "
|
|
113
|
-
- !ruby/object:Gem::Version
|
|
114
|
-
version: '5.2'
|
|
115
|
-
- - "<"
|
|
104
|
+
- - "~>"
|
|
116
105
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '
|
|
106
|
+
version: '13.0'
|
|
118
107
|
type: :development
|
|
119
108
|
prerelease: false
|
|
120
109
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
110
|
requirements:
|
|
122
|
-
- - "
|
|
111
|
+
- - "~>"
|
|
123
112
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '
|
|
125
|
-
|
|
113
|
+
version: '13.0'
|
|
114
|
+
- !ruby/object:Gem::Dependency
|
|
115
|
+
name: rspec
|
|
116
|
+
requirement: !ruby/object:Gem::Requirement
|
|
117
|
+
requirements:
|
|
118
|
+
- - "~>"
|
|
126
119
|
- !ruby/object:Gem::Version
|
|
127
|
-
version: '
|
|
120
|
+
version: '3.0'
|
|
121
|
+
type: :development
|
|
122
|
+
prerelease: false
|
|
123
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
124
|
+
requirements:
|
|
125
|
+
- - "~>"
|
|
126
|
+
- !ruby/object:Gem::Version
|
|
127
|
+
version: '3.0'
|
|
128
128
|
- !ruby/object:Gem::Dependency
|
|
129
129
|
name: sqlite3
|
|
130
130
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -147,23 +147,15 @@ executables: []
|
|
|
147
147
|
extensions: []
|
|
148
148
|
extra_rdoc_files: []
|
|
149
149
|
files:
|
|
150
|
-
- ".gitignore"
|
|
151
|
-
- ".rspec"
|
|
152
|
-
- ".travis.yml"
|
|
153
150
|
- CHANGELOG.md
|
|
154
151
|
- CODE_OF_CONDUCT.md
|
|
155
|
-
- Gemfile
|
|
156
|
-
- Gemfile.lock
|
|
157
152
|
- LICENSE.txt
|
|
158
153
|
- README.md
|
|
159
|
-
- Rakefile
|
|
160
154
|
- app/models/rbacan/application_record.rb
|
|
161
155
|
- app/models/rbacan/permission.rb
|
|
162
156
|
- app/models/rbacan/role.rb
|
|
163
157
|
- app/models/rbacan/role_permission.rb
|
|
164
158
|
- app/models/rbacan/user_role.rb
|
|
165
|
-
- bin/console
|
|
166
|
-
- bin/setup
|
|
167
159
|
- lib/generators/install/templates/copy_to_seeds.rb
|
|
168
160
|
- lib/generators/install/templates/create_permissions.rb
|
|
169
161
|
- lib/generators/install/templates/create_role_permissions.rb
|
|
@@ -172,15 +164,16 @@ files:
|
|
|
172
164
|
- lib/generators/install/templates/rbacan.rb
|
|
173
165
|
- lib/generators/rbacan/install_generator.rb
|
|
174
166
|
- lib/rbacan.rb
|
|
167
|
+
- lib/rbacan/authorizable.rb
|
|
175
168
|
- lib/rbacan/authorization.rb
|
|
176
169
|
- lib/rbacan/engine.rb
|
|
170
|
+
- lib/rbacan/host_authorization.rb
|
|
177
171
|
- lib/rbacan/not_authorized.rb
|
|
178
172
|
- lib/rbacan/permittable.rb
|
|
179
173
|
- lib/rbacan/roles_and_permissions.rb
|
|
180
174
|
- lib/rbacan/route_constraint.rb
|
|
181
175
|
- lib/rbacan/version.rb
|
|
182
176
|
- lib/rbacan/view_helpers.rb
|
|
183
|
-
- rbacan.gemspec
|
|
184
177
|
homepage: https://github.com/hamdi777/RBACan
|
|
185
178
|
licenses:
|
|
186
179
|
- MIT
|
|
@@ -202,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
202
195
|
- !ruby/object:Gem::Version
|
|
203
196
|
version: '0'
|
|
204
197
|
requirements: []
|
|
205
|
-
rubygems_version:
|
|
198
|
+
rubygems_version: 4.0.16
|
|
206
199
|
specification_version: 4
|
|
207
200
|
summary: A gem to give permission access to users based on their roles
|
|
208
201
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
rbacan (0.3.1)
|
|
5
|
-
rails (>= 5.2)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
action_text-trix (2.1.18)
|
|
11
|
-
railties
|
|
12
|
-
actioncable (8.1.3)
|
|
13
|
-
actionpack (= 8.1.3)
|
|
14
|
-
activesupport (= 8.1.3)
|
|
15
|
-
nio4r (~> 2.0)
|
|
16
|
-
websocket-driver (>= 0.6.1)
|
|
17
|
-
zeitwerk (~> 2.6)
|
|
18
|
-
actionmailbox (8.1.3)
|
|
19
|
-
actionpack (= 8.1.3)
|
|
20
|
-
activejob (= 8.1.3)
|
|
21
|
-
activerecord (= 8.1.3)
|
|
22
|
-
activestorage (= 8.1.3)
|
|
23
|
-
activesupport (= 8.1.3)
|
|
24
|
-
mail (>= 2.8.0)
|
|
25
|
-
actionmailer (8.1.3)
|
|
26
|
-
actionpack (= 8.1.3)
|
|
27
|
-
actionview (= 8.1.3)
|
|
28
|
-
activejob (= 8.1.3)
|
|
29
|
-
activesupport (= 8.1.3)
|
|
30
|
-
mail (>= 2.8.0)
|
|
31
|
-
rails-dom-testing (~> 2.2)
|
|
32
|
-
actionpack (8.1.3)
|
|
33
|
-
actionview (= 8.1.3)
|
|
34
|
-
activesupport (= 8.1.3)
|
|
35
|
-
nokogiri (>= 1.8.5)
|
|
36
|
-
rack (>= 2.2.4)
|
|
37
|
-
rack-session (>= 1.0.1)
|
|
38
|
-
rack-test (>= 0.6.3)
|
|
39
|
-
rails-dom-testing (~> 2.2)
|
|
40
|
-
rails-html-sanitizer (~> 1.6)
|
|
41
|
-
useragent (~> 0.16)
|
|
42
|
-
actiontext (8.1.3)
|
|
43
|
-
action_text-trix (~> 2.1.15)
|
|
44
|
-
actionpack (= 8.1.3)
|
|
45
|
-
activerecord (= 8.1.3)
|
|
46
|
-
activestorage (= 8.1.3)
|
|
47
|
-
activesupport (= 8.1.3)
|
|
48
|
-
globalid (>= 0.6.0)
|
|
49
|
-
nokogiri (>= 1.8.5)
|
|
50
|
-
actionview (8.1.3)
|
|
51
|
-
activesupport (= 8.1.3)
|
|
52
|
-
builder (~> 3.1)
|
|
53
|
-
erubi (~> 1.11)
|
|
54
|
-
rails-dom-testing (~> 2.2)
|
|
55
|
-
rails-html-sanitizer (~> 1.6)
|
|
56
|
-
activejob (8.1.3)
|
|
57
|
-
activesupport (= 8.1.3)
|
|
58
|
-
globalid (>= 0.3.6)
|
|
59
|
-
activemodel (8.1.3)
|
|
60
|
-
activesupport (= 8.1.3)
|
|
61
|
-
activerecord (8.1.3)
|
|
62
|
-
activemodel (= 8.1.3)
|
|
63
|
-
activesupport (= 8.1.3)
|
|
64
|
-
timeout (>= 0.4.0)
|
|
65
|
-
activestorage (8.1.3)
|
|
66
|
-
actionpack (= 8.1.3)
|
|
67
|
-
activejob (= 8.1.3)
|
|
68
|
-
activerecord (= 8.1.3)
|
|
69
|
-
activesupport (= 8.1.3)
|
|
70
|
-
marcel (~> 1.0)
|
|
71
|
-
activesupport (8.1.3)
|
|
72
|
-
base64
|
|
73
|
-
bigdecimal
|
|
74
|
-
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
75
|
-
connection_pool (>= 2.2.5)
|
|
76
|
-
drb
|
|
77
|
-
i18n (>= 1.6, < 2)
|
|
78
|
-
json
|
|
79
|
-
logger (>= 1.4.2)
|
|
80
|
-
minitest (>= 5.1)
|
|
81
|
-
securerandom (>= 0.3)
|
|
82
|
-
tzinfo (~> 2.0, >= 2.0.5)
|
|
83
|
-
uri (>= 0.13.1)
|
|
84
|
-
base64 (0.3.0)
|
|
85
|
-
bigdecimal (4.1.0)
|
|
86
|
-
builder (3.3.0)
|
|
87
|
-
concurrent-ruby (1.3.6)
|
|
88
|
-
connection_pool (3.0.2)
|
|
89
|
-
crass (1.0.6)
|
|
90
|
-
date (3.5.1)
|
|
91
|
-
diff-lcs (1.6.2)
|
|
92
|
-
drb (2.2.3)
|
|
93
|
-
erb (6.0.2)
|
|
94
|
-
erubi (1.13.1)
|
|
95
|
-
generator_spec (0.9.5)
|
|
96
|
-
activesupport (>= 3.0.0)
|
|
97
|
-
railties (>= 3.0.0)
|
|
98
|
-
globalid (1.3.0)
|
|
99
|
-
activesupport (>= 6.1)
|
|
100
|
-
i18n (1.14.8)
|
|
101
|
-
concurrent-ruby (~> 1.0)
|
|
102
|
-
io-console (0.8.2)
|
|
103
|
-
irb (1.17.0)
|
|
104
|
-
pp (>= 0.6.0)
|
|
105
|
-
prism (>= 1.3.0)
|
|
106
|
-
rdoc (>= 4.0.0)
|
|
107
|
-
reline (>= 0.4.2)
|
|
108
|
-
json (2.19.3)
|
|
109
|
-
logger (1.7.0)
|
|
110
|
-
loofah (2.25.1)
|
|
111
|
-
crass (~> 1.0.2)
|
|
112
|
-
nokogiri (>= 1.12.0)
|
|
113
|
-
mail (2.9.0)
|
|
114
|
-
logger
|
|
115
|
-
mini_mime (>= 0.1.1)
|
|
116
|
-
net-imap
|
|
117
|
-
net-pop
|
|
118
|
-
net-smtp
|
|
119
|
-
marcel (1.1.0)
|
|
120
|
-
mini_mime (1.1.5)
|
|
121
|
-
mini_portile2 (2.8.9)
|
|
122
|
-
minitest (6.0.2)
|
|
123
|
-
drb (~> 2.0)
|
|
124
|
-
prism (~> 1.5)
|
|
125
|
-
net-imap (0.6.3)
|
|
126
|
-
date
|
|
127
|
-
net-protocol
|
|
128
|
-
net-pop (0.1.2)
|
|
129
|
-
net-protocol
|
|
130
|
-
net-protocol (0.2.2)
|
|
131
|
-
timeout
|
|
132
|
-
net-smtp (0.5.1)
|
|
133
|
-
net-protocol
|
|
134
|
-
nio4r (2.7.5)
|
|
135
|
-
nokogiri (1.19.2)
|
|
136
|
-
mini_portile2 (~> 2.8.2)
|
|
137
|
-
racc (~> 1.4)
|
|
138
|
-
nokogiri (1.19.2-x86_64-linux-gnu)
|
|
139
|
-
racc (~> 1.4)
|
|
140
|
-
pp (0.6.3)
|
|
141
|
-
prettyprint
|
|
142
|
-
prettyprint (0.2.0)
|
|
143
|
-
prism (1.9.0)
|
|
144
|
-
psych (5.3.1)
|
|
145
|
-
date
|
|
146
|
-
stringio
|
|
147
|
-
racc (1.8.1)
|
|
148
|
-
rack (3.2.6)
|
|
149
|
-
rack-session (2.1.1)
|
|
150
|
-
base64 (>= 0.1.0)
|
|
151
|
-
rack (>= 3.0.0)
|
|
152
|
-
rack-test (2.2.0)
|
|
153
|
-
rack (>= 1.3)
|
|
154
|
-
rackup (2.3.1)
|
|
155
|
-
rack (>= 3)
|
|
156
|
-
rails (8.1.3)
|
|
157
|
-
actioncable (= 8.1.3)
|
|
158
|
-
actionmailbox (= 8.1.3)
|
|
159
|
-
actionmailer (= 8.1.3)
|
|
160
|
-
actionpack (= 8.1.3)
|
|
161
|
-
actiontext (= 8.1.3)
|
|
162
|
-
actionview (= 8.1.3)
|
|
163
|
-
activejob (= 8.1.3)
|
|
164
|
-
activemodel (= 8.1.3)
|
|
165
|
-
activerecord (= 8.1.3)
|
|
166
|
-
activestorage (= 8.1.3)
|
|
167
|
-
activesupport (= 8.1.3)
|
|
168
|
-
bundler (>= 1.15.0)
|
|
169
|
-
railties (= 8.1.3)
|
|
170
|
-
rails-dom-testing (2.3.0)
|
|
171
|
-
activesupport (>= 5.0.0)
|
|
172
|
-
minitest
|
|
173
|
-
nokogiri (>= 1.6)
|
|
174
|
-
rails-html-sanitizer (1.7.0)
|
|
175
|
-
loofah (~> 2.25)
|
|
176
|
-
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
177
|
-
railties (8.1.3)
|
|
178
|
-
actionpack (= 8.1.3)
|
|
179
|
-
activesupport (= 8.1.3)
|
|
180
|
-
irb (~> 1.13)
|
|
181
|
-
rackup (>= 1.0.0)
|
|
182
|
-
rake (>= 12.2)
|
|
183
|
-
thor (~> 1.0, >= 1.2.2)
|
|
184
|
-
tsort (>= 0.2)
|
|
185
|
-
zeitwerk (~> 2.6)
|
|
186
|
-
rake (13.3.1)
|
|
187
|
-
rdoc (7.2.0)
|
|
188
|
-
erb
|
|
189
|
-
psych (>= 4.0.0)
|
|
190
|
-
tsort
|
|
191
|
-
reline (0.6.3)
|
|
192
|
-
io-console (~> 0.5)
|
|
193
|
-
rspec (3.13.2)
|
|
194
|
-
rspec-core (~> 3.13.0)
|
|
195
|
-
rspec-expectations (~> 3.13.0)
|
|
196
|
-
rspec-mocks (~> 3.13.0)
|
|
197
|
-
rspec-core (3.13.6)
|
|
198
|
-
rspec-support (~> 3.13.0)
|
|
199
|
-
rspec-expectations (3.13.5)
|
|
200
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
201
|
-
rspec-support (~> 3.13.0)
|
|
202
|
-
rspec-mocks (3.13.8)
|
|
203
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
204
|
-
rspec-support (~> 3.13.0)
|
|
205
|
-
rspec-support (3.13.7)
|
|
206
|
-
securerandom (0.4.1)
|
|
207
|
-
sqlite3 (2.9.2)
|
|
208
|
-
mini_portile2 (~> 2.8.0)
|
|
209
|
-
sqlite3 (2.9.2-x86_64-linux-gnu)
|
|
210
|
-
stringio (3.2.0)
|
|
211
|
-
thor (1.5.0)
|
|
212
|
-
timeout (0.6.1)
|
|
213
|
-
tsort (0.2.0)
|
|
214
|
-
tzinfo (2.0.6)
|
|
215
|
-
concurrent-ruby (~> 1.0)
|
|
216
|
-
uri (1.1.1)
|
|
217
|
-
useragent (0.16.11)
|
|
218
|
-
websocket-driver (0.8.0)
|
|
219
|
-
base64
|
|
220
|
-
websocket-extensions (>= 0.1.0)
|
|
221
|
-
websocket-extensions (0.1.5)
|
|
222
|
-
zeitwerk (2.7.5)
|
|
223
|
-
|
|
224
|
-
PLATFORMS
|
|
225
|
-
ruby
|
|
226
|
-
x86_64-linux
|
|
227
|
-
|
|
228
|
-
DEPENDENCIES
|
|
229
|
-
activerecord (>= 5.2)
|
|
230
|
-
bundler (>= 2.0)
|
|
231
|
-
generator_spec (~> 0.9.4)
|
|
232
|
-
railties (>= 5.2)
|
|
233
|
-
rake (~> 13.0)
|
|
234
|
-
rbacan!
|
|
235
|
-
rspec (~> 3.0)
|
|
236
|
-
sqlite3 (>= 1.4)
|
|
237
|
-
|
|
238
|
-
CHECKSUMS
|
|
239
|
-
action_text-trix (2.1.18) sha256=3fdb83f8bff4145d098be283cdd47ac41caf5110bfa6df4695ed7127d7fb3642
|
|
240
|
-
actioncable (8.1.3) sha256=e5bc7f75e44e6a22de29c4f43176927c3a9ce4824464b74ed18d8226e75a80f0
|
|
241
|
-
actionmailbox (8.1.3) sha256=df7da474eaa0e70df4ed5a6fef66eb3b3b0f2dbf7f14518deee8d77f1b4aae59
|
|
242
|
-
actionmailer (8.1.3) sha256=831f724891bb70d0aaa4d76581a6321124b6a752cb655c9346aae5479318448d
|
|
243
|
-
actionpack (8.1.3) sha256=af998cae4d47c5d581a2cc363b5c77eb718b7c4b45748d81b1887b25621c29a3
|
|
244
|
-
actiontext (8.1.3) sha256=d291019c00e1ea9e6463011fa214f6081a56d7b9a1d224e7d3f6384c1dafc7d2
|
|
245
|
-
actionview (8.1.3) sha256=1347c88c7f3edb38100c5ce0e9fb5e62d7755f3edc1b61cce2eb0b2c6ea2fd5d
|
|
246
|
-
activejob (8.1.3) sha256=a149b1766aa8204c3c3da7309e4becd40fcd5529c348cffbf6c9b16b565fe8d3
|
|
247
|
-
activemodel (8.1.3) sha256=90c05cbe4cef3649b8f79f13016191ea94c4525ce4a5c0fb7ef909c4b91c8219
|
|
248
|
-
activerecord (8.1.3) sha256=8003be7b2466ba0a2a670e603eeb0a61dd66058fccecfc49901e775260ac70ab
|
|
249
|
-
activestorage (8.1.3) sha256=0564ce9309143951a67615e1bb4e090ee54b8befed417133cae614479b46384d
|
|
250
|
-
activesupport (8.1.3) sha256=21a5e0dfbd4c3ddd9e1317ec6a4d782fa226e7867dc70b0743acda81a1dca20e
|
|
251
|
-
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
252
|
-
bigdecimal (4.1.0) sha256=6dc07767aa3dc456ccd48e7ae70a07b474e9afd7c5bc576f80bd6da5c8dd6cae
|
|
253
|
-
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
|
|
254
|
-
concurrent-ruby (1.3.6) sha256=6b56837e1e7e5292f9864f34b69c5a2cbc75c0cf5338f1ce9903d10fa762d5ab
|
|
255
|
-
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
|
256
|
-
crass (1.0.6) sha256=dc516022a56e7b3b156099abc81b6d2b08ea1ed12676ac7a5657617f012bd45d
|
|
257
|
-
date (3.5.1) sha256=750d06384d7b9c15d562c76291407d89e368dda4d4fff957eb94962d325a0dc0
|
|
258
|
-
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
259
|
-
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
260
|
-
erb (6.0.2) sha256=9fe6264d44f79422c87490a1558479bd0e7dad4dd0e317656e67ea3077b5242b
|
|
261
|
-
erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
|
|
262
|
-
generator_spec (0.9.5) sha256=eb14b6ec4f2f8ba36c81f0ddb28f63291654697a5f94064aad6767f82d469619
|
|
263
|
-
globalid (1.3.0) sha256=05c639ad6eb4594522a0b07983022f04aa7254626ab69445a0e493aa3786ff11
|
|
264
|
-
i18n (1.14.8) sha256=285778639134865c5e0f6269e0b818256017e8cde89993fdfcbfb64d088824a5
|
|
265
|
-
io-console (0.8.2) sha256=d6e3ae7a7cc7574f4b8893b4fca2162e57a825b223a177b7afa236c5ef9814cc
|
|
266
|
-
irb (1.17.0) sha256=168c4ddb93d8a361a045c41d92b2952c7a118fa73f23fe14e55609eb7a863aae
|
|
267
|
-
json (2.19.3) sha256=289b0bb53052a1fa8c34ab33cc750b659ba14a5c45f3fcf4b18762dc67c78646
|
|
268
|
-
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
269
|
-
loofah (2.25.1) sha256=d436c73dbd0c1147b16c4a41db097942d217303e1f7728704b37e4df9f6d2e04
|
|
270
|
-
mail (2.9.0) sha256=6fa6673ecd71c60c2d996260f9ee3dd387d4673b8169b502134659ece6d34941
|
|
271
|
-
marcel (1.1.0) sha256=fdcfcfa33cc52e93c4308d40e4090a5d4ea279e160a7f6af988260fa970e0bee
|
|
272
|
-
mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
|
|
273
|
-
mini_portile2 (2.8.9) sha256=0cd7c7f824e010c072e33f68bc02d85a00aeb6fce05bb4819c03dfd3c140c289
|
|
274
|
-
minitest (6.0.2) sha256=db6e57956f6ecc6134683b4c87467d6dd792323c7f0eea7b93f66bd284adbc3d
|
|
275
|
-
net-imap (0.6.3) sha256=9bab75f876596d09ee7bf911a291da478e0cd6badc54dfb82874855ccc82f2ad
|
|
276
|
-
net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3
|
|
277
|
-
net-protocol (0.2.2) sha256=aa73e0cba6a125369de9837b8d8ef82a61849360eba0521900e2c3713aa162a8
|
|
278
|
-
net-smtp (0.5.1) sha256=ed96a0af63c524fceb4b29b0d352195c30d82dd916a42f03c62a3a70e5b70736
|
|
279
|
-
nio4r (2.7.5) sha256=6c90168e48fb5f8e768419c93abb94ba2b892a1d0602cb06eef16d8b7df1dca1
|
|
280
|
-
nokogiri (1.19.2) sha256=38fdd8b59db3d5ea9e7dfb14702e882b9bf819198d5bf976f17ebce12c481756
|
|
281
|
-
nokogiri (1.19.2-x86_64-linux-gnu) sha256=fa8feca882b73e871a9845f3817a72e9734c8e974bdc4fbad6e4bc6e8076b94f
|
|
282
|
-
pp (0.6.3) sha256=2951d514450b93ccfeb1df7d021cae0da16e0a7f95ee1e2273719669d0ab9df6
|
|
283
|
-
prettyprint (0.2.0) sha256=2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193
|
|
284
|
-
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
|
285
|
-
psych (5.3.1) sha256=eb7a57cef10c9d70173ff74e739d843ac3b2c019a003de48447b2963d81b1974
|
|
286
|
-
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
287
|
-
rack (3.2.6) sha256=5ed78e1f73b2e25679bec7d45ee2d4483cc4146eb1be0264fc4d94cb5ef212c2
|
|
288
|
-
rack-session (2.1.1) sha256=0b6dc07dea7e4b583f58a48e8b806d4c9f1c6c9214ebc202ec94562cbea2e4e9
|
|
289
|
-
rack-test (2.2.0) sha256=005a36692c306ac0b4a9350355ee080fd09ddef1148a5f8b2ac636c720f5c463
|
|
290
|
-
rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
|
|
291
|
-
rails (8.1.3) sha256=6d017ba5348c98fc909753a8169b21d44de14d2a0b92d140d1a966834c3c9cd3
|
|
292
|
-
rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
|
|
293
|
-
rails-html-sanitizer (1.7.0) sha256=28b145cceaf9cc214a9874feaa183c3acba036c9592b19886e0e45efc62b1e89
|
|
294
|
-
railties (8.1.3) sha256=913eb0e0cb520aac687ffd74916bd726d48fa21f47833c6292576ef6a286de22
|
|
295
|
-
rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
|
|
296
|
-
rbacan (0.3.1)
|
|
297
|
-
rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
|
|
298
|
-
reline (0.6.3) sha256=1198b04973565b36ec0f11542ab3f5cfeeec34823f4e54cebde90968092b1835
|
|
299
|
-
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
300
|
-
rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
|
|
301
|
-
rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
|
|
302
|
-
rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
|
|
303
|
-
rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
|
|
304
|
-
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
305
|
-
sqlite3 (2.9.2) sha256=86814150714b6b06a328d083f46408e7a4a83b5f0a9673ed934ee3a1cb7a73b1
|
|
306
|
-
sqlite3 (2.9.2-x86_64-linux-gnu) sha256=dce83ffcb7e72f9f7aeb6e5404f15d277a45332fe18ccce8a8b3ed51e8d23aee
|
|
307
|
-
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
308
|
-
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
|
|
309
|
-
timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
|
|
310
|
-
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
|
311
|
-
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
312
|
-
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
|
|
313
|
-
useragent (0.16.11) sha256=700e6413ad4bb954bb63547fa098dddf7b0ebe75b40cc6f93b8d54255b173844
|
|
314
|
-
websocket-driver (0.8.0) sha256=ed0dba4b943c22f17f9a734817e808bc84cdce6a7e22045f5315aa57676d4962
|
|
315
|
-
websocket-extensions (0.1.5) sha256=1c6ba63092cda343eb53fc657110c71c754c56484aad42578495227d717a8241
|
|
316
|
-
zeitwerk (2.7.5) sha256=d8da92128c09ea6ec62c949011b00ed4a20242b255293dd66bf41545398f73dd
|
|
317
|
-
|
|
318
|
-
BUNDLED WITH
|
|
319
|
-
4.0.9
|
data/Rakefile
DELETED
data/bin/console
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "rbacan"
|
|
5
|
-
|
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
-
|
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
-
# require "pry"
|
|
11
|
-
# Pry.start
|
|
12
|
-
|
|
13
|
-
require "irb"
|
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/rbacan.gemspec
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
-
require "rbacan/version"
|
|
5
|
-
|
|
6
|
-
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name = "rbacan"
|
|
8
|
-
spec.version = Rbacan::VERSION
|
|
9
|
-
spec.authors = ["hamdi"]
|
|
10
|
-
spec.email = ["hamdi_amiche@outlook.fr"]
|
|
11
|
-
|
|
12
|
-
spec.summary = %q{A gem to give permission access to users based on their roles}
|
|
13
|
-
spec.description = %q{RBACan is a Role-Based Access Control tool to control user access to the functionalities of your application}
|
|
14
|
-
spec.homepage = "https://github.com/hamdi777/RBACan"
|
|
15
|
-
spec.licenses = ["MIT"]
|
|
16
|
-
|
|
17
|
-
if spec.respond_to?(:metadata)
|
|
18
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
19
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
20
|
-
spec.metadata["changelog_uri"] = "https://github.com/hamdi777/RBACan/blob/master/CHANGELOG.md"
|
|
21
|
-
else
|
|
22
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
26
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
27
|
-
end
|
|
28
|
-
spec.bindir = "exe"
|
|
29
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
30
|
-
spec.require_paths = ["lib"]
|
|
31
|
-
spec.required_ruby_version = ">= 3.0"
|
|
32
|
-
|
|
33
|
-
spec.add_dependency 'rails', '>= 5.2', '< 9'
|
|
34
|
-
|
|
35
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
|
36
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
|
37
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
|
38
|
-
spec.add_development_dependency "generator_spec", "~> 0.9.4"
|
|
39
|
-
spec.add_development_dependency "railties", ">= 5.2", "< 9"
|
|
40
|
-
spec.add_development_dependency "activerecord", ">= 5.2", "< 9"
|
|
41
|
-
spec.add_development_dependency "sqlite3"
|
|
42
|
-
end
|