summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexander Borisov <alexander.borisov@nginx.com>2018-04-03 16:26:22 +0300
committerAlexander Borisov <alexander.borisov@nginx.com>2018-04-03 16:26:22 +0300
commitf2c0c18f8b12f72d7090b4f30c58b5b65ab126d2 (patch)
tree1ef9c2d17b855495c913da603d09a617c0278a39
parentfa04c05aa0e67e6964ab006935f939c6b27754a3 (diff)
downloadunit-f2c0c18f8b12f72d7090b4f30c58b5b65ab126d2.tar.gz
unit-f2c0c18f8b12f72d7090b4f30c58b5b65ab126d2.tar.bz2
Ruby: added 'enc/trans/transdb' module for converting encodings.
This closes #92 issue on GitHub.
-rw-r--r--src/ruby/nxt_ruby.c3
1 files changed, 3 insertions, 0 deletions
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;