diff -Naur korundum-4.9.4/src/krubypluginfactory.cpp korundum-4.9.4-magellan/src/krubypluginfactory.cpp --- korundum-4.9.4/src/krubypluginfactory.cpp 2012-11-30 07:30:09.000000000 +0000 +++ korundum-4.9.4-magellan/src/krubypluginfactory.cpp 2013-01-02 01:47:31.005946038 +0000 @@ -39,7 +39,6 @@ extern "C" { extern VALUE rb_load_path; extern VALUE qt_internal_module; -void Init_prelude(void); } // @@ -165,7 +164,8 @@ #if RUBY_VERSION >= 0x10900 VALUE gem = rb_define_module("Gem"); rb_const_set(gem, rb_intern("Enable"), Qtrue); - Init_prelude(); + char *opts[] = { "ruby", "-e;" }; + ruby_options(2, opts); #endif ruby_incpush(QFile::encodeName(program.path())); @@ -342,7 +342,8 @@ #if RUBY_VERSION >= 0x10900 VALUE gem = rb_define_module("Gem"); rb_const_set(gem, rb_intern("Enable"), Qtrue); - Init_prelude(); + char *opts[] = { "ruby", "-e;" }; + ruby_options(2, opts); #endif ruby_incpush(QFile::encodeName(program.path()));