blacklight-access_controls 0.7.0 → 6.0.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/.rubocop_todo.yml +12 -6
- data/.travis.yml +2 -2
- data/VERSION +1 -1
- data/blacklight-access_controls.gemspec +10 -2
- metadata +4 -6
- data/spec/test_app_templates/Gemfile.extra +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fa4c2281c3cf2d75a25711b2225ac638f3e1987682b3b6f154ee173f52f4a3a
|
|
4
|
+
data.tar.gz: 1a84e0cf14c47d65c3821fbc374c6f071ff8cfd10123c900adc4559f8a8b772a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 052f22d4fcf11b8d60139421d0af1d374a0bb32483e5514c99adfa27d07f014a919cd729904775e33d12e1238c7b66b095d085e9c1c85904c1c1a115da772d45
|
|
7
|
+
data.tar.gz: 0424e35387bb4ca3d6c9a8a7fcf1f1fbba9964c0fa36db4e45ee41d8c0ee3b4453c02d850712c4c88e4898153b8fad467ab180894c1ac205501dc016b48d5ea5
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2019-02-20 11:28:25 -0800 using RuboCop version 0.52.1.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
9
|
+
# Offense count: 4
|
|
10
10
|
Metrics/AbcSize:
|
|
11
11
|
Max: 16
|
|
12
12
|
|
|
@@ -15,11 +15,14 @@ Metrics/AbcSize:
|
|
|
15
15
|
Metrics/ModuleLength:
|
|
16
16
|
Max: 120
|
|
17
17
|
|
|
18
|
+
# Offense count: 31
|
|
19
|
+
# Configuration parameters: Prefixes.
|
|
20
|
+
# Prefixes: when, with, without
|
|
18
21
|
RSpec/ContextWording:
|
|
19
22
|
Exclude:
|
|
20
23
|
- 'spec/unit/ability_spec.rb'
|
|
21
|
-
- 'spec/unit/enforcement_spec.rb'
|
|
22
24
|
- 'spec/unit/blacklight/access_controls/search_builder_spec.rb'
|
|
25
|
+
- 'spec/unit/enforcement_spec.rb'
|
|
23
26
|
|
|
24
27
|
# Offense count: 1
|
|
25
28
|
# Configuration parameters: Max.
|
|
@@ -36,10 +39,11 @@ RSpec/FilePath:
|
|
|
36
39
|
- 'spec/unit/enforcement_spec.rb'
|
|
37
40
|
|
|
38
41
|
# Offense count: 15
|
|
42
|
+
# Configuration parameters: AggregateFailuresByDefault.
|
|
39
43
|
RSpec/MultipleExpectations:
|
|
40
44
|
Max: 6
|
|
41
45
|
|
|
42
|
-
# Offense count:
|
|
46
|
+
# Offense count: 25
|
|
43
47
|
RSpec/NamedSubject:
|
|
44
48
|
Exclude:
|
|
45
49
|
- 'spec/unit/ability_spec.rb'
|
|
@@ -54,7 +58,8 @@ RSpec/VerifiedDoubles:
|
|
|
54
58
|
- 'spec/unit/ability_spec.rb'
|
|
55
59
|
|
|
56
60
|
# Offense count: 3
|
|
57
|
-
#
|
|
61
|
+
# Cop supports --auto-correct.
|
|
62
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
58
63
|
# SupportedStyles: nested, compact
|
|
59
64
|
Style/ClassAndModuleChildren:
|
|
60
65
|
Exclude:
|
|
@@ -62,11 +67,12 @@ Style/ClassAndModuleChildren:
|
|
|
62
67
|
- 'lib/blacklight/access_controls/permissions_cache.rb'
|
|
63
68
|
- 'lib/blacklight/access_controls/permissions_query.rb'
|
|
64
69
|
|
|
65
|
-
# Offense count:
|
|
70
|
+
# Offense count: 11
|
|
66
71
|
Style/Documentation:
|
|
67
72
|
Exclude:
|
|
68
73
|
- 'spec/**/*'
|
|
69
74
|
- 'test/**/*'
|
|
75
|
+
- 'blacklight-access_controls.gemspec'
|
|
70
76
|
- 'lib/blacklight-access_controls.rb'
|
|
71
77
|
- 'lib/blacklight/access_controls.rb'
|
|
72
78
|
- 'lib/blacklight/access_controls/ability.rb'
|
data/.travis.yml
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
6.0.0
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
version = File.read(File.expand_path('../VERSION', __FILE__)).strip
|
|
2
2
|
|
|
3
|
+
module Blacklight
|
|
4
|
+
module AccessControls
|
|
5
|
+
def self.bl_version
|
|
6
|
+
ENV['BLACKLIGHT_VERSION'] ? [ENV['BLACKLIGHT_VERSION']] : ['> 6.0', '< 8']
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
|
|
3
11
|
Gem::Specification.new do |gem|
|
|
4
12
|
gem.name = 'blacklight-access_controls'
|
|
5
13
|
|
|
@@ -17,12 +25,12 @@ Gem::Specification.new do |gem|
|
|
|
17
25
|
|
|
18
26
|
gem.required_ruby_version = '>= 2.1.0'
|
|
19
27
|
|
|
20
|
-
gem.add_dependency 'blacklight',
|
|
28
|
+
gem.add_dependency 'blacklight', *Blacklight::AccessControls.bl_version
|
|
21
29
|
gem.add_dependency 'cancancan', '~> 1.8'
|
|
22
30
|
gem.add_dependency 'deprecation', '~> 1.0'
|
|
23
31
|
|
|
24
32
|
gem.add_development_dependency 'database_cleaner'
|
|
25
|
-
gem.add_development_dependency 'engine_cart', '~>
|
|
33
|
+
gem.add_development_dependency 'engine_cart', '~> 2.2'
|
|
26
34
|
gem.add_development_dependency 'factory_bot_rails', '~> 4.8'
|
|
27
35
|
gem.add_development_dependency 'rake', '~> 12.3'
|
|
28
36
|
gem.add_development_dependency 'rspec', '~> 3.1'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: blacklight-access_controls
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Beer
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: blacklight
|
|
@@ -81,14 +81,14 @@ dependencies:
|
|
|
81
81
|
requirements:
|
|
82
82
|
- - "~>"
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: '
|
|
84
|
+
version: '2.2'
|
|
85
85
|
type: :development
|
|
86
86
|
prerelease: false
|
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
|
88
88
|
requirements:
|
|
89
89
|
- - "~>"
|
|
90
90
|
- !ruby/object:Gem::Version
|
|
91
|
-
version: '
|
|
91
|
+
version: '2.2'
|
|
92
92
|
- !ruby/object:Gem::Dependency
|
|
93
93
|
name: factory_bot_rails
|
|
94
94
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -274,7 +274,6 @@ files:
|
|
|
274
274
|
- spec/factories/user.rb
|
|
275
275
|
- spec/spec_helper.rb
|
|
276
276
|
- spec/support/solr_support.rb
|
|
277
|
-
- spec/test_app_templates/Gemfile.extra
|
|
278
277
|
- spec/test_app_templates/blacklight.yml
|
|
279
278
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
|
280
279
|
- spec/unit/ability_spec.rb
|
|
@@ -310,7 +309,6 @@ test_files:
|
|
|
310
309
|
- spec/factories/user.rb
|
|
311
310
|
- spec/spec_helper.rb
|
|
312
311
|
- spec/support/solr_support.rb
|
|
313
|
-
- spec/test_app_templates/Gemfile.extra
|
|
314
312
|
- spec/test_app_templates/blacklight.yml
|
|
315
313
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
|
316
314
|
- spec/unit/ability_spec.rb
|