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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45403dd1e671d8bc05cb9d63bd00bbaae3cb46983ec3b038cc040bce791e4f6d
4
- data.tar.gz: 684082b8d1615894b8944215d072afc04c8bcfca637156a510abdd0b47297c6c
3
+ metadata.gz: 876cf506c7a19676224a085fc44c5219b78f145dd59d1d8be7011631b338df9e
4
+ data.tar.gz: b5b38245cbe7cc1ef85c03b63a975601b7431f5abaa0deeaa4b41af235b42091
5
5
  SHA512:
6
- metadata.gz: b4624382572836f7c706749a2be47ff8121019528f855b06ebaec88db51a2b6361363cffc95b00e48301627f8fd4ba3b872677569bed1e8182312c3e9e9901ff
7
- data.tar.gz: bdeb4a51f8e575897588ed69968e1ec4ae8951aad9e11e645c00f316f438701396886e704b263d2307c44fea9ab34ad10308671acf2ce04c5d30c2f7f152631a
6
+ metadata.gz: d9cec573c2a829f48f1942250bec16b2748d9b6c9d33edc7ca0b7eddfc2557373db756a1340683654f72126ce7aff673b05bef4269188f67a9bfba62d4eb69c4
7
+ data.tar.gz: b66d8600c863af742e0bd94122b8a570c664e1343fe76da75312b868d73472452a5c1132d920b8d3a8e428532f488379b8b46ee88caf224251dc7d4ca2ae960b
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Policy
3
- VERSION = '2.0.13'
3
+ VERSION = '2.0.17'
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.13
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-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
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 10.6.24
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.24
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.13
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.13
82
+ version: 2.0.17
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement