Skip to content

Commit 515f625

Browse files
committed
Fix Bundler version compatibility for all Ruby versions
Use conditional Bundler version selection: - Bundler 2.5.21 for Ruby 3.0+ (compatible with RubyGems 3.5.21) - Bundler 2.3.26 for Ruby 2.5-2.7 (maintains existing compatibility) This resolves the 'already initialized constant Gem::Platform' warnings on newer Ruby versions while ensuring older Ruby versions continue to work.
1 parent f769f00 commit 515f625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test-macos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
ruby-version: ${{ matrix.ruby }}
4949
rubygems: 3.3.26
50-
bundler: 2.5.21 # updated for compatibility with RubyGems 3.5.21
50+
bundler: ${{ matrix.ruby >= '3.0' && '2.5.21' || '2.3.26' }} # 2.5.21 for Ruby 3.0+, 2.3.26 for older versions
5151
# Specify gem version for 3.4 because default version (3.6.0.dev)
5252
# leads to an incorrect gem root path
5353
- if: ${{ matrix.ruby == '3.3' || matrix.ruby == '3.4' }}

0 commit comments

Comments
 (0)