Skip to content

Suppress Ruby's deprecation using File.exist? instead of File.exists? #81

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tricknotes
Copy link

The latter is deprecated since Ruby 2.1.0.
ref: http://docs.ruby-lang.org/en/2.2.0/File.html#method-c-exists-3F

And File.exist? works fine for older Ruby versions.

@tricknotes tricknotes changed the title Fix README using File.exist? instead of File.exists? Suppress Ruby's warning using File.exist? instead of File.exists? Aug 3, 2016
…ts?`

The latter is deprecated since Ruby 2.1.0.
ref: http://docs.ruby-lang.org/en/2.2.0/File.html#method-c-exists-3F

And `File.exist?` works fine for older Ruby versions.
@tricknotes tricknotes changed the title Suppress Ruby's warning using File.exist? instead of File.exists? Suppress Ruby's deprecation using File.exist? instead of File.exists? Aug 3, 2016
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.

1 participant