From f888d8953af394263c8b5a96723aa073ca8bb694 Mon Sep 17 00:00:00 2001 From: Kostadin Date: Sat, 25 Jul 2026 17:22:00 +0300 Subject: [PATCH] Changed File.exists? to File.exist? in Rakefile The File.exists? method no longer exists in Ruby 4 and JRuby 10. Changed the only leftover of File.exists? to File.exist? in order to ensure compatibility. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 753e633b7..f9aa81b6e 100644 --- a/Rakefile +++ b/Rakefile @@ -284,7 +284,7 @@ if defined? JRUBY_VERSION if match = requirement.match(/^jar\s+([\w\-\.]+):([\w\-]+),\s+?([\w\.\-]+)?/) matched_jar = Jars.send :to_jar, match[1], match[2], match[3], nil matched_jar = File.join( Jars.home, matched_jar ) - matched_jars << matched_jar if File.exists?( matched_jar ) + matched_jars << matched_jar if File.exist?( matched_jar ) end end matched_jars