graphql-c_parser 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/graphql_c_parser_ext/lexer.c +3 -3
- data/lib/graphql/c_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5978a06cdccd670bba134428979ff4ee120a88770256acbdb5c743660b277572
|
4
|
+
data.tar.gz: 455663b15baaf8752eb68ff9ef4d97e8ac51b2845c5805c327a733deb9b22881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c9f90934f0e421f6cb17e33f12c085c1eda6ec070ae59591e1c106a1fa80688687c8f03349b688208fc6a2ac90d598697ba7d30a5311ed329bbe56125a90f1a
|
7
|
+
data.tar.gz: 4b90a2c70d1c4b36969f410dc658a2482f2897a0a07e03eda1c777a0867db6fc8b91e047dfa4b92edd4869005e5480ed736d3142bfb10ef0d10ccc8794025f9b
|
@@ -868,7 +868,7 @@ void emit(TokenType tt, char *ts, char *te, Meta *meta) {
|
|
868
868
|
token_sym = ID2SYM(rb_intern("STRING"));
|
869
869
|
quotes_length = 3;
|
870
870
|
token_content = rb_utf8_str_new(ts + quotes_length, (te - ts - (2 * quotes_length)));
|
871
|
-
line_incr = FIX2INT(rb_funcall(token_content, rb_intern("count"), 1,
|
871
|
+
line_incr = FIX2INT(rb_funcall(token_content, rb_intern("count"), 1, rb_utf8_str_new_cstr("\n")));
|
872
872
|
break;
|
873
873
|
case STRING:
|
874
874
|
// This is used only by the parser, this is never reached
|
@@ -1976,12 +1976,12 @@ VALUE tokenize(VALUE query_rbstr) {
|
|
1976
1976
|
|
1977
1977
|
|
1978
1978
|
#define SETUP_STATIC_TOKEN_VARIABLE(token_name, token_content) \
|
1979
|
-
GraphQLTokenString##token_name =
|
1979
|
+
GraphQLTokenString##token_name = rb_utf8_str_new_cstr(token_content); \
|
1980
1980
|
rb_funcall(GraphQLTokenString##token_name, rb_intern("-@"), 0); \
|
1981
1981
|
rb_global_variable(&GraphQLTokenString##token_name); \
|
1982
1982
|
|
1983
1983
|
#define SETUP_STATIC_STRING(var_name, str_content) \
|
1984
|
-
var_name =
|
1984
|
+
var_name = rb_utf8_str_new_cstr(str_content); \
|
1985
1985
|
rb_global_variable(&var_name); \
|
1986
1986
|
rb_str_freeze(var_name); \
|
1987
1987
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-c_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|