Update fallback RubyGems version to 3.4.22#171
Open
yahonda wants to merge 1 commit intorails:mainfrom
Open
Conversation
Since the oldest stable branch in Rails CI is now 7-0-stable,
update the fallback RubyGems version to 3.4.22, which is the latest version available
for Ruby 2.7.0 (the required_ruby_version for Rails 7.0).
- RubyGems 4.0 does not support Ruby 2.7
```
$ ruby -v
ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [x86_64-linux]
$ gem -v
3.1.6
$ bundler -v
Bundler version 2.1.4
$ gem update --system
Updating rubygems-update
Fetching rubygems-update-4.0.4.gem
ERROR: Error installing rubygems-update:
There are no versions of rubygems-update (= 4.0.4) compatible with your Ruby & RubyGems
rubygems-update requires Ruby version >= 3.2.0. The current ruby version is 2.7.8.225.
ERROR: While executing gem ... (NoMethodError)
undefined method `version' for nil:NilClass
```
- RubyGems 3.4.22 is the last/latest version that supports Ruby 2.7
```
$ gem update --system 3.4.22
Updating rubygems-update
Fetching rubygems-update-3.4.22.gem
Successfully installed rubygems-update-3.4.22
Parsing documentation for rubygems-update-3.4.22
Installing ri documentation for rubygems-update-3.4.22
Installing darkfish documentation for rubygems-update-3.4.22
Done installing documentation for rubygems-update after 1 seconds
Parsing documentation for rubygems-update-3.4.22
Done installing documentation for rubygems-update after 0 seconds
Installing RubyGems 3.4.22
Successfully built RubyGem
Name: bundler
Version: 2.4.22
File: bundler-2.4.22.gem
Bundler 2.4.22 installed
RubyGems 3.4.22 installed
Regenerating binstubs
Regenerating plugins
Parsing documentation for rubygems-3.4.22
Installing ri documentation for rubygems-3.4.22
... snip ...
RubyGems system software updated
$ ruby -v
ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [x86_64-linux]
$ gem -v
3.4.22
$ bundler -v
Bundler version 2.4.22
$
```
- RubyGems v3.5.0
https://github.com/ruby/rubygems/releases/tag/v3.5.0
> Drop ruby 2.6 and 2.7 support.
- Drop ruby 2.6 and 2.7 support
ruby/rubygems#7116
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since the oldest stable branch in Rails CI is now 7-0-stable, update the fallback RubyGems version to 3.4.22, which is the latest version available for Ruby 2.7.0 (the required_ruby_version for Rails 7.0).