graphql 2.3.22 → 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 +4 -4
- data/lib/graphql/language/lexer.rb +15 -8
- data/lib/graphql/version.rb +1 -1
- metadata +3 -6
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]+/
|
data/lib/graphql/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +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
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-04-27 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: base64
|
|
@@ -650,7 +649,6 @@ metadata:
|
|
|
650
649
|
bug_tracker_uri: https://github.com/rmosolgo/graphql-ruby/issues
|
|
651
650
|
mailing_list_uri: https://buttondown.email/graphql-ruby
|
|
652
651
|
rubygems_mfa_required: 'true'
|
|
653
|
-
post_install_message:
|
|
654
652
|
rdoc_options: []
|
|
655
653
|
require_paths:
|
|
656
654
|
- lib
|
|
@@ -665,8 +663,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
665
663
|
- !ruby/object:Gem::Version
|
|
666
664
|
version: '0'
|
|
667
665
|
requirements: []
|
|
668
|
-
rubygems_version:
|
|
669
|
-
signing_key:
|
|
666
|
+
rubygems_version: 4.0.6
|
|
670
667
|
specification_version: 4
|
|
671
668
|
summary: A GraphQL language and runtime for Ruby
|
|
672
669
|
test_files: []
|