From 86969ac8034ba30e2b0bc3921822634c997a2b28 Mon Sep 17 00:00:00 2001 From: shinokaro Date: Mon, 29 Jul 2024 22:18:08 +0900 Subject: [PATCH] Remove dependency on Ocran module from Direction class Replaced 'Ocran.script' with '@option.script' to centralize and localize script handling within the Direction class. --- lib/ocran/direction.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ocran/direction.rb b/lib/ocran/direction.rb index da666a3..bcc6be2 100644 --- a/lib/ocran/direction.rb +++ b/lib/ocran/direction.rb @@ -322,7 +322,7 @@ def to_proc # Add the opcode to launch the script installed_ruby_exe = BINDIR / ruby_executable - target_script = builder.resolve_source_path(Ocran.script, inst_src_prefix) + target_script = builder.resolve_source_path(@option.script, inst_src_prefix) builder.exec(installed_ruby_exe, target_script, *@option.argv) end end