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

Use File.exist? instead of File.exists? #471

Merged
merged 1 commit into from
Feb 9, 2022
Merged

Use File.exist? instead of File.exists? #471

merged 1 commit into from
Feb 9, 2022

Conversation

benjaminwols
Copy link
Contributor

@benjaminwols benjaminwols commented Jan 13, 2022

It seems Ruby 3.1 will remove File.exists? which has been obsolete for quite some time.
This fixes the deprecation warning: rswag-ui-2.4.0/lib/rswag/ui/middleware.rb:40: warning: File.exists? is deprecated; use File.exist? instead
File.exist? already exists since ruby 1.8.7: https://ruby-doc.org/core-1.8.7/File.html#method-c-exist-3F

@sergioisidoro
Copy link
Member

Looks good. The fact that the tests are not failing in master, now that we added Ruby 3.1 in CI, indicates our coverage is not ideal. If anyone wants to contribute to a test case on this it would be appreciated :)

@BookOfGreg BookOfGreg merged commit 5029982 into rswag:master Feb 9, 2022
@BookOfGreg
Copy link
Member

BookOfGreg commented Feb 9, 2022

Triggered new run here:
https://github.com/rswag/rswag/actions/runs/1815385532

Edit: All passed. 🟢 Thank you!

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.

None yet

3 participants