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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb2f4793062ddef25c116e0591d97613174a3c39e18a62e7982f4a41d9f9afc1
4
- data.tar.gz: 2e776a3a49781309094a4cee8d3824391913b57d5fcdef64edc6425eb476b280
3
+ metadata.gz: 5126db7b4d19dd644abae6e400e40b0c2a9c7860da2851eb13644bdf247e4b5a
4
+ data.tar.gz: cffccd7267712826f13ac8e53475f24ad56532a1c090d1c9e74b6797c7081123
5
5
  SHA512:
6
- metadata.gz: f02980395258ccf616d7508d24615d54162045e2f9abbea4cebcdd5d8976a19213f04ca8b0a7775fe99b03741ea91213dbe27e3e0994ae645e1656abb76212cd
7
- data.tar.gz: 892b01138e996004cd1a218e06af56435f0f6cd662af14b295fa4162204da350d8a4fb2d192d014b30bd06f9f1e8798f580f272a203fbdbc75813e107463ac14
6
+ metadata.gz: a20f415b4200c130e32c2a04adecd647cd6c466ddd355e48e2ac0059b912701dca0d2cdde9c791ba40d1b83d3916de55dff89bf698058399925cbe8de05025ea
7
+ data.tar.gz: 5ffa1734654b633f935d7897316497e84fb8dfa8f9b13cf1f6eea7b50d622a21bcc448aae03711bbfc0cee09f7ca0385b168fbc20854e22e42c2de5f2ccf3683
@@ -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) && !(base.field_class < ActionPolicy::GraphQL::AuthorizedField)
40
- base.field_class.prepend(ActionPolicy::GraphQL::AuthorizedField)
41
- base.include ActionPolicy::GraphQL::Fields
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActionPolicy
4
4
  module GraphQL
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.2"
6
6
  end
7
7
  end
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.1
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-08 00:00:00.000000000 Z
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
  - - ">="