Skip to content

Commit 6590a02

Browse files
yahondaclaude
andcommitted
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) <noreply@anthropic.com>
1 parent c3fa632 commit 6590a02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/plsql/jdbc_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
["./lib"].concat($LOAD_PATH).concat(env_path).detect do |dir|
2626
# check any compatible JDBC driver in the priority order
2727
ojdbc_jars.any? do |ojdbc_jar|
28-
if File.exists?(file_path = File.join(dir, ojdbc_jar))
28+
if File.exist?(file_path = File.join(dir, ojdbc_jar))
2929
require file_path
3030
true
3131
end

0 commit comments

Comments
 (0)