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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c3979cfbf6798e07cc891a6cf8533180789418b08bd78833ddd36c62be3c5df
4
- data.tar.gz: fd9292270962ab840a442a3847fa125282ec697abbc7a60fa8a1c98e3668d70e
3
+ metadata.gz: 5978a06cdccd670bba134428979ff4ee120a88770256acbdb5c743660b277572
4
+ data.tar.gz: 455663b15baaf8752eb68ff9ef4d97e8ac51b2845c5805c327a733deb9b22881
5
5
  SHA512:
6
- metadata.gz: fdf683b34458dde0e924c542b6e182a0157abf907fe2973fbb6d546888a4c01b5aa7c512f8ff8b45d5ee7136a8ebef2d00eeb1a50337071a5d0051fa688fbd03
7
- data.tar.gz: 7da22594195af48a315eefca9705c68e58f6290bcdc773581815e606ae84d9521d703d2537fbeb88e66d11105f24ae03fa5bdaf3380d4089e66df349a52f4705
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, rb_str_new_cstr("\n")));
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 = rb_str_new_cstr(token_content); \
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 = rb_str_new_cstr(str_content); \
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module CParser
5
- VERSION = "1.0.3"
5
+ VERSION = "1.0.4"
6
6
  end
7
7
  end
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.3
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-16 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql