graphql-c_parser 1.1.0 → 1.1.2

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: e8584a3c42587debe82aa29273fef1dffd1e3624c3d03368b37cbd36dbe8e290
4
- data.tar.gz: 6775ad51cb2544d67b9bf8e0460d6decc1b14034db4cb8148653ae6835987a41
3
+ metadata.gz: be270d6ac8702f06f0064e5bf0c31ca692bfc23b61bbd6f127bb0355052d41f2
4
+ data.tar.gz: 6ab63da6a52383d096418d3287f56d3073f6929272b61d65adc8f369079f4709
5
5
  SHA512:
6
- metadata.gz: 33036841a9ef8f1c44fb297781272d2645428eb6d1252582692af832704ad8a8e861cecbc081829be2a15d4271045876c524331978f14608436594cf34c99377
7
- data.tar.gz: f46a068023df63a03c2b970e05c8e14784d9686de2147f1b4dbf2b866271093dbb6b4e9d019fed62c2854deffc27df24071fcfc93a3fde5563967323220584c3
6
+ metadata.gz: cd6c9a38312f0f61e1ff6b8d2f9ebd79d53a836e57808e185ef2b5542a9d02a5e9334750a7ff29c977d4a490c3d0391bf9e2b04ebe9549bfb3b06ce653016a2d
7
+ data.tar.gz: 4c2491b9836081783769a7d7578f433ee041f9f0859cd0872a77594ec73758ca5eb4903ca39d97bb237a21f4380263b94458ea8f44db4be90760bae0198dacd1
@@ -1,7 +1,7 @@
1
1
  #include "graphql_c_parser_ext.h"
2
2
 
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));
3
+ VALUE GraphQL_CParser_Lexer_tokenize_with_c_internal(VALUE self, VALUE query_string, VALUE fstring_identifiers, VALUE reject_numbers_followed_by_names, VALUE max_tokens) {
4
+ return tokenize(query_string, RTEST(fstring_identifiers), RTEST(reject_numbers_followed_by_names), FIX2INT(max_tokens));
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_internal", GraphQL_CParser_Lexer_tokenize_with_c_internal, 2);
16
+ rb_define_singleton_method(Lexer, "tokenize_with_c_internal", GraphQL_CParser_Lexer_tokenize_with_c_internal, 4);
17
17
  setup_static_token_variables();
18
18
 
19
19
  VALUE Parser = rb_define_class_under(CParser, "Parser", rb_cObject);