From 1a694a9a72a7b8f2a2704afb8406334a041df8f8 Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Fri, 8 Nov 2024 01:12:00 +0100 Subject: [PATCH] Add support for Rails 8.0 --- .github/workflows/ci.yml | 4 ++++ Appraisals | 7 +++++++ Gemfile | 2 +- gemfiles/rails_8.0.gemfile | 27 +++++++++++++++++++++++++++ 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 gemfiles/rails_8.0.gemfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5be856..216fc83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Appraisals b/Appraisals index e1fe53a..80de537 100644 --- a/Appraisals +++ b/Appraisals @@ -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 @@ -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. @@ -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 diff --git a/Gemfile b/Gemfile index 0eae0a6..ef90bad 100644 --- a/Gemfile +++ b/Gemfile @@ -24,4 +24,4 @@ gem 'rubocop-rspec' gem 'rubocop-rspec_rails' gem 'simplecov' gem 'sprockets-rails' -gem 'sqlite3', '~> 1.5.0' +gem 'sqlite3', '~> 2.1.0' diff --git a/gemfiles/rails_8.0.gemfile b/gemfiles/rails_8.0.gemfile new file mode 100644 index 0000000..6d61251 --- /dev/null +++ b/gemfiles/rails_8.0.gemfile @@ -0,0 +1,27 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git" +gem "capybara" +gem "carrierwave" +gem "cuprite" +gem "database_cleaner" +gem "guard-rspec" +gem "jquery-rails" +gem "puma" +gem "rake" +gem "rspec-rails" +gem "rspec-retry" +gem "rubocop" +gem "rubocop-capybara" +gem "rubocop-performance" +gem "rubocop-rake" +gem "rubocop-rspec" +gem "rubocop-rspec_rails" +gem "simplecov" +gem "sprockets-rails" +gem "sqlite3", "~> 2.1.0" +gem "rails", "~> 8.0.0" + +gemspec path: "../"