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

Replace deprecated File.exists? with File.exist? #64

Merged
merged 1 commit into from
Apr 23, 2015
Merged

Replace deprecated File.exists? with File.exist? #64

merged 1 commit into from
Apr 23, 2015

Conversation

tmock12
Copy link
Contributor

@tmock12 tmock12 commented Apr 22, 2015

According to the docs for 2.2.0 (http://ruby-doc.org/core-2.2.0/File.html#method-c-exist-3F) File.exists? has been deprecated and we should use File.exist?.

Looking all the way back to 1.8.7 (http://ruby-doc.org/core-1.8.7/File.html#method-c-exist-3F), this method seems to be the same. So I wouldn't think this would cause any breaking changes and should just remove those pesky deprecation warnings.

All tests are still green and I tried it on a dummy app and the deprecation warnings were removed.

@kytrinyx
Copy link
Contributor

Awesome, thank you!

kytrinyx added a commit that referenced this pull request Apr 23, 2015
Replace deprecated File.exists? with File.exist?
@kytrinyx kytrinyx merged commit 262ee35 into approvals:master Apr 23, 2015
@tmock12 tmock12 deleted the deprecated_exists branch April 23, 2015 15:50
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