commit 6c32e54d57af4f70e0bb4e8504d752d394c773e5
Author: Alexander Neumann <alexander.neumann@redteam-pentesting.de>
Date:   Wed May 20 12:10:30 2020 +0200

    [Interp] Fix detection for ruby script started from relative paths.

diff --git a/perl/lib/NeedRestart/Interp/Ruby.pm b/perl/lib/NeedRestart/Interp/Ruby.pm
index a333504..88d39c6 100644
--- a/perl/lib/NeedRestart/Interp/Ruby.pm
+++ b/perl/lib/NeedRestart/Interp/Ruby.pm
@@ -171,7 +171,7 @@ sub files {
 	print STDERR "$LOGPREF #$pid: could not get a source file, skipping\n" if($self->{debug});
 	return ();
     }
-    my $src = $ARGV[0];
+    my $src = abs_path($ARGV[0]);
     unless(-r $src && -f $src) {
 	chdir($cwd);
 	print STDERR "$LOGPREF #$pid: source file '$src' not found, skipping\n" if($self->{debug});
