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

Drop support for Ruby 2.3, 2.4, 2.5 and RubyGems 2.5, 2.6, 2.7 #6107

Merged
merged 2 commits into from
Dec 10, 2022

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Dec 9, 2022

What was the end-user or developer problem that led to this PR?

We've been warning when running Bundler on old RubyGems if running on Ruby 2.3, Ruby 2.4 and Ruby 2.5 for a year.

Hopefully that has given most folks sufficient head ups about our intention, although I can still imagine some disruption in some cases. Yet, we need to do this at some point, let's use new year's release to do it.

What is your fix for the problem, implemented in this PR?

Drop support for Ruby 2.3, 2.4 and 2.5, and RubyGems 2.5, 2.6 and 2.7.

There's a bunch of follow up PRs after this like RuboCop style, bumping development dependencies, or bumping vendored gems. But I'll do that as follow up PRs.

EDIT: I'm also normalizing RuboCop styles in this PR to make CI happy.

Make sure the following tasks are checked

@deivid-rodriguez deivid-rodriguez force-pushed the drop-old-rubies-and-rubygems branch 2 times, most recently from fca5e5a to 0019b98 Compare December 9, 2022 15:10
gem "bundler", Bundler::VERSION if Gem.rubygems_version < Gem::Version.new("2.6.2")

if Gem.rubygems_version < Gem::Version.new("3.2.3") && Gem.ruby_version < Gem::Version.new("2.6.a") && !ENV["BUNDLER_NO_OLD_RUBYGEMS_WARNING"]
if Gem.rubygems_version < Gem::Version.new("3.2.3") && Gem.ruby_version < Gem::Version.new("3.0.a") && !ENV["BUNDLER_NO_OLD_RUBYGEMS_WARNING"]
Copy link
Member Author

Choose a reason for hiding this comment

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

Ruby 3.0.0 ships with RubyGems 3.2.3. So next year we can drop support for Ruby 2.6 and Ruby 2.7 and we'll no longer need this warning.

@deivid-rodriguez deivid-rodriguez force-pushed the drop-old-rubies-and-rubygems branch 3 times, most recently from e98d4fc to bca5b23 Compare December 9, 2022 15:43
@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review December 9, 2022 22:04
@deivid-rodriguez deivid-rodriguez mentioned this pull request Dec 10, 2022
4 tasks
To not shadow `Kernel#p`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants