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
[gemspec] raise upper limit on Bundler version to include 2.x.x #14024
Conversation
I can't really see any issues resulting from this. Upgrading it didn't seem to clearly break anything when I ran tests, so this seems ready to at least try and get CI to run on. Note that 2.0.1 will not install on Ruby < 2.3 or RubyGems <= 2.5.0, so this only allows those users with updated versions of these to upgrade. Signed-off-by: Kristofer Rye <kristofer.rye@gmail.com> Tested-by: Kristofer Rye <kristofer.rye@gmail.com>
I'm not super up to date, but I read somewhere bundler 3.0 doesn't work with the pre-installed Ruby of macOS. However from what I understand, this should still work for previous setups, right? |
This PR doesn't allow bundler 3.0 (which I don't think exists) to be usedβ2.0, however did introduce a strict requirement of β₯ 2.3.0 which will prevent the update on older macOS installs. On macOS Mojave, I have $ /usr/bin/ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18] I'll note that the requirement imposed by Bundler on v2.0.1 is: if s.version >= Gem::Version.new("2.a".dup)
s.required_ruby_version = ">= 2.3.0"
s.required_rubygems_version = ">= 2.5.0"
else
s.required_ruby_version = ">= 1.8.7"
s.required_rubygems_version = ">= 1.3.6"
end |
The test failure I'm getting is:
But I am failing to see how this results from this change. I'll note that the test in question is setting |
That's our one and only flaky test. I restarted the tests, should be fine in a minute. |
@rye Did |
I'm pretty sure 3.0 never existed, since 2.0 was just released. This version operator just ensures that 3.0 never gets used if it does get uploaded, at least not until the gemspec is updated. This is similar to how it was before, with bundler 1.0 being the old release and 2.0 being the upper limit. |
Oh man, I read this way to early in the morning without having enough coffee π Let's ignore my comment and let me actually test this now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should be good π This did work on my system version of Ruby (which is 2.3 and supported by bundler 2.0), worked on Ruby 2.2 (which doesn't support bundler 2.0), and my non-sytem Ruby of 2.3.7
Sweet, thanks! |
Hey @rye π Thank you for your contribution to fastlane and congrats on getting this pull request merged π Please let us know if this change requires an immediate release by adding a comment here π |
Congratulations! π This was released as part of fastlane 2.113.0 π |
Resolves #14016. π
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
Bundler 2.0 was recently released, and those users who want to upgrade cannot do so until this gem removes its requirement on Bundler being less than 2.0. Moreover, users who are unable to satisfy the RubyGems β₯Β 2.5.0 or Ruby β₯Β 2.3 requirement imposed by Bundler 2.0 will not be forced to upgrade, I'm pretty sure. This PR just loosens the requirement. I thought about completely removing the upper bound, but decided not to.
Resolves #14016.
Description
This PR is a one-liner change to the Gemspec.