graphql 1.11.7 → 1.11.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: af3eaf2a85e27ab7a366e27a98d42e4372b93c7590c99fb6fb12fccb48ef37f9
4
- data.tar.gz: 62be23c2f74539be298db79081b148db5d004325ef6ae6f1b007711659110a01
3
+ metadata.gz: 4b72615f5488c1aa58c921128dd067d9f098b4617c954ac267e37efa72a9107c
4
+ data.tar.gz: 4690738202ecd5d048802c80f1fc87095e0c1de4a02adcba26e88415f401908c
5
5
  SHA512:
6
- metadata.gz: f12858fd3c28da572082443e022ed2a5281bda7eda01a35b4c6bee65273b5744ae43904c5bf6202a5d461d67de6ee1ec9d1210a121181d5876a3aee3f37b4f1e
7
- data.tar.gz: ed4f7ba1b52e9526d4f4a630f2ca06234816bd6be7522e29a98015a8bfa94a8bccdf98a03139ef9f45b266a8f62cb9d922c93ddebf797125d91d04a2203a4aec
6
+ metadata.gz: 744ca52fc03919a071013a27139112c2c18e487f333ee335ea374feaef06bb904079d4c54e0ddf088d2b5dfa345172efb3063faefa792c1c8ade38616752fa1a
7
+ data.tar.gz: 90fffd6928d128f2516e4f49c9d729a26a57101683e19d0a90818c45f431bae221e4b8b1bf8d7bc374e20c8e98e3f0a0963877e818ae946f999d40942182cddd
@@ -1119,14 +1119,15 @@ module GraphQL
1119
1119
  type.possible_types(context: context)
1120
1120
  else
1121
1121
  stored_possible_types = own_possible_types[type.graphql_name]
1122
- visible_possible_types = stored_possible_types.select do |possible_type|
1123
- next true unless type.kind.interface?
1124
- next true unless possible_type.kind.object?
1125
-
1126
- # Use `.graphql_name` comparison to match legacy vs class-based types.
1127
- # When we don't need to support legacy `.define` types, use `.include?(type)` instead.
1128
- possible_type.interfaces(context).any? { |interface| interface.graphql_name == type.graphql_name }
1129
- end if stored_possible_types
1122
+ visible_possible_types = if stored_possible_types && type.kind.interface?
1123
+ stored_possible_types.select do |possible_type|
1124
+ # Use `.graphql_name` comparison to match legacy vs class-based types.
1125
+ # When we don't need to support legacy `.define` types, use `.include?(type)` instead.
1126
+ possible_type.interfaces(context).any? { |interface| interface.graphql_name == type.graphql_name }
1127
+ end
1128
+ else
1129
+ stored_possible_types
1130
+ end
1130
1131
  visible_possible_types ||
1131
1132
  introspection_system.possible_types[type.graphql_name] ||
1132
1133
  (
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "1.11.7"
3
+ VERSION = "1.11.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.11.7
4
+ version: 1.11.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-18 00:00:00.000000000 Z
11
+ date: 2021-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips
@@ -741,7 +741,7 @@ metadata:
741
741
  source_code_uri: https://github.com/rmosolgo/graphql-ruby
742
742
  bug_tracker_uri: https://github.com/rmosolgo/graphql-ruby/issues
743
743
  mailing_list_uri: https://tinyletter.com/graphql-ruby
744
- post_install_message:
744
+ post_install_message:
745
745
  rdoc_options: []
746
746
  require_paths:
747
747
  - lib
@@ -756,8 +756,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
756
756
  - !ruby/object:Gem::Version
757
757
  version: '0'
758
758
  requirements: []
759
- rubygems_version: 3.2.3
760
- signing_key:
759
+ rubygems_version: 3.1.4
760
+ signing_key:
761
761
  specification_version: 4
762
762
  summary: A GraphQL language and runtime for Ruby
763
763
  test_files: []