Skip to content

Prepare RubyGems 4.0.4 and Bundler 4.0.4#9247

Merged
hsbt merged 12 commits into4.0from
release/4.0.4
Jan 15, 2026
Merged

Prepare RubyGems 4.0.4 and Bundler 4.0.4#9247
hsbt merged 12 commits into4.0from
release/4.0.4

Conversation

@hsbt
Copy link
Copy Markdown
Member

@hsbt hsbt commented Jan 15, 2026

It's release day!

hsbt added 12 commits January 15, 2026 09:28
Fix fragile tests

(cherry picked from commit b261932)
Support Ruby 4.1

(cherry picked from commit 569c5c7)
Remove date require from rebuild command

(cherry picked from commit cc460f5)
Retain current bundler version on `bundle clean`

(cherry picked from commit 56f1dd7)
Test with Ruby 4.0 and update the latest stable versions of 3.x

(cherry picked from commit 904d734)
Fix dependency source bug in bundler

(cherry picked from commit 769c025)
Validate more options for add sub-command

(cherry picked from commit e7cb043)
Add a missing "require 'etc'" statement:

(cherry picked from commit 07c459c)
Copilot AI review requested due to automatic review settings January 15, 2026 00:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR prepares RubyGems 4.0.4 and Bundler 4.0.4 for release. The changes include version bumps, bug fixes, and preparation for future Ruby versions.

Changes:

  • Version bumps from 4.0.3 to 4.0.4 for both RubyGems and Bundler
  • Bug fixes for missing require statement, dependency source handling, and bundle clean behavior
  • Added validation for bundler add command options
  • Support for Ruby 4.1 in platform detection
  • Updated CI workflows with new Ruby versions and GitHub Actions

Reviewed changes

Copilot reviewed 24 out of 35 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
lib/rubygems.rb Updates RubyGems version to 4.0.4
bundler/lib/bundler/version.rb Updates Bundler version to 4.0.4
lib/rubygems/installer.rb Adds missing require 'etc' with LoadError fallback
lib/rubygems/commands/rebuild_command.rb Removes unused require 'date'
bundler/lib/bundler/cli/add.rb Adds validation for conflicting git/github and branch/ref options
bundler/lib/bundler/definition.rb Fixes dependency source resolution for component gems when switching sources
bundler/lib/bundler/runtime.rb Preserves current bundler version during bundle clean
bundler/lib/bundler/rubygems_integration.rb Fixes version comparison in find_bundler by converting to string
bundler/lib/bundler/current_ruby.rb Extends support from Ruby 4.0 to Ruby 4.0-4.1
test/rubygems/test_gem_commands_*.rb Fixes test assertions for nmake by adding space before -j flag
bundler/spec/install/gemfile/sources_spec.rb Adds tests for switching gem sources from rubygems to git/path
bundler/spec/commands/clean_spec.rb Adds test for preserving current bundler version
bundler/spec/commands/add_spec.rb Adds tests for new option validation
bundler/spec/bundler/current_ruby_spec.rb Adds Ruby 4.1 platform support
CHANGELOG.md Documents changes for 4.0.4 release
bundler/CHANGELOG.md Documents Bundler changes for 4.0.4 release
tool/bundler/*.lock Updates bundled with version to 4.0.4
bundler/spec/realworld/fixtures/*/Gemfile.lock Updates bundled with version to 4.0.4
.github/workflows/*.yml Updates ruby-setup-ruby action and Ruby versions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CHANGELOG.md

### Bug fixes:

* Add a missing "require 'etc'" statement:. Pull request
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

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

There is an extra colon after "statement" that should be removed. The sentence should end with "statement." instead of "statement:."

Suggested change
* Add a missing "require 'etc'" statement:. Pull request
* Add a missing "require 'etc'" statement. Pull request

Copilot uses AI. Check for mistakes.
@hsbt hsbt merged commit 2b06b46 into 4.0 Jan 15, 2026
94 checks passed
@hsbt hsbt deleted the release/4.0.4 branch January 15, 2026 01:13
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.

2 participants