graphql 1.10.1 → 1.10.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: 206501adb93cafefa37313d5cb3bc58413701cd5a2cc4028a9b749c119d7868d
4
- data.tar.gz: 34e9b0f601cb1517c1060b4c964e6a25e020540b115d876af8c3c775cfd28793
3
+ metadata.gz: a34f1cf03ff3b9db3635c9380be3bfc1dde1c36827afe3e39526fac966220991
4
+ data.tar.gz: e1202b5ec6a0fc79e4ce8d3b953959ec834b47f569b2e2bccc78abfe5b3227d5
5
5
  SHA512:
6
- metadata.gz: e68296c1cb93a1164ce0123a77fc0ec7efd86e51afd029b808bb3f466b2287744d1e54b01f685b1bcf71c7e4265a064b1e88ee5cfbcfc6647312758d2e7962f9
7
- data.tar.gz: 01de56922522f3984950ddfc1821c7d15fd27ea7055470cf6102f9af9fa3c8402eefa41061c82d83a9461d4ae9df3f45935e10775ac6322ef9e0c40bd978c3a1
6
+ metadata.gz: df151b5b38a43ae0da73d4c7b23eb0651c70417c822394d40b4e1a19cea06d681e7072d63a9c7888d3c415de575fffc3f3b6ecad13dc639f7cbac291781510e7
7
+ data.tar.gz: 7c5a7c2522fb30d951b8f43ea7c182e0cb1ab9793a6b1697537cd9128ae72765bbafdb895cd7c8931319f639f61037e98d391ce84f48f8136c3b0c9ac62fab03
@@ -132,10 +132,19 @@ module GraphQL
132
132
  # are also in the list, remove it from the list of scopes to check,
133
133
  # because every possible type is covered by a concrete type.
134
134
  # (That is, there are no remainder types to check.)
135
- all_scopes.reject! do |scope, _|
136
- scope.kind.abstract? && (
137
- query.possible_types(scope).all? { |t| all_scopes.include?(t) }
138
- )
135
+ #
136
+ # TODO redocument
137
+ prev_keys = all_scopes.keys
138
+ prev_keys.each do |scope|
139
+ if scope.kind.abstract?
140
+ missing_concrete_types = query.possible_types(scope).select { |t| !all_scopes.key?(t) }
141
+ # This concrete type is possible _only_ as a member of the abstract type.
142
+ # So, attribute to it the complexity which belongs to the abstract type.
143
+ missing_concrete_types.each do |concrete_scope|
144
+ all_scopes[concrete_scope] = all_scopes[scope]
145
+ end
146
+ all_scopes.delete(scope)
147
+ end
139
148
  end
140
149
 
141
150
  # This will hold `{ type => int }` pairs, one for each possible branch
@@ -518,7 +518,7 @@ module GraphQL
518
518
  if ast_value.nil?
519
519
  return false, nil
520
520
  else
521
- args = ast_value
521
+ return true, ast_value
522
522
  end
523
523
  else
524
524
  # For these, `prepare` is applied during `#initialize`.
@@ -215,7 +215,8 @@ module GraphQL
215
215
  end
216
216
  end
217
217
 
218
- input_values
218
+ input_obj_instance = self.new(ruby_kwargs: input_values, context: ctx, defaults_used: nil)
219
+ input_obj_instance.prepare
219
220
  end
220
221
 
221
222
  # It's funny to think of a _result_ of an input object.
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "1.10.1"
3
+ VERSION = "1.10.2"
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.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-28 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips