isomorfeus-policy 1.0.0.zeta19 → 1.0.0.zeta20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/isomorfeus/policy/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48fea48dd7bc63c0bd8c1465c98df1bcac727dfa208599af0c2fe0fafa3ddc8a
|
4
|
+
data.tar.gz: 7e942d873d4061c5e6527b9d65665037a1ce4917afaad776d8eb95ef0ee31beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c72b02fa4541d0f699b3c53d2fd41f5cd737b011526135bb339b0db57926e60b6c31f0803246772b8ff881cff21213a1ec26384a6c385ca04fd7d7d2f8925ad
|
7
|
+
data.tar.gz: c73d600b37534bfd2aa23c211a55f3a6bdcdfd239178530b1d80711335358b1049fcfb5c78a8eb1024084a8f6e6026332280c6faf5fda818dc1a83a2e755580f
|
data/README.md
CHANGED
@@ -102,7 +102,7 @@ which will raise a LucidPolicy::Exception unless authorized
|
|
102
102
|
Besides calling methods or executing blocks from allow or deny, custom rules can be defined. Example:
|
103
103
|
```ruby
|
104
104
|
class MyUserPolicy < LucidPolicy::Base
|
105
|
-
rule BlaGraph, :load, :count do |user,
|
105
|
+
rule BlaGraph, :load, :count do |user, target_class_name, target_method, props|
|
106
106
|
allow if user.verified?
|
107
107
|
allow if user.admin?
|
108
108
|
deny
|
@@ -122,7 +122,7 @@ The recommended default rule for combined policies is `deny others`.
|
|
122
122
|
Given a:
|
123
123
|
```ruby
|
124
124
|
class AdminRolePolicy < LucidPolicy::Base
|
125
|
-
rule BlaGraph, :load, :count do |user,
|
125
|
+
rule BlaGraph, :load, :count do |user, target_class_name, target_method, props|
|
126
126
|
allow if user.verified?
|
127
127
|
deny
|
128
128
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.zeta20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.0.
|
61
|
+
version: 1.0.0.zeta20
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.0.
|
68
|
+
version: 1.0.0.zeta20
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: opal-webpack-loader
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|