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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a34f1cf03ff3b9db3635c9380be3bfc1dde1c36827afe3e39526fac966220991
|
4
|
+
data.tar.gz: e1202b5ec6a0fc79e4ce8d3b953959ec834b47f569b2e2bccc78abfe5b3227d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
136
|
-
|
137
|
-
|
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
|
data/lib/graphql/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|