isomorfeus-policy 2.0.12 → 2.0.16

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: e5bd368f81dcfad9195fc75804c24749a2938eb16f043323d4c924687c5068fe
4
- data.tar.gz: fe9592b7b52365a820c37f86949d977089ebfb6e064f22cdd73e83466b9c17b8
3
+ metadata.gz: 44477bfd5400d272c453cbd3e7fbc310e70ecf2599eb054fd534ea937de4b434
4
+ data.tar.gz: eb822b6a0c0247c5f290a861907c2680c240cfdde9e929f63ccafdbe94b65fd2
5
5
  SHA512:
6
- metadata.gz: e6194659eb206050f27c11b299a2e652a0c055fa6185def70b9f8fb5c8226b31c0e476e47ecfd1b37e6bccc5dcd6b2191b837613507ec5abef085f102fcf6ec7
7
- data.tar.gz: ffac93a146d00bf4a06ede6fcb7a587f3fcaabac00dfba25760140919a84c800815a649de4543313c3c3de78170a50b07b3b2236a3cc60de4334d7f1d1115b05
6
+ metadata.gz: 0bf9a233e84233f877f5228a18bf33ebd97f62797ff43369e7ee4c871bf88bd37f5a25b87510e042c2047100ba5c85db91a9192b9ad18c9956950bf3881009bf
7
+ data.tar.gz: 8bc2e9a6facdd7b943ead211f96ea679c77f9fc7907cc573f89516b7fba7d8775ada24a477f79e6e144df294bb15a66bb7f04e5f51a76c375c64102c595d4aca
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Policy
3
- VERSION = '2.0.12'
3
+ VERSION = '2.0.16'
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.12
4
+ version: 2.0.16
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-01 00:00:00.000000000 Z
11
+ date: 2022-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.14.7
33
+ version: 0.14.8
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.14.7
40
+ version: 0.14.8
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: isomorfeus-preact
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 10.6.23
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.23
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.12
75
+ version: 2.0.16
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.12
82
+ version: 2.0.16
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement