-
Notifications
You must be signed in to change notification settings - Fork 268
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
Deprecation fix: File.exists? => File.exist #180
Conversation
Address deprecation warning: ...ruby/2.1.3/gems/addressable-2.3.6/lib/addressable/uri.rb:265: warning: File.exists? is a deprecated name, use File.exist? instead
I should have mentioned: The deprecation warning is issued when running ruby with verbose warnings enabled, via |
Or try running the tests with "rspec --warnings" Any chance of getting this merged? |
@sporkmonger Is there anything we can do to get this merged? It makes it very difficult to use addressable with warnings enabled |
@ronen Do you think you could add |
(And maybe prevent future problems too) |
Hi ... I have been looking for the 'reason' for this message:
I've been searching on here and the web I haven't found anything except this issue. Is this connected some way? What does the message mean? It came in the context of installing a gem called middleman-blog.
I didn't have any verbose or warning switches set though. I am using the JRuby 9.0 version
Many thanks, Will. |
@aplatypus I think that's an unrelated deprecation message. |
@iainbeeston wrote:
Added it. That also exposed some variable-set-but-not-used warnings in template_spec.rb, which I fixed and likewise added to to the PR. BTW with warnings enabled, MRI 2.2.0p0 gives a bunch of warnings |
Deprecation fix: File.exists? => File.exist
Hey all, sorry it took me so long to get around to merging this. |
🎉 😄 |
@sporkmonger cool, thanks. FYI also MRI 2.2.1 indeed removes the |
Address deprecation warning: