gplugin/gplugin

e182652acae6
Parents 53d47c07a63d
Children 80402c26bcc1
Some more work on the ruby loader, turns out not knowing ruby makes this mucher harder...
--- a/ruby/gplugin-ruby-loader.c Sat Jun 03 03:07:52 2017 -0500
+++ b/ruby/gplugin-ruby-loader.c Sun Jun 04 20:59:27 2017 -0500
@@ -53,6 +53,25 @@
GPLUGIN_UNUSED GError **error)
{
GPluginPlugin *plugin = NULL;
+ gpointer script = NULL, other = NULL;
+ VALUE info = 0;
+
+ g_message("filename: %s", filename);
+
+ script = rb_require(filename);
+
+ g_message("type: 0x%x", TYPE(script));
+
+ // info = rb_funcall(
+ // rb_current_receiver(),
+ // rb_intern("gplugin_query"),
+ // 1,
+ // NULL
+ // );
+
+ info = rb_current_receiver();
+
+ g_message("info: %" G_GUINT64_FORMAT, info);
return plugin;
}
@@ -83,6 +102,7 @@
static gboolean
gplugin_ruby_loader_init_ruby(void) {
ruby_init();
+ ruby_init_loadpath();
return TRUE;
}