1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

[meson] ruby dependency: ruby not ruby-2.6

Also initialize error, because rb_load_protect, does not change it.
This commit is contained in:
Witold Filipczyk 2021-08-17 16:09:05 +02:00
parent 8154169711
commit ee49c80061
2 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ endif
rubydeps = [] rubydeps = []
if conf_data.get('CONFIG_SCRIPTING_RUBY') if conf_data.get('CONFIG_SCRIPTING_RUBY')
rubydeps = dependency('ruby-2.6') rubydeps = dependency('ruby')
deps += rubydeps deps += rubydeps
endif endif

View File

@ -247,7 +247,7 @@ init_ruby(struct module *module)
if (!path) return; if (!path) return;
if (file_can_read(path)) { if (file_can_read(path)) {
int error; int error = 0;
/* Load ~/.elinks/hooks.rb into the interpreter. */ /* Load ~/.elinks/hooks.rb into the interpreter. */
//rb_load_file(path); //rb_load_file(path);