graphql-c_parser 1.0.7 → 1.1.0

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: 15076ab2a36e5f5182bf6060ec667b2517b1d1a9e46e92d8bf2505e6771d363b
4
- data.tar.gz: 9883bac0b26ca1fa4e38e13392d04a2bf8a9fd9a99664a640338f31d8ebf05d1
3
+ metadata.gz: e8584a3c42587debe82aa29273fef1dffd1e3624c3d03368b37cbd36dbe8e290
4
+ data.tar.gz: 6775ad51cb2544d67b9bf8e0460d6decc1b14034db4cb8148653ae6835987a41
5
5
  SHA512:
6
- metadata.gz: ef5eb4abe1fb0ef772a1715cda800cb86df8f8b0ee6dc32b6f9de6c0273860e466d3cbe2cbc6ddd183b6c513dacf3f984498200718afe74d9925813c38b882e1
7
- data.tar.gz: 21f20974bb04b7f8e82cc7abee505d5b7204e424598fd28d7114b3aa6ae9828d874c2754df88962b8c478c65c480bef26e5df816a6dfeb19ef2544f6a6f89a30
6
+ metadata.gz: 33036841a9ef8f1c44fb297781272d2645428eb6d1252582692af832704ad8a8e861cecbc081829be2a15d4271045876c524331978f14608436594cf34c99377
7
+ data.tar.gz: f46a068023df63a03c2b970e05c8e14784d9686de2147f1b4dbf2b866271093dbb6b4e9d019fed62c2854deffc27df24071fcfc93a3fde5563967323220584c3
@@ -1,7 +1,7 @@
1
1
  #include "graphql_c_parser_ext.h"
2
2
 
3
- VALUE GraphQL_CParser_Lexer_tokenize_with_c(VALUE self, VALUE query_string) {
4
- return tokenize(query_string);
3
+ VALUE GraphQL_CParser_Lexer_tokenize_with_c_internal(VALUE self, VALUE query_string, VALUE fstring_identifiers) {
4
+ return tokenize(query_string, RTEST(fstring_identifiers));
5
5
  }
6
6
 
7
7
  VALUE GraphQL_CParser_Parser_c_parse(VALUE self) {
@@ -13,7 +13,7 @@ void Init_graphql_c_parser_ext() {
13
13
  VALUE GraphQL = rb_define_module("GraphQL");
14
14
  VALUE CParser = rb_define_module_under(GraphQL, "CParser");
15
15
  VALUE Lexer = rb_define_module_under(CParser, "Lexer");
16
- rb_define_singleton_method(Lexer, "tokenize_with_c", GraphQL_CParser_Lexer_tokenize_with_c, 1);
16
+ rb_define_singleton_method(Lexer, "tokenize_with_c_internal", GraphQL_CParser_Lexer_tokenize_with_c_internal, 2);
17
17
  setup_static_token_variables();
18
18
 
19
19
  VALUE Parser = rb_define_class_under(CParser, "Parser", rb_cObject);
@@ -1,6 +1,7 @@
1
1
  #ifndef Graphql_ext_h
2
2
  #define Graphql_ext_h
3
3
  #include <ruby.h>
4
+ #include <ruby/encoding.h>
4
5
  #include "lexer.h"
5
6
  #include "parser.h"
6
7
  void Init_graphql_c_parser_ext();