acl9 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.ruby-version +1 -1
- data/.travis.yml +24 -4
- data/Appraisals +9 -1
- data/Gemfile.lock +90 -66
- data/README.md +2 -2
- data/acl9.gemspec +1 -2
- data/gemfiles/rails_5.0.gemfile +1 -0
- data/gemfiles/rails_5.1.gemfile +1 -0
- data/gemfiles/rails_5.2.gemfile +1 -1
- data/gemfiles/rails_6.0.gemfile +9 -0
- data/gemfiles/rails_6.1.gemfile +9 -0
- data/lib/acl9/version.rb +1 -1
- data/test/dummy/app/assets/config/manifest.js +0 -0
- data/test/dummy/db/migrate/20141117132218_create_tables.rb +2 -2
- data/test/test_helper.rb +7 -1
- metadata +18 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c96a3e331bb553a202d5002bc13de3d6660fe417ff48c20174715dfdb09e96f
|
4
|
+
data.tar.gz: 105c1c70b580c5a7cd49105e04d6f6f4acba5c8182fedc9ea9995dcb83050e71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c79f61b3da512da237806b469f5f24051b9b845424be81d08b52188ab4597acb71aa4ecb5047d211701d8324d438c83996052a5bc243f333cf967bf1517bebc
|
7
|
+
data.tar.gz: 8a218af5d9e00f16c9d7e5162ad973c7386d1c4c4b8801c541bd767caccdfecfb9b85fa342dfcfa46c727e49ef17d1432c55761629994135c5ce7542b9fe8826
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.2
|
data/.travis.yml
CHANGED
@@ -1,17 +1,37 @@
|
|
1
1
|
cache: bundler
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
|
-
- 2.
|
5
|
-
- 2.
|
4
|
+
- 2.5.8
|
5
|
+
- 2.6.6
|
6
|
+
- 2.7.2
|
7
|
+
- 3.0.0
|
6
8
|
- ruby-head
|
7
9
|
|
8
10
|
gemfile:
|
9
11
|
- gemfiles/rails_5.0.gemfile
|
10
12
|
- gemfiles/rails_5.1.gemfile
|
11
13
|
- gemfiles/rails_5.2.gemfile
|
14
|
+
- gemfiles/rails_6.0.gemfile
|
15
|
+
- gemfiles/rails_6.1.gemfile
|
12
16
|
|
13
|
-
|
17
|
+
jobs:
|
14
18
|
fast_finish: true
|
15
19
|
allow_failures:
|
16
20
|
- rvm: ruby-head
|
17
|
-
|
21
|
+
exclude:
|
22
|
+
- rvm: 2.5.8
|
23
|
+
gemfile: gemfiles/rails_6.0.gemfile
|
24
|
+
- rvm: 2.5.8
|
25
|
+
gemfile: gemfiles/rails_6.1.gemfile
|
26
|
+
- rvm: 2.7.2
|
27
|
+
gemfile: gemfiles/rails_5.0.gemfile
|
28
|
+
- rvm: 2.7.2
|
29
|
+
gemfile: gemfiles/rails_5.1.gemfile
|
30
|
+
- rvm: 2.7.2
|
31
|
+
gemfile: gemfiles/rails_5.2.gemfile
|
32
|
+
- rvm: 3.0.0
|
33
|
+
gemfile: gemfiles/rails_5.0.gemfile
|
34
|
+
- rvm: 3.0.0
|
35
|
+
gemfile: gemfiles/rails_5.1.gemfile
|
36
|
+
- rvm: 3.0.0
|
37
|
+
gemfile: gemfiles/rails_5.2.gemfile
|
data/Appraisals
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,117 +2,141 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
acl9 (3.1.0)
|
5
|
-
rails (
|
5
|
+
rails (> 5.0, < 7.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (
|
11
|
-
actionpack (=
|
10
|
+
actioncable (6.0.0)
|
11
|
+
actionpack (= 6.0.0)
|
12
12
|
nio4r (~> 2.0)
|
13
|
-
websocket-driver (
|
14
|
-
|
15
|
-
actionpack (=
|
16
|
-
|
17
|
-
|
13
|
+
websocket-driver (>= 0.6.1)
|
14
|
+
actionmailbox (6.0.0)
|
15
|
+
actionpack (= 6.0.0)
|
16
|
+
activejob (= 6.0.0)
|
17
|
+
activerecord (= 6.0.0)
|
18
|
+
activestorage (= 6.0.0)
|
19
|
+
activesupport (= 6.0.0)
|
20
|
+
mail (>= 2.7.1)
|
21
|
+
actionmailer (6.0.0)
|
22
|
+
actionpack (= 6.0.0)
|
23
|
+
actionview (= 6.0.0)
|
24
|
+
activejob (= 6.0.0)
|
18
25
|
mail (~> 2.5, >= 2.5.4)
|
19
26
|
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (
|
21
|
-
actionview (=
|
22
|
-
activesupport (=
|
27
|
+
actionpack (6.0.0)
|
28
|
+
actionview (= 6.0.0)
|
29
|
+
activesupport (= 6.0.0)
|
23
30
|
rack (~> 2.0)
|
24
31
|
rack-test (>= 0.6.3)
|
25
32
|
rails-dom-testing (~> 2.0)
|
26
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
27
|
-
|
28
|
-
|
33
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
34
|
+
actiontext (6.0.0)
|
35
|
+
actionpack (= 6.0.0)
|
36
|
+
activerecord (= 6.0.0)
|
37
|
+
activestorage (= 6.0.0)
|
38
|
+
activesupport (= 6.0.0)
|
39
|
+
nokogiri (>= 1.8.5)
|
40
|
+
actionview (6.0.0)
|
41
|
+
activesupport (= 6.0.0)
|
29
42
|
builder (~> 3.1)
|
30
43
|
erubi (~> 1.4)
|
31
44
|
rails-dom-testing (~> 2.0)
|
32
|
-
rails-html-sanitizer (~> 1.
|
33
|
-
activejob (
|
34
|
-
activesupport (=
|
45
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
46
|
+
activejob (6.0.0)
|
47
|
+
activesupport (= 6.0.0)
|
35
48
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (
|
37
|
-
activesupport (=
|
38
|
-
activerecord (
|
39
|
-
activemodel (=
|
40
|
-
activesupport (=
|
41
|
-
|
42
|
-
|
49
|
+
activemodel (6.0.0)
|
50
|
+
activesupport (= 6.0.0)
|
51
|
+
activerecord (6.0.0)
|
52
|
+
activemodel (= 6.0.0)
|
53
|
+
activesupport (= 6.0.0)
|
54
|
+
activestorage (6.0.0)
|
55
|
+
actionpack (= 6.0.0)
|
56
|
+
activejob (= 6.0.0)
|
57
|
+
activerecord (= 6.0.0)
|
58
|
+
marcel (~> 0.3.1)
|
59
|
+
activesupport (6.0.0)
|
43
60
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
-
i18n (
|
61
|
+
i18n (>= 0.7, < 2)
|
45
62
|
minitest (~> 5.1)
|
46
63
|
tzinfo (~> 1.1)
|
64
|
+
zeitwerk (~> 2.1, >= 2.1.8)
|
47
65
|
appraisal (2.2.0)
|
48
66
|
bundler
|
49
67
|
rake
|
50
68
|
thor (>= 0.14.0)
|
51
|
-
arel (8.0.0)
|
52
69
|
builder (3.2.3)
|
53
|
-
byebug (
|
54
|
-
concurrent-ruby (1.
|
55
|
-
crass (1.0.
|
56
|
-
erubi (1.
|
57
|
-
globalid (0.4.
|
70
|
+
byebug (11.0.1)
|
71
|
+
concurrent-ruby (1.1.5)
|
72
|
+
crass (1.0.4)
|
73
|
+
erubi (1.8.0)
|
74
|
+
globalid (0.4.2)
|
58
75
|
activesupport (>= 4.2.0)
|
59
|
-
i18n (
|
76
|
+
i18n (1.6.0)
|
60
77
|
concurrent-ruby (~> 1.0)
|
61
|
-
loofah (2.2.
|
78
|
+
loofah (2.2.3)
|
62
79
|
crass (~> 1.0.2)
|
63
80
|
nokogiri (>= 1.5.9)
|
64
|
-
mail (2.7.
|
81
|
+
mail (2.7.1)
|
65
82
|
mini_mime (>= 0.1.1)
|
66
|
-
|
67
|
-
|
68
|
-
|
83
|
+
marcel (0.3.3)
|
84
|
+
mimemagic (~> 0.3.2)
|
85
|
+
method_source (0.9.2)
|
86
|
+
mimemagic (0.3.3)
|
87
|
+
mini_mime (1.0.2)
|
88
|
+
mini_portile2 (2.4.0)
|
69
89
|
minitest (5.11.3)
|
70
|
-
nio4r (2.
|
71
|
-
nokogiri (1.
|
72
|
-
mini_portile2 (~> 2.
|
73
|
-
rack (2.0.
|
74
|
-
rack-test (
|
90
|
+
nio4r (2.5.1)
|
91
|
+
nokogiri (1.10.4)
|
92
|
+
mini_portile2 (~> 2.4.0)
|
93
|
+
rack (2.0.7)
|
94
|
+
rack-test (1.1.0)
|
75
95
|
rack (>= 1.0, < 3)
|
76
|
-
rails (
|
77
|
-
actioncable (=
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
96
|
+
rails (6.0.0)
|
97
|
+
actioncable (= 6.0.0)
|
98
|
+
actionmailbox (= 6.0.0)
|
99
|
+
actionmailer (= 6.0.0)
|
100
|
+
actionpack (= 6.0.0)
|
101
|
+
actiontext (= 6.0.0)
|
102
|
+
actionview (= 6.0.0)
|
103
|
+
activejob (= 6.0.0)
|
104
|
+
activemodel (= 6.0.0)
|
105
|
+
activerecord (= 6.0.0)
|
106
|
+
activestorage (= 6.0.0)
|
107
|
+
activesupport (= 6.0.0)
|
85
108
|
bundler (>= 1.3.0)
|
86
|
-
railties (=
|
109
|
+
railties (= 6.0.0)
|
87
110
|
sprockets-rails (>= 2.0.0)
|
88
111
|
rails-dom-testing (2.0.3)
|
89
112
|
activesupport (>= 4.2.0)
|
90
113
|
nokogiri (>= 1.6)
|
91
|
-
rails-html-sanitizer (1.0
|
92
|
-
loofah (~> 2.
|
93
|
-
railties (
|
94
|
-
actionpack (=
|
95
|
-
activesupport (=
|
114
|
+
rails-html-sanitizer (1.2.0)
|
115
|
+
loofah (~> 2.2, >= 2.2.2)
|
116
|
+
railties (6.0.0)
|
117
|
+
actionpack (= 6.0.0)
|
118
|
+
activesupport (= 6.0.0)
|
96
119
|
method_source
|
97
120
|
rake (>= 0.8.7)
|
98
|
-
thor (>= 0.
|
99
|
-
rake (12.3.
|
100
|
-
sprockets (3.7.
|
121
|
+
thor (>= 0.20.3, < 2.0)
|
122
|
+
rake (12.3.3)
|
123
|
+
sprockets (3.7.2)
|
101
124
|
concurrent-ruby (~> 1.0)
|
102
125
|
rack (> 1, < 3)
|
103
126
|
sprockets-rails (3.2.1)
|
104
127
|
actionpack (>= 4.0)
|
105
128
|
activesupport (>= 4.0)
|
106
129
|
sprockets (>= 3.0.0)
|
107
|
-
sqlite3 (1.
|
108
|
-
thor (0.20.
|
130
|
+
sqlite3 (1.4.1)
|
131
|
+
thor (0.20.3)
|
109
132
|
thread_safe (0.3.6)
|
110
133
|
tzinfo (1.2.5)
|
111
134
|
thread_safe (~> 0.1)
|
112
|
-
websocket-driver (0.
|
135
|
+
websocket-driver (0.7.1)
|
113
136
|
websocket-extensions (>= 0.1.0)
|
114
|
-
websocket-extensions (0.1.
|
115
|
-
yard (0.9.
|
137
|
+
websocket-extensions (0.1.4)
|
138
|
+
yard (0.9.20)
|
139
|
+
zeitwerk (2.1.10)
|
116
140
|
|
117
141
|
PLATFORMS
|
118
142
|
ruby
|
@@ -125,4 +149,4 @@ DEPENDENCIES
|
|
125
149
|
yard
|
126
150
|
|
127
151
|
BUNDLED WITH
|
128
|
-
|
152
|
+
2.2.10
|
data/README.md
CHANGED
@@ -16,10 +16,10 @@ Acl9 is [Semantically Versioned](http://semver.org/), so just add this to your
|
|
16
16
|
`Gemfile`:
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
gem 'acl9', '~> 3.
|
19
|
+
gem 'acl9', '~> 3.2'
|
20
20
|
```
|
21
21
|
|
22
|
-
You will need Ruby 2.
|
22
|
+
You will need Ruby > 2.0
|
23
23
|
|
24
24
|
### Rails 4 - stick with 2.x
|
25
25
|
|
data/acl9.gemspec
CHANGED
data/gemfiles/rails_5.0.gemfile
CHANGED
data/gemfiles/rails_5.1.gemfile
CHANGED
data/gemfiles/rails_5.2.gemfile
CHANGED
data/lib/acl9/version.rb
CHANGED
File without changes
|
@@ -32,7 +32,7 @@ class CreateTables < ActiveRecord::Migration[ActiveRecord::Migration.current_ver
|
|
32
32
|
add_index :roles_users, :user_id
|
33
33
|
add_index :roles_users, :role_id
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
create_table :users do |t|
|
37
37
|
t.string :name
|
38
38
|
t.timestamps null: false
|
@@ -135,7 +135,7 @@ class CreateTables < ActiveRecord::Migration[ActiveRecord::Migration.current_ver
|
|
135
135
|
add_index :other_roles_users, :user_id
|
136
136
|
add_index :other_roles_users, :role_id
|
137
137
|
end
|
138
|
-
|
138
|
+
|
139
139
|
create_table :other_users do |t|
|
140
140
|
t.string :name
|
141
141
|
t.timestamps null: false
|
data/test/test_helper.rb
CHANGED
@@ -9,7 +9,13 @@ Rails.backtrace_cleaner.remove_silencers! if ENV["BACKTRACE"]
|
|
9
9
|
|
10
10
|
ActiveRecord::Migration.verbose = false
|
11
11
|
|
12
|
-
|
12
|
+
if Rails.gem_version >= Gem::Version.new('6.0')
|
13
|
+
ActiveRecord::MigrationContext.new(File.expand_path('../dummy/db/migrate', __FILE__), ActiveRecord::SchemaMigration).migrate
|
14
|
+
elsif Rails.gem_version >= Gem::Version.new('5.2.0')
|
15
|
+
ActiveRecord::MigrationContext.new(File.expand_path('../dummy/db/migrate', __FILE__)).migrate
|
16
|
+
else
|
17
|
+
ActiveRecord::Migrator.migrate(File.expand_path('../dummy/db/migrate', __FILE__))
|
18
|
+
end
|
13
19
|
|
14
20
|
$VERBOSE = nil
|
15
21
|
|
metadata
CHANGED
@@ -1,30 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acl9
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- oleg dashevskii
|
8
8
|
- Jason King
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '5.0'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '7.0'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - "
|
28
|
+
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '5.0'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '7.0'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: yard
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,6 +102,8 @@ files:
|
|
96
102
|
- gemfiles/rails_5.0.gemfile
|
97
103
|
- gemfiles/rails_5.1.gemfile
|
98
104
|
- gemfiles/rails_5.2.gemfile
|
105
|
+
- gemfiles/rails_6.0.gemfile
|
106
|
+
- gemfiles/rails_6.1.gemfile
|
99
107
|
- lib/acl9.rb
|
100
108
|
- lib/acl9/controller_extensions.rb
|
101
109
|
- lib/acl9/controller_extensions/dsl_base.rb
|
@@ -137,6 +145,7 @@ files:
|
|
137
145
|
- test/controllers/acl_query_mixin.rb
|
138
146
|
- test/controllers/acl_subject_method_test.rb
|
139
147
|
- test/controllers/arguments_checking_test.rb
|
148
|
+
- test/dummy/app/assets/config/manifest.js
|
140
149
|
- test/dummy/app/controllers/acl_action_override.rb
|
141
150
|
- test/dummy/app/controllers/acl_arguments.rb
|
142
151
|
- test/dummy/app/controllers/acl_block.rb
|
@@ -200,7 +209,7 @@ homepage: http://github.com/be9/acl9
|
|
200
209
|
licenses:
|
201
210
|
- MIT
|
202
211
|
metadata: {}
|
203
|
-
post_install_message:
|
212
|
+
post_install_message:
|
204
213
|
rdoc_options:
|
205
214
|
- "--charset=UTF-8"
|
206
215
|
require_paths:
|
@@ -216,9 +225,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
225
|
- !ruby/object:Gem::Version
|
217
226
|
version: '0'
|
218
227
|
requirements: []
|
219
|
-
|
220
|
-
|
221
|
-
signing_key:
|
228
|
+
rubygems_version: 3.1.4
|
229
|
+
signing_key:
|
222
230
|
specification_version: 4
|
223
231
|
summary: Role-based authorization system for Rails with a concise DSL for securing
|
224
232
|
your Rails application.
|
@@ -250,6 +258,7 @@ test_files:
|
|
250
258
|
- test/controllers/acl_query_mixin.rb
|
251
259
|
- test/controllers/acl_subject_method_test.rb
|
252
260
|
- test/controllers/arguments_checking_test.rb
|
261
|
+
- test/dummy/app/assets/config/manifest.js
|
253
262
|
- test/dummy/app/controllers/acl_action_override.rb
|
254
263
|
- test/dummy/app/controllers/acl_arguments.rb
|
255
264
|
- test/dummy/app/controllers/acl_block.rb
|