yarp 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
data/ext/yarp/extension.c CHANGED
@@ -347,7 +347,7 @@ parse_input(yp_string_t *input, const char *filepath) {
347
347
  yp_node_t *node = yp_parse(&parser);
348
348
  rb_encoding *encoding = rb_enc_find(parser.encoding.name);
349
349
 
350
- VALUE source = yp_source_new(&parser);
350
+ VALUE source = yp_source_new(&parser, encoding);
351
351
  VALUE result_argv[] = {
352
352
  yp_ast_new(&parser, node, encoding),
353
353
  parser_comments(&parser, source),
data/ext/yarp/extension.h CHANGED
@@ -1,13 +1,13 @@
1
1
  #ifndef YARP_EXT_NODE_H
2
2
  #define YARP_EXT_NODE_H
3
3
 
4
- #define EXPECTED_YARP_VERSION "0.10.0"
4
+ #define EXPECTED_YARP_VERSION "0.11.0"
5
5
 
6
6
  #include <ruby.h>
7
7
  #include <ruby/encoding.h>
8
8
  #include "yarp.h"
9
9
 
10
- VALUE yp_source_new(yp_parser_t *parser);
10
+ VALUE yp_source_new(yp_parser_t *parser, rb_encoding *encoding);
11
11
  VALUE yp_token_new(yp_parser_t *parser, yp_token_t *token, rb_encoding *encoding, VALUE source);
12
12
  VALUE yp_ast_new(yp_parser_t *parser, yp_node_t *node, rb_encoding *encoding);
13
13