isomorfeus-policy 2.0.14 → 2.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/policy/version.rb +1 -1
- data/lib/isomorfeus_policy/lucid_policy/mixin.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6b500da82a12d1b732ffb37e4a589eca89b496669382215ab1996c47a7cd5ae
|
4
|
+
data.tar.gz: 9519b2c9826ca34c328239aef87d25bb3584d86abba648bfe458a74f44352354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3976b04afca9c285fa1cc0d49283eb04a313d06265157bb29973c3cd6da523a7e8fa337c2e73ae166eacbf5f36f1f63c004c7da7840b725ab044c1ee74201574
|
7
|
+
data.tar.gz: c9362da0b206a458a8af3cf65f7c063d53828fc32f335183b910c081f5f9c3b45227a5f531f59757975246920f22d96af3d2823974389703c497f259e515f595
|
@@ -11,7 +11,7 @@ module LucidPolicy
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def all
|
14
|
-
:
|
14
|
+
:all
|
15
15
|
end
|
16
16
|
|
17
17
|
def allow(*classes_and_methods_and_options)
|
@@ -37,7 +37,7 @@ module LucidPolicy
|
|
37
37
|
def _allow_or_deny(thing, *classes_methods_options, &block)
|
38
38
|
rules = authorization_rules
|
39
39
|
|
40
|
-
if %i[allow deny].include?(thing) && classes_methods_options.first
|
40
|
+
if %i[allow deny].include?(thing) && %i[others all].include?(classes_methods_options.first)
|
41
41
|
rules[:others] = thing
|
42
42
|
return
|
43
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-policy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 10.6.
|
47
|
+
version: 10.6.26
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 10.6.
|
54
|
+
version: 10.6.26
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: isomorfeus-redux
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.0.
|
75
|
+
version: 2.0.15
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.0.
|
82
|
+
version: 2.0.15
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|