isomorfeus-policy 2.0.13 → 2.0.17
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: 876cf506c7a19676224a085fc44c5219b78f145dd59d1d8be7011631b338df9e
|
4
|
+
data.tar.gz: b5b38245cbe7cc1ef85c03b63a975601b7431f5abaa0deeaa4b41af235b42091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9cec573c2a829f48f1942250bec16b2748d9b6c9d33edc7ca0b7eddfc2557373db756a1340683654f72126ce7aff673b05bef4269188f67a9bfba62d4eb69c4
|
7
|
+
data.tar.gz: b66d8600c863af742e0bd94122b8a570c664e1343fe76da75312b868d73472452a5c1132d920b8d3a8e428532f488379b8b46ee88caf224251dc7d4ca2ae960b
|
@@ -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.17
|
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-05 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.27
|
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.27
|
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.17
|
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.17
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|