From f2c0c18f8b12f72d7090b4f30c58b5b65ab126d2 Mon Sep 17 00:00:00 2001 From: Alexander Borisov Date: Tue, 3 Apr 2018 16:26:22 +0300 Subject: Ruby: added 'enc/trans/transdb' module for converting encodings. This closes #92 issue on GitHub. --- src/ruby/nxt_ruby.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/ruby/nxt_ruby.c b/src/ruby/nxt_ruby.c index abb9640e..7ae5c73d 100644 --- a/src/ruby/nxt_ruby.c +++ b/src/ruby/nxt_ruby.c @@ -148,6 +148,9 @@ nxt_ruby_init_basic(VALUE arg) return Qnil; } + rb_funcall(rb_cObject, rb_intern("require"), 1, + rb_str_new2("enc/trans/transdb")); + rc = nxt_ruby_init_io(rack_init->task); if (nxt_slow_path(rc != NXT_OK)) { return Qnil; -- cgit