Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 9e352a52797c3b123a18e199ca082c9c > files > 3

korundum-4.10.2-1.mga3.src.rpm

--- korundum-4.9.2/src/krubypluginfactory.cpp.orig	2012-09-28 08:18:44.000000000 +0800
+++ korundum-4.9.2/src/krubypluginfactory.cpp	2012-11-01 15:11:51.000000000 +0800
@@ -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()));