Skip to content

Commit

Permalink
Add support for Rails 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Nov 8, 2024
1 parent a0d50fa commit bd33c45
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ jobs:
- '3.1'
- 'head'
rails:
- rails_8.0
- rails_7.2
- rails_7.1
- rails_7.0
exclude:
- ruby: '3.1'
rails: 'rails_8.0'

env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.rails }}.gemfile
Expand Down
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

appraise 'rails_7.0' do
gem 'rails', '~> 7.0.0'
gem 'sqlite3', '~> 1.5.0'

# Fix: LoadError: cannot load such file -- base64
install_if '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.3.0") }' do
Expand All @@ -15,6 +16,7 @@ end

appraise 'rails_7.1' do
gem 'rails', '~> 7.1.0'
gem 'sqlite3', '~> 1.5.0'

# Fix:
# warning: logger was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.5.0.
Expand All @@ -26,4 +28,9 @@ end

appraise 'rails_7.2' do
gem 'rails', '~> 7.2.0'
gem 'sqlite3', '~> 1.5.0'
end

appraise 'rails_8.0' do
gem 'rails', '~> 8.0.0'
end
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ gem 'rubocop-rake'
gem 'rubocop-rspec'
gem 'rubocop-rspec_rails'
gem 'simplecov'
gem 'sqlite3', '~> 1.5.0'
gem 'sqlite3', '~> 2.1.0'
19 changes: 19 additions & 0 deletions gemfiles/rails_8.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
gem "database_cleaner"
gem "guard-rspec"
gem "rake"
gem "rspec-rails"
gem "rubocop"
gem "rubocop-performance"
gem "rubocop-rake"
gem "rubocop-rspec"
gem "rubocop-rspec_rails"
gem "simplecov"
gem "sqlite3", "~> 2.1.0"
gem "rails", "~> 8.0.0"

gemspec path: "../"

0 comments on commit bd33c45

Please sign in to comment.