graphql 1.7.10 → 1.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: daa97815a9f46e60d9b247df15f76b1a99ed0597fdfe97a244aa5c959000b758
4
- data.tar.gz: 27e44a4a90d5cd1662fe0510dfb91ff47f2a74bc7023dfb32dce9f61a20d97ef
3
+ metadata.gz: d352e2a05ea79e9180d94661d6ae63acdfb0382910ed458b81dca24291ec6984
4
+ data.tar.gz: 9f083b252f34d4c9dc309dcd2460f33dff5c745e216b2568a535de11ce9d2c1d
5
5
  SHA512:
6
- metadata.gz: d7791a974ca59fb899e7e1ce00fe354f62be3915601be1216901d8b2da633e84ed07fa5da5eb8c4c0b93bc2d547c81664b45639061841435be1347058f0776cb
7
- data.tar.gz: 6a4fae99a183734e6e56622d93b958e91f0abc52060d3b294f318a2888e4c88af117849a46982bbf3fc13b6d31b1613c2bec8b041f13a7a7123328e7319827b6
6
+ metadata.gz: 1bc67e6eb0f750ca44d274a3ab9ff8a747027360f6f31c1616b3da7fd5f65ff9bba28fbf31427f96c05140e1eebbf4b7f87ac6bdc53749e78679f7b6b5deaa11
7
+ data.tar.gz: 25f3af18b095cb1e3d56eaff784f42c80eb727d88649aea93db316a7b7dcb2331102ed693b355f0859407c7f1a44a9bcae2aa0b930959467e04270dec58429d2
@@ -6,26 +6,9 @@ module GraphQL
6
6
  DEFAULT_TYPED_CHILDREN = Proc.new { |h, k| h[k] = {} }
7
7
 
8
8
  # A specialized, reusable object for leaf nodes.
9
- # Behaves like a Hash, but doesn't copy itself.
10
- # @api private
11
- class NoTypedChildren
12
- CHILDREN = [].freeze
13
- def dup; self; end
14
- def any?; false; end
15
- def none?; true; end
16
- def [](key); CHILDREN; end
17
- def each; end
18
-
19
- # Compatibility for when this was an Array:
20
- def method_missing(method_name, *args, &block)
21
- if CHILDREN.respond_to?(method_name)
22
- CHILDREN.send(method_name, *args, &block)
23
- else
24
- raise NotImplementedError
25
- end
26
- end
27
- end
28
- NO_TYPED_CHILDREN = NoTypedChildren.new
9
+ NO_TYPED_CHILDREN = Hash.new([].freeze)
10
+ def NO_TYPED_CHILDREN.dup; self; end;
11
+ NO_TYPED_CHILDREN.freeze
29
12
 
30
13
  # @return [String] the name this node has in the response
31
14
  attr_reader :name
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "1.7.10"
3
+ VERSION = "1.7.11"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.10
4
+ version: 1.7.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo