isomorfeus-policy 2.0.14 → 2.0.18

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: e1471bf38a28569207a8310eefaaba4fa9ac4148f9b90dac1c3e84340739c85e
4
- data.tar.gz: 73d7d9dbae0414400327c99cc6130d8e91e9c32dea282ddfcbc73a0fab23329f
3
+ metadata.gz: 882ae4e13dc4da6680e391e66ee4d53e596e5f874962a5331eeec5e8976dedbe
4
+ data.tar.gz: 8c3914544fcd6675d82551bdadd09bb2143ac4ecedd2d2c2842a795886a95b96
5
5
  SHA512:
6
- metadata.gz: dbc7cb8e99dd6dddd6b2cbf1f40cdf2c8ac4b123dd70b46dd769ba8db5f9f1a097337ce5ca5f25218cd4993880373aaa6833f1b64d7031d066ffd4f665d0f554
7
- data.tar.gz: 570e45524be7f0e868ec7ce4e60017ab49a0cd14c86ead8bbed28b5b7c040a12abc4831dec99908e342dce0f6f0f89883b1ad8bbba7399e7416e16c9b4b01688
6
+ metadata.gz: 0e6f39652b9d02d1b8eb6c8ac12de9cb7136debfddff1dc1f46eb119124e610f5bf9f7243677ad23833f9f0c6db969b8d10c91686a2214984e2338e6228df2d4
7
+ data.tar.gz: 6829e02700665e96a7b451c95bbf74019b9e6f029dfcf5aa7740e2a9138fca19184684dbf50c6fcf843a35aa8aefcf51241b4f6c5d7fd5c20addebe22d1bcaf4
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Policy
3
- VERSION = '2.0.14'
3
+ VERSION = '2.0.18'
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ module LucidPolicy
11
11
  end
12
12
 
13
13
  def all
14
- :others
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 == :others
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.14
4
+ version: 2.0.18
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-02 00:00:00.000000000 Z
11
+ date: 2022-02-06 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.25
47
+ version: 10.6.30
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.25
54
+ version: 10.6.30
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.14
75
+ version: 2.0.18
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.14
82
+ version: 2.0.18
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement