Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated usage of File.exists? #8

Merged
merged 2 commits into from
Jan 11, 2023

Conversation

nbelzer
Copy link
Contributor

@nbelzer nbelzer commented Jan 2, 2023

File.exists? is deprecated in the latest release of Ruby (3.2.0). I encountered the issue when I upgraded to Ruby 3.2.0 so I expect more people to run into the same issue as they upgrade.

This method is deprecated in the latest release of Ruby 3.2.
@nbelzer nbelzer self-assigned this Jan 2, 2023
@waymondo
Copy link

waymondo commented Jan 3, 2023

Just came here to open a PR for the same issue. Seems fine to rename since exists? has been deprecated all the way back to the 2.5 days:

https://ruby-doc.org/core-2.5.0/File.html#method-c-exists-3F

@albertorestifo
Copy link

I'm also encountering this issue

@nbelzer nbelzer requested a review from elia January 4, 2023 20:48
@elia elia merged commit e00e172 into nebulab:main Jan 11, 2023
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.

4 participants