graphql 1.12.7 → 1.12.8

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: a0b3eaaf2e8d1d263d8de4e509bbca1413c41981ac69d8f722eba16883fc9023
4
- data.tar.gz: e9d0a083c8553cb650a2aff619a4c04bd5a01fb345dc8ae560563db09fe4d0b4
3
+ metadata.gz: 10ea46e2edf136b445de343ee1a58dd98b0a6c5800ef31923d7d184198ed58fd
4
+ data.tar.gz: f2f6dff0bf020bfef04769deb3fd548317121f0e636d7a47a94baea862f341ac
5
5
  SHA512:
6
- metadata.gz: c1580219b7da1f62566e65eff2b2c11f124415dad818243260b2ebefddb4de5dad2d2e1953bc671f2080d1523c98f31e7eee581edf5b6b830761a96b970796ca
7
- data.tar.gz: 1a886d5d664bb4352b9f75f1c448acb5e2d0b8299c6f1cf6debd441df2f700869912b8a7083363aac6c41874ae18dd5bd87955a9979e44b7e5e21811c25539f3
6
+ metadata.gz: a79fde55cedcd391b7dfe7c141e22c51563aeefceb0fda494dd50f4281fefb0104f8663e688395268c95361ee10e01c7bfb69250368441ec8b8c9ad0d00ac279
7
+ data.tar.gz: 49a7b0f5cdf9d3a64ff05b0898c7ef93c6cdfd210baf93affa25afe3f3d7b59187fe3e7727f467af9411a085c5f6e8e281fafd27352fe97128f98bd82ffde330
@@ -115,7 +115,7 @@ module GraphQL
115
115
  if obj.is_a?(GraphQL::Schema::Object)
116
116
  obj = obj.object
117
117
  end
118
- handler.call(err, obj, args, ctx, field)
118
+ handler[:handler].call(err, obj, args, ctx, field)
119
119
  else
120
120
  raise err
121
121
  end
@@ -148,11 +148,11 @@ module GraphQL
148
148
  # If there's an inherited one, but not one defined here, use the inherited one.
149
149
  # Otherwise, there's no handler for this error, return `nil`.
150
150
  if parent_handler && handler && parent_handler[:class] < handler[:class]
151
- parent_handler[:handler]
151
+ parent_handler
152
152
  elsif handler
153
- handler[:handler]
153
+ handler
154
154
  elsif parent_handler
155
- parent_handler[:handler]
155
+ parent_handler
156
156
  else
157
157
  nil
158
158
  end
@@ -70,6 +70,9 @@ module GraphQL
70
70
  when OPEN_STRUCT_KEY
71
71
  ostruct_values = load_value(value[OPEN_STRUCT_KEY])
72
72
  OpenStruct.new(ostruct_values)
73
+ else
74
+ key = value.keys.first
75
+ { key => load_value(value[key]) }
73
76
  end
74
77
  else
75
78
  loaded_h = {}
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "1.12.7"
3
+ VERSION = "1.12.8"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.7
4
+ version: 1.12.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2021-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips