Skip to content

Replace File.exists? with File.exist?#36

Merged
jsvd merged 1 commit intologstash-plugins:mainfrom
jsvd:fix-deprecated-file-exists
Feb 11, 2026
Merged

Replace File.exists? with File.exist?#36
jsvd merged 1 commit intologstash-plugins:mainfrom
jsvd:fix-deprecated-file-exists

Conversation

@jsvd
Copy link
Member

@jsvd jsvd commented Feb 10, 2026

Summary

  • Replace File.exists? with File.exist? for Ruby 3.4 compatibility

File.exists? was deprecated in Ruby 3.2 and has been removed in Ruby 3.4 (JRuby 10). File.exist? has been the preferred method since Ruby 1.0.

File.exists? was deprecated in Ruby 3.2 and removed in Ruby 3.4 (JRuby 10).
Use File.exist? instead, which has been available since Ruby 1.0.
@jsvd jsvd force-pushed the fix-deprecated-file-exists branch from 7d7ac70 to 821e11c Compare February 10, 2026 09:45
Copy link
Contributor

@andsel andsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jsvd jsvd merged commit f1adcb4 into logstash-plugins:main Feb 11, 2026
3 checks passed
@jsvd jsvd deleted the fix-deprecated-file-exists branch February 11, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants