graphql 2.3.21 → 2.3.23
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24729091f06da91a350c05886c8da991403e59065cd9767b2b515ac0ad0c9422
|
|
4
|
+
data.tar.gz: 1f468ea460ab5f09bc77591d3bcf35640cea5824b8d01822213e4ae85f15c3f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dddb7a4a32cb07f09a114c58bbb40364cd6376deb946db75e24d1849cf715f45272961c3227a6333469de261e3b92d44ee1a4547d2b97233fef0bf9bace0bba1
|
|
7
|
+
data.tar.gz: 71db87ef4353eef3c23e670deb8ed71e2538445f85cc365f86da0983b9e083fc81f28cf93b39228a5f6862e7d992d6d47b9c0b95271c8ccf7ba23189b21ad980
|
|
@@ -22,8 +22,19 @@ module GraphQL
|
|
|
22
22
|
attr_reader :pos, :tokens_count
|
|
23
23
|
|
|
24
24
|
def advance
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
loop do
|
|
26
|
+
@scanner.skip(IGNORE_REGEXP)
|
|
27
|
+
if @scanner.skip(COMMENT_REGEXP)
|
|
28
|
+
@tokens_count += 1
|
|
29
|
+
next
|
|
30
|
+
end
|
|
31
|
+
break
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
if @scanner.eos?
|
|
35
|
+
return false
|
|
36
|
+
end
|
|
37
|
+
|
|
27
38
|
@tokens_count += 1
|
|
28
39
|
if @tokens_count > @max_tokens
|
|
29
40
|
raise_parse_error("This query is too large to execute.")
|
|
@@ -166,12 +177,8 @@ module GraphQL
|
|
|
166
177
|
raise GraphQL::ParseError.new(message, line, col, @string, filename: @filename)
|
|
167
178
|
end
|
|
168
179
|
|
|
169
|
-
IGNORE_REGEXP =
|
|
170
|
-
|
|
171
|
-
[, \c\r\n\t]+ |
|
|
172
|
-
\#.*$
|
|
173
|
-
)*
|
|
174
|
-
}x
|
|
180
|
+
IGNORE_REGEXP = /[, \c\r\n\t]+/
|
|
181
|
+
COMMENT_REGEXP = /\#[^\n]*/
|
|
175
182
|
IDENTIFIER_REGEXP = /[_A-Za-z][_0-9A-Za-z]*/
|
|
176
183
|
INT_REGEXP = /-?(?:[0]|[1-9][0-9]*)/
|
|
177
184
|
FLOAT_DECIMAL_REGEXP = /[.][0-9]+/
|
|
@@ -345,7 +345,7 @@ module GraphQL
|
|
|
345
345
|
fields << Field.new(node, definition, owner_type, parents)
|
|
346
346
|
when GraphQL::Language::Nodes::InlineFragment
|
|
347
347
|
fragment_type = node.type ? @types.type(node.type.name) : owner_type
|
|
348
|
-
find_fields_and_fragments(node.selections, parents: [*parents, fragment_type], owner_type:
|
|
348
|
+
find_fields_and_fragments(node.selections, parents: [*parents, fragment_type], owner_type: fragment_type, fields: fields, fragment_spreads: fragment_spreads) if fragment_type
|
|
349
349
|
when GraphQL::Language::Nodes::FragmentSpread
|
|
350
350
|
fragment_spreads << FragmentSpread.new(node.name, parents)
|
|
351
351
|
end
|
data/lib/graphql/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Mosolgo
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-04-27 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: base64
|
|
@@ -663,7 +663,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
663
663
|
- !ruby/object:Gem::Version
|
|
664
664
|
version: '0'
|
|
665
665
|
requirements: []
|
|
666
|
-
rubygems_version:
|
|
666
|
+
rubygems_version: 4.0.6
|
|
667
667
|
specification_version: 4
|
|
668
668
|
summary: A GraphQL language and runtime for Ruby
|
|
669
669
|
test_files: []
|