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 File.exists? with File.exist? for Ruby 3.2 compatibility #57

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

tmnsun
Copy link
Contributor

@tmnsun tmnsun commented Jul 20, 2023

Replace File.exists? with File.exist? due to removal of the former method in Ruby 3.2, ensuring compatibility with the latest Ruby versions

@tmnsun tmnsun changed the title Replace File.exists? with File.exist for Ruby 3.2 compatibility Replace File.exists? with File.exist? for Ruby 3.2 compatibility Jul 20, 2023
@jmileham
Copy link
Member

Thanks Andrei, great catch. This is making us realize we have a gap on ruby deprecation handling, which we'd like to inbox zero. Since we're angling toward a 2.0 release to support URL wildcards, we'll try to get this patch in along with a better story for proactively identifying deprecations even before they start failing in production. Of course doubly an issue here was that it's in a generator, which are tricky to test, and not tested. I think we'll take this patch as is and then see about adding extra testing and deprecation safety.

Copy link
Member

@jmileham jmileham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

domain lgtm platform lgtm

@jmileham jmileham merged commit 95cd193 into Betterment:main Jul 20, 2023
@samandmoore
Copy link
Member

hi @tmnsun, I just pushed a 1.3.1 release with this fix to get it out sooner than the 2.0.0 release since that might be a minute 😄

Thanks again for reporting this and fixing it

@tmnsun
Copy link
Contributor Author

tmnsun commented Jul 21, 2023

Thank you! That was fast :D

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.

3 participants