Skip to content

Commit 956acb9

Browse files
committed
CI: Use latest Bundler to support Ruby head
Ruby 4.1.0dev (head) removed Pathname::SEPARATOR_PAT, which caused Bundler 2.4.22 (specified in Gemfile.lock) to fail with a NameError. By setting 'bundler: latest', setup-ruby will install a version of Bundler compatible with the running Ruby version, resolving the incompatibility in the head build while maintaining Ruby 2.7 support. Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 69fc951 commit 956acb9

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
3131
with:
3232
ruby-version: ${{ matrix.ruby }}
33-
bundler-cache: true
33+
bundler: latest
3434
- name: Run tests
3535
run: bundle exec rake test
3636
- name: Upload coverage results

Gemfile.lock

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,3 @@ DEPENDENCIES
180180
vcr
181181
webmock
182182
yajl-ruby
183-
184-
BUNDLED WITH
185-
2.4.22

0 commit comments

Comments
 (0)