graphql 2.1.2 → 2.1.3

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: c2b3d848591e918d34df3851a973b6510912d6472f5847f493b5b0bfed4df997
4
- data.tar.gz: 3fcf17d2bc7259ef01cbe6d85aa23b31ccbed2321700c0474124e5eb6f0792d2
3
+ metadata.gz: 2b61b3465f091edb902adf9b7b1abe7e882e8c64235ad62f60984657b751eb4c
4
+ data.tar.gz: 9614fe43c3cf10bf16665cfe1179ca7faec9f3fbea566999220c03629143a07f
5
5
  SHA512:
6
- metadata.gz: 8b2b258c108210008131e610ff0e486817ceebea1782d4f329f1f776ac8c70bdc03177f22a746c2f918d9a1c15e3b6e3971f2569cd3d2c15c6dd714e5a5d38d7
7
- data.tar.gz: 28e7f3c992987507e74e42320133b710aa6ca6af593dd2b6300359e30728ad415ff27e7671b5e8cfedb4b1a44324a06bc9fdd4ab95535c1f99e142aafebc3ea5
6
+ metadata.gz: 1aafd36c2d108a61f0275b6a7a439835401da9fda7ba743963a57130ce8e51a9730c1c243756af7ee87c1d52acdc851054daed27c93bbe970d7e9ae352452397
7
+ data.tar.gz: 5b4568baeb216f86857e6c2829de3440bc21af24407fa4cb9e164e179af9cfb83c01c7e828429b22546d9c836aab59515ae265f65993283ed1a0a0d6fc8579e1
@@ -170,9 +170,9 @@ module GraphQL
170
170
  end
171
171
 
172
172
  # @return [Class] Return the trace class to use for this mode, looking one up on the superclass if this Schema doesn't have one defined.
173
- def trace_class_for(mode, build: false)
173
+ def trace_class_for(mode)
174
174
  own_trace_modes[mode] ||
175
- (superclass.respond_to?(:trace_class_for) ? superclass.trace_class_for(mode) : nil)
175
+ (superclass.respond_to?(:trace_class_for) ? superclass.trace_class_for(mode) : (own_trace_modes[mode] = build_trace_mode(mode)))
176
176
  end
177
177
 
178
178
  # Configure `trace_class` to be used whenever `context: { trace_mode: mode_name }` is requested.
@@ -921,7 +921,6 @@ module GraphQL
921
921
 
922
922
  def inherited(child_class)
923
923
  if self == GraphQL::Schema
924
- child_class.own_trace_modes[:default] = child_class.build_trace_mode(:default)
925
924
  child_class.directives(default_directives.values)
926
925
  end
927
926
  # Make sure the child class has these built out, so that
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "2.1.2"
3
+ VERSION = "2.1.3"
4
4
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-11 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: racc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.4'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: benchmark-ips
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +108,6 @@ dependencies:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: '1.0'
97
- - !ruby/object:Gem::Dependency
98
- name: racc
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1.4'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1.4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement