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

Stop using Bundler::RubyVersion#to_gem_version_with_patchlevel #41

Conversation

deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented Apr 21, 2022

This method reports the patch level of Ruby, which is no longer useful since Ruby 2.0.0, and was causing Bundler to show some strange error messages about Ruby version with 4 segments, like 3.1.1.0.

The method was removed too aggressively from Bundler without knowing that it was actually being used by bootboot. Depending on how widely it's actually used, we might restore it with a deprecation, but this commit makes bootboot use a better method.

Fixes #40.

This method reports the patch level of Ruby, which is no longer useful
since Ruby 2.0.0, and was causing Bundler to show some strange error
messages about Ruby version with 4 segments, like 3.1.1.0.

The method was removed too aggressively from Bundler without knowing
that it was actually being used by bootboot. Depending on how widely
it's actually used, we might restore it with a deprecation, but this
commit makes bootboot use a better method.
@tjchambers
Copy link

This looks like a winner to me. thx @deivid-rodriguez

Copy link
Contributor

@nvasilevski nvasilevski left a comment

Choose a reason for hiding this comment

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

That's awesome, thank you!

Give me a few moments, I'll try to release a new version by the end of the day EST

@nvasilevski nvasilevski merged commit ce019c9 into Shopify:main Apr 21, 2022
@deivid-rodriguez deivid-rodriguez deleted the remove-to-gem-version-with-patchlevel-usage branch April 22, 2022 06:00
@deivid-rodriguez
Copy link
Contributor Author

That was fast, thanks so much @nvasilevski!

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.

BootBoot calls method removed in Bundler 2.3.12
3 participants