From 6590a0277e6e45a2d6c7fab3c58192cfec1817b3 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Mon, 13 Apr 2026 22:58:34 +0900 Subject: [PATCH] Replace File.exists? with File.exist? File.exists? was removed in Ruby 4.0 / JRuby 10.1, causing JDBC driver loading to fail with NoMethodError. Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/plsql/jdbc_connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plsql/jdbc_connection.rb b/lib/plsql/jdbc_connection.rb index 162b0ee..95900b8 100644 --- a/lib/plsql/jdbc_connection.rb +++ b/lib/plsql/jdbc_connection.rb @@ -25,7 +25,7 @@ ["./lib"].concat($LOAD_PATH).concat(env_path).detect do |dir| # check any compatible JDBC driver in the priority order ojdbc_jars.any? do |ojdbc_jar| - if File.exists?(file_path = File.join(dir, ojdbc_jar)) + if File.exist?(file_path = File.join(dir, ojdbc_jar)) require file_path true end