action_policy-graphql 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/action_policy/graphql/behaviour.rb +8 -3
- data/lib/action_policy/graphql/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5126db7b4d19dd644abae6e400e40b0c2a9c7860da2851eb13644bdf247e4b5a
|
4
|
+
data.tar.gz: cffccd7267712826f13ac8e53475f24ad56532a1c090d1c9e74b6797c7081123
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a20f415b4200c130e32c2a04adecd647cd6c466ddd355e48e2ac0059b912701dca0d2cdde9c791ba40d1b83d3916de55dff89bf698058399925cbe8de05025ea
|
7
|
+
data.tar.gz: 5ffa1734654b633f935d7897316497e84fb8dfa8f9b13cf1f6eea7b50d622a21bcc448aae03711bbfc0cee09f7ca0385b168fbc20854e22e42c2de5f2ccf3683
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## master (unreleased)
|
4
4
|
|
5
|
+
## 0.5.2 (2020-10-20)
|
6
|
+
|
7
|
+
- Fix modules reloading in development. ([@rzaharenkov][])
|
8
|
+
|
5
9
|
## 0.5.1 (2020-10-08)
|
6
10
|
|
7
11
|
- Fix mutations authorization (clean up around `authorize_mutation_raise_exception` configuration parameter). ([@rzaharenkov][])
|
@@ -36,9 +36,14 @@ module ActionPolicy
|
|
36
36
|
|
37
37
|
base.authorize :user, through: :current_user
|
38
38
|
|
39
|
-
if base.respond_to?(:field_class)
|
40
|
-
base.field_class
|
41
|
-
|
39
|
+
if base.respond_to?(:field_class)
|
40
|
+
unless base.field_class < ActionPolicy::GraphQL::AuthorizedField
|
41
|
+
base.field_class.prepend(ActionPolicy::GraphQL::AuthorizedField)
|
42
|
+
end
|
43
|
+
|
44
|
+
unless base < ActionPolicy::GraphQL::Fields
|
45
|
+
base.include ActionPolicy::GraphQL::Fields
|
46
|
+
end
|
42
47
|
end
|
43
48
|
|
44
49
|
base.extend self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_policy-graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: action_policy
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: ruby-next
|
28
|
+
name: ruby-next-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|