Skip to content

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

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

Replace File.exists? with File.exist?#192
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 880e2b5 to 6f7231d 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 f5fc91b into logstash-plugins:main Feb 11, 2026
3 checks passed
@jsvd jsvd deleted the fix-deprecated-file-exists branch February 11, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants