Skip to content

Commit 14f36cd

Browse files
committed
💚 Fix bundler versions per Ruby version
- https://dev.to/galtzo/matrix-ruby-gem-bundler-etc-4kk7
1 parent 9860cb9 commit 14f36cd

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- name: Update bundler
3939
env:
4040
RUBY_VERSION: ${{ matrix.ruby }}
41+
# See: https://dev.to/galtzo/matrix-ruby-gem-bundler-etc-4kk7
4142
run: |
4243
case ${RUBY_VERSION} in
4344
1.8|1.9|2.0|2.1|2.2)

Gemfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,15 @@ elsif ruby_version < Gem::Version.new("2.7")
2727
else
2828
# Ruby >= 2.7 we can run style / lint checks via rubocop-gradual with rubocop-lts rules for Ruby 1.8+.
2929
# This means we can develop on modern Ruby but remain compatible with ancient Ruby.
30-
eval_gemfile "gemfiles/modular/style.gemfile"
30+
# TODO: Replace individual style gems below with modular gemfile, once eval_gemfile support is added to appraisal.
31+
# eval_gemfile "gemfiles/modular/style.gemfile"
32+
# We run rubocop on the latest version of Ruby,
33+
# but in support of the oldest supported version of Ruby
34+
gem "rubocop-lts", "~> 0.1", ">= 0.1.1" # Style and Linting support for Ruby >= 1.8
35+
gem "rubocop-packaging", "~> 0.5", ">= 0.5.2"
36+
gem "rubocop-rspec", "~> 3.2"
37+
gem "standard", ">= 1.35.1", "!= 1.41.1", "!= 1.42.0"
38+
39+
# Std Lib extractions
40+
gem "benchmark", "~> 0.4" # Removed from Std Lib in Ruby 3.5
3141
end

0 commit comments

Comments
 (0)