Skip to content

Commit

Permalink
move transdb initialization to C part to keep it together
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 13, 2016
1 parent 4892557 commit 098f56d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/binary/YRuby.cc
Expand Up @@ -66,14 +66,17 @@ YRuby::YRuby()
ruby_init();
ruby_init_loadpath();

// FIX for setup gem load path. Embedded ruby initialization mixes up gem
// FIX for setup gem load path. Embedded ruby initialization mixes up gem
// initialization (which we want) with option processing (which we don't want).
// Copying only needed parts of `ruby_options` here.
// See http://subforge.org/blogs/show/1
// Note that the solution is different to not touch internal ruby
rb_define_module("Gem");
y2_require("rubygems");

// encoding initialization
y2_require("enc/encdb.so");
y2_require("enc/trans/transdb.so");
rb_enc_find_index("encdb");

VALUE ycp_references = Data_Wrap_Struct(rb_cObject, gc_mark, gc_free, & value_references_from_ycp);
Expand Down
4 changes: 0 additions & 4 deletions src/ruby/yast/logger.rb
@@ -1,10 +1,6 @@
require "yastx"
require "yast/builtins"

# FIXME: a workaround for https://github.com/yast/yast-ruby-bindings/issues/133
require "enc/encdb.so"
require "enc/trans/transdb.so"

module Yast
# @private
module_function def y2_logger_helper(level, args)
Expand Down

0 comments on commit 098f56d

Please sign in to comment.