Displaying 2 results from an estimated 2 matches for "aa57f65".
2018 Mar 06
1
[PATCH nbdkit] Fix --dump-plugin on perl, python and ruby plugins.
...*fn;
PyObject *r;
- if (callback_defined ("dump_plugin", &fn)) {
+ if (script && callback_defined ("dump_plugin", &fn)) {
PyErr_Clear ();
r = PyObject_CallObject (fn, NULL);
diff --git a/plugins/ruby/ruby.c b/plugins/ruby/ruby.c
index 6b0285f..aa57f65 100644
--- a/plugins/ruby/ruby.c
+++ b/plugins/ruby/ruby.c
@@ -168,10 +168,8 @@ plugin_rb_unload (void)
static void
plugin_rb_dump_plugin (void)
{
- if (!script) {
- nbdkit_error ("the first parameter must be script=/path/to/ruby/script.rb");
+ if (!script)
return;
- }...
2018 Oct 01
2
[PATCH nbdkit] plugins: Add scripting language version to --dump-plugin output.
...Y_VERSION);
+#endif
+
+#ifdef PYTHON_ABI_VERSION
+ printf ("python_pep_384_abi_version=%d\n", PYTHON_ABI_VERSION);
+#endif
+
if (script && callback_defined ("dump_plugin", &fn)) {
PyErr_Clear ();
diff --git a/plugins/ruby/ruby.c b/plugins/ruby/ruby.c
index aa57f65..a3d7a42 100644
--- a/plugins/ruby/ruby.c
+++ b/plugins/ruby/ruby.c
@@ -41,6 +41,9 @@
#include <nbdkit-plugin.h>
#include <ruby.h>
+#ifdef HAVE_RUBY_VERSION_H
+#include <ruby/version.h>
+#endif
static VALUE nbdkit_module = Qnil;
static int last_error;
@@ -168,6 +171,17 @@...