Skip to content

Commit 7a753d0

Browse files
luchihoratiujoshcooper
authored andcommitted
(maint) Update rubygems and remove unnecessary step
This commit updates rubygems to latest version to avoid the following error: ``` Your RubyGems version (2.5.2.3)) has a bug that prevents `required_ruby_version` from working for Bundler. Any scripts that use `gem install bundler` will break as soon as Bundler drops support for your Ruby version. Please upgrade RubyGems... ``` This commit also removes an unnecessary step that installed `bundler` a second time since the `ruby/setup-ruby@v1` action now also installs bundler. (cherry picked from commit 8f99927) Removed `--silent` argument as it's not supported in all rubygem versions
1 parent ae7ff0a commit 7a753d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
with:
3030
ruby-version: ${{ matrix.cfg.ruby }}
3131

32-
- name: Install bundler and gems
32+
- name: Update rubygems and install gems
3333
run: |
34-
gem install bundler
34+
gem update --system --no-document
3535
bundle config set without packaging documentation
3636
bundle install --jobs 4 --retry 3
3737

.github/workflows/rspec_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
with:
3434
ruby-version: ${{ matrix.cfg.ruby }}
3535

36-
- name: Install bundler and gems
36+
- name: Update rubygems and install gems
3737
run: |
38-
gem install bundler
38+
gem update --system --no-document
3939
bundle config set without packaging documentation
4040
bundle install --jobs 4 --retry 3
4141

0 commit comments

Comments
 (0)