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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ee10c2f6e3894b825f17a575524a0343dcdf16217a3049b665e04da980bce1c
4
- data.tar.gz: cd72c5c1e1983b28e8799c9792e5fa843f89415e104588feaf2dbeb72fd1f651
3
+ metadata.gz: 7c96a3e331bb553a202d5002bc13de3d6660fe417ff48c20174715dfdb09e96f
4
+ data.tar.gz: 105c1c70b580c5a7cd49105e04d6f6f4acba5c8182fedc9ea9995dcb83050e71
5
5
  SHA512:
6
- metadata.gz: dca2492214e239e447b4de8f1874be52c617ca361fdcbc79ac5f4c58782ff92449e29db54f9618356680c96e55023412a6206e1f9b3ec9d7f20074d7cb89d76d
7
- data.tar.gz: 0a8963681d65a13fd39e3d4e46d75be288fda1a3ce1a8bb05c1e6264da2e1601c0abb698dbbfd9abe10e965bd6c0491acab62131852f508ad3c2b1d852f3cdc8
6
+ metadata.gz: 5c79f61b3da512da237806b469f5f24051b9b845424be81d08b52188ab4597acb71aa4ecb5047d211701d8324d438c83996052a5bc243f333cf967bf1517bebc
7
+ data.tar.gz: 8a218af5d9e00f16c9d7e5162ad973c7386d1c4c4b8801c541bd767caccdfecfb9b85fa342dfcfa46c727e49ef17d1432c55761629994135c5ce7542b9fe8826
data/.gitignore CHANGED
@@ -19,3 +19,6 @@
19
19
 
20
20
  /doc
21
21
  /.yardoc
22
+
23
+ /acl9-*.gem
24
+ /gemfiles/*.lock
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.0
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.4.3
5
- - 2.5.0
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
- matrix:
17
+ jobs:
14
18
  fast_finish: true
15
19
  allow_failures:
16
20
  - rvm: ruby-head
17
- - gemfile: gemfiles/rails_5.2.gemfile
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
@@ -7,5 +7,13 @@ appraise "rails-5.1" do
7
7
  end
8
8
 
9
9
  appraise "rails-5.2" do
10
- gem 'rails', '~> 5.2.0.rc1'
10
+ gem 'rails', '~> 5.2.0'
11
+ end
12
+
13
+ appraise "rails-6.0" do
14
+ gem 'rails', '~> 6.0.0'
15
+ end
16
+
17
+ appraise "rails-6.1" do
18
+ gem 'rails', '~> 6.1.0'
11
19
  end
data/Gemfile.lock CHANGED
@@ -2,117 +2,141 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  acl9 (3.1.0)
5
- rails (~> 5.0)
5
+ rails (> 5.0, < 7.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- actioncable (5.1.5)
11
- actionpack (= 5.1.5)
10
+ actioncable (6.0.0)
11
+ actionpack (= 6.0.0)
12
12
  nio4r (~> 2.0)
13
- websocket-driver (~> 0.6.1)
14
- actionmailer (5.1.5)
15
- actionpack (= 5.1.5)
16
- actionview (= 5.1.5)
17
- activejob (= 5.1.5)
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 (5.1.5)
21
- actionview (= 5.1.5)
22
- activesupport (= 5.1.5)
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.2)
27
- actionview (5.1.5)
28
- activesupport (= 5.1.5)
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.0, >= 1.0.3)
33
- activejob (5.1.5)
34
- activesupport (= 5.1.5)
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 (5.1.5)
37
- activesupport (= 5.1.5)
38
- activerecord (5.1.5)
39
- activemodel (= 5.1.5)
40
- activesupport (= 5.1.5)
41
- arel (~> 8.0)
42
- activesupport (5.1.5)
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 (~> 0.7)
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 (10.0.0)
54
- concurrent-ruby (1.0.5)
55
- crass (1.0.3)
56
- erubi (1.7.1)
57
- globalid (0.4.1)
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 (0.9.5)
76
+ i18n (1.6.0)
60
77
  concurrent-ruby (~> 1.0)
61
- loofah (2.2.0)
78
+ loofah (2.2.3)
62
79
  crass (~> 1.0.2)
63
80
  nokogiri (>= 1.5.9)
64
- mail (2.7.0)
81
+ mail (2.7.1)
65
82
  mini_mime (>= 0.1.1)
66
- method_source (0.9.0)
67
- mini_mime (1.0.0)
68
- mini_portile2 (2.3.0)
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.2.0)
71
- nokogiri (1.8.2)
72
- mini_portile2 (~> 2.3.0)
73
- rack (2.0.4)
74
- rack-test (0.8.3)
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 (5.1.5)
77
- actioncable (= 5.1.5)
78
- actionmailer (= 5.1.5)
79
- actionpack (= 5.1.5)
80
- actionview (= 5.1.5)
81
- activejob (= 5.1.5)
82
- activemodel (= 5.1.5)
83
- activerecord (= 5.1.5)
84
- activesupport (= 5.1.5)
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 (= 5.1.5)
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.3)
92
- loofah (~> 2.0)
93
- railties (5.1.5)
94
- actionpack (= 5.1.5)
95
- activesupport (= 5.1.5)
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.18.1, < 2.0)
99
- rake (12.3.0)
100
- sprockets (3.7.1)
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.3.13)
108
- thor (0.20.0)
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.6.5)
135
+ websocket-driver (0.7.1)
113
136
  websocket-extensions (>= 0.1.0)
114
- websocket-extensions (0.1.3)
115
- yard (0.9.12)
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
- 1.16.1
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.0'
19
+ gem 'acl9', '~> 3.2'
20
20
  ```
21
21
 
22
- You will need Ruby 2.x
22
+ You will need Ruby > 2.0
23
23
 
24
24
  ### Rails 4 - stick with 2.x
25
25
 
data/acl9.gemspec CHANGED
@@ -20,9 +20,8 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.rdoc_options = ["--charset=UTF-8"]
22
22
 
23
- s.add_dependency "rails", '~> 5.0'
23
+ s.add_dependency "rails", '>= 5.0', '< 7.0'
24
24
 
25
25
  s.add_development_dependency "yard"
26
26
  s.add_development_dependency 'sqlite3'
27
27
  end
28
-
@@ -5,5 +5,6 @@ source "http://rubygems.org"
5
5
  gem "appraisal"
6
6
  gem "byebug"
7
7
  gem "rails", "~> 5.0.0"
8
+ gem "sqlite3", "~> 1.3.6", :group => :development
8
9
 
9
10
  gemspec path: "../"
@@ -5,5 +5,6 @@ source "http://rubygems.org"
5
5
  gem "appraisal"
6
6
  gem "byebug"
7
7
  gem "rails", "~> 5.1.0"
8
+ gem "sqlite3", "~> 1.3.6", :group => :development
8
9
 
9
10
  gemspec path: "../"
@@ -4,6 +4,6 @@ source "http://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
6
  gem "byebug"
7
- gem "rails", "~> 5.2.0.rc1"
7
+ gem "rails", "~> 5.2.0"
8
8
 
9
9
  gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "byebug"
7
+ gem "rails", "~> 6.0.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "byebug"
7
+ gem "rails", "~> 6.1.0"
8
+
9
+ gemspec path: "../"
data/lib/acl9/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Acl9
2
- VERSION = "3.1.0"
2
+ VERSION = "3.2.0"
3
3
  end
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
- ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
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.1.0
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: 2018-03-14 00:00:00.000000000 Z
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
- rubyforge_project:
220
- rubygems_version: 2.7.3
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