graphql 1.7.10 → 1.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/internal_representation/node.rb +3 -20
- data/lib/graphql/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d352e2a05ea79e9180d94661d6ae63acdfb0382910ed458b81dca24291ec6984
|
4
|
+
data.tar.gz: 9f083b252f34d4c9dc309dcd2460f33dff5c745e216b2568a535de11ce9d2c1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
10
|
-
|
11
|
-
|
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
|
data/lib/graphql/version.rb
CHANGED