Skip to content

Replace File.exists? with File.exist? - #118

Merged
djberg96 merged 1 commit into
djberg96:mainfrom
mlarraz:fix/file-exists-deprecated
Feb 25, 2026
Merged

Replace File.exists? with File.exist?#118
djberg96 merged 1 commit into
djberg96:mainfrom
mlarraz:fix/file-exists-deprecated

Conversation

@mlarraz

@mlarraz mlarraz commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • File.exists? was deprecated in Ruby 2.7 and removed in Ruby 3.2
  • The rake install task raises NoMethodError on any Ruby >= 3.2 because of this
  • Switches to File.exist? which has been available since Ruby 1.0

Test plan

  • rake install no longer errors on Ruby 3.2+
  • Existing test suite passes (bundle exec rake)

🤖 Generated with Claude Code

File.exists? was deprecated in Ruby 2.7 and removed in Ruby 3.2.
The `rake install` task currently raises a NoMethodError on any
Ruby >= 3.2 because of this. Switch to File.exist? which has been
available since Ruby 1.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@djberg96

Copy link
Copy Markdown
Owner

Hah, that's a really old task that I don't really use any more, but left it hanging around.

@djberg96
djberg96 merged commit d1d2520 into djberg96:main Feb 25, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants