Skip to content

Commit

Permalink
💚 Fix bundler versions per Ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Feb 20, 2025
1 parent 9860cb9 commit 14f36cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Update bundler
env:
RUBY_VERSION: ${{ matrix.ruby }}
# See: https://dev.to/galtzo/matrix-ruby-gem-bundler-etc-4kk7
run: |
case ${RUBY_VERSION} in
1.8|1.9|2.0|2.1|2.2)
Expand Down
12 changes: 11 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,15 @@ elsif ruby_version < Gem::Version.new("2.7")
else
# Ruby >= 2.7 we can run style / lint checks via rubocop-gradual with rubocop-lts rules for Ruby 1.8+.
# This means we can develop on modern Ruby but remain compatible with ancient Ruby.
eval_gemfile "gemfiles/modular/style.gemfile"
# TODO: Replace individual style gems below with modular gemfile, once eval_gemfile support is added to appraisal.
# eval_gemfile "gemfiles/modular/style.gemfile"
# We run rubocop on the latest version of Ruby,
# but in support of the oldest supported version of Ruby
gem "rubocop-lts", "~> 0.1", ">= 0.1.1" # Style and Linting support for Ruby >= 1.8
gem "rubocop-packaging", "~> 0.5", ">= 0.5.2"
gem "rubocop-rspec", "~> 3.2"
gem "standard", ">= 1.35.1", "!= 1.41.1", "!= 1.42.0"

# Std Lib extractions
gem "benchmark", "~> 0.4" # Removed from Std Lib in Ruby 3.5
end

0 comments on commit 14f36cd

Please sign in to comment.