From 7730ee5e56a648e61f6dfc1c0173c95d94b4b39c Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Fri, 8 Nov 2024 01:43:19 +0100 Subject: [PATCH] Add support for Rails 8.0 (#441) --- .github/workflows/ci.yml | 10 ++++++++++ Appraisals | 9 +++++++++ Gemfile | 2 +- gemfiles/rails_8.0.gemfile | 25 +++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 gemfiles/rails_8.0.gemfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4240cc50..81992d8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: - '2.7' - '2.6' rails: + - rails_8.0 - rails_7.2 - rails_7.1 - rails_7.0 @@ -48,6 +49,15 @@ jobs: - ruby: '3.0' rails: 'rails_7.2' + - ruby: '2.6' + rails: 'rails_8.0' + - ruby: '2.7' + rails: 'rails_8.0' + - ruby: '3.0' + rails: 'rails_8.0' + - 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 ca37810e..e892118b 100644 --- a/Appraisals +++ b/Appraisals @@ -2,20 +2,29 @@ appraise 'rails_6.0' do gem 'rails', '~> 6.0.0' + gem 'sqlite3', '~> 1.5.0' end appraise 'rails_6.1' do gem 'rails', '~> 6.1.0' + gem 'sqlite3', '~> 1.5.0' end appraise 'rails_7.0' do gem 'rails', '~> 7.0.0' + gem 'sqlite3', '~> 1.5.0' end appraise 'rails_7.1' do gem 'rails', '~> 7.1.0' + gem 'sqlite3', '~> 1.5.0' 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 2493a684..e86c4713 100644 --- a/Gemfile +++ b/Gemfile @@ -15,7 +15,7 @@ gem 'rspec_junit_formatter' gem 'rspec' gem 'rspec-rails' gem 'simplecov' -gem 'sqlite3', '~> 1.5.0' +gem 'sqlite3', '~> 2.1.0' gem 'webmock' if RUBY_VERSION =~ /2.5.*/ diff --git a/gemfiles/rails_8.0.gemfile b/gemfiles/rails_8.0.gemfile new file mode 100644 index 00000000..48367555 --- /dev/null +++ b/gemfiles/rails_8.0.gemfile @@ -0,0 +1,25 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git" +gem "aws-sdk-core" +gem "aws-sdk-s3" +gem "combustion" +gem "fog-aws" +gem "google-cloud-storage" +gem "rails", "~> 8.0.0" +gem "rake" +gem "rspec_junit_formatter" +gem "rspec" +gem "rspec-rails" +gem "simplecov" +gem "sqlite3", "~> 2.1.0" +gem "webmock" +gem "nokogiri" + +group :test do + gem "byebug" +end + +gemspec path: "../"