From 615e7602b19563353670d89136b09f62b2405361 Mon Sep 17 00:00:00 2001 From: Jan Graichen Date: Fri, 13 Dec 2024 02:27:27 +0100 Subject: [PATCH] chore: Add Rails 7.2 and 8.0 to test matrix --- .github/workflows/test.yml | 19 +++++++++++++------ Appraisals | 18 ++++++++++++++++++ CHANGELOG.md | 2 ++ gemfiles/rails_72.gemfile | 28 ++++++++++++++++++++++++++++ gemfiles/rails_80.gemfile | 28 ++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+), 6 deletions(-) create mode 100644 gemfiles/rails_72.gemfile create mode 100644 gemfiles/rails_80.gemfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef9366c..c16ea36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,9 +21,10 @@ jobs: - faraday-2.0 - msgr - rack - - rails-6.1 - - rails-7.0 + - rails-8.0 - rails-7.1 + - rails-7.0 + - rails-6.1 - redis-4.0 - redis-5.0 - redis-client @@ -46,15 +47,18 @@ jobs: - suite: rack spec: --tag probe:rack gemfile: gemfiles/core.gemfile - - suite: rails-6.1 + - suite: rails-8.0 spec: --tag probe:rails --tag ~probe - gemfile: gemfiles/rails_61.gemfile + gemfile: gemfiles/rails_80.gemfile + - suite: rails-7.1 + spec: --tag probe:rails --tag ~probe + gemfile: gemfiles/rails_71.gemfile - suite: rails-7.0 spec: --tag probe:rails --tag ~probe gemfile: gemfiles/rails_70.gemfile - - suite: rails-7.1 + - suite: rails-6.1 spec: --tag probe:rails --tag ~probe - gemfile: gemfiles/rails_71.gemfile + gemfile: gemfiles/rails_61.gemfile - suite: redis-4.0 spec: --tag probe:redis gemfile: gemfiles/redis_40.gemfile @@ -73,6 +77,9 @@ jobs: - suite: sidekiq-7 spec: --tag probe:sidekiq gemfile: gemfiles/sidekiq_70.gemfile + exclude: + - ruby: "3.1" + gemfile: gemfiles/rails_80.gemfile env: BUNDLE_GEMFILE: ${{ matrix.gemfile }} diff --git a/Appraisals b/Appraisals index 8850fb6..2f9662f 100644 --- a/Appraisals +++ b/Appraisals @@ -20,6 +20,24 @@ appraise 'faraday-20' do end end +appraise 'rails-80' do + remove_gem 'rubocop' + + group :test do + gem 'rails', '~> 8.0.0' + gem 'sqlite3', '~> 2.0' + end +end + +appraise 'rails-72' do + remove_gem 'rubocop' + + group :test do + gem 'rails', '~> 7.2.0' + gem 'sqlite3', '~> 1.4' + end +end + appraise 'rails-71' do remove_gem 'rubocop' diff --git a/CHANGELOG.md b/CHANGELOG.md index aae24a5..58bcd9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Added - Increase compatibility of Kernel#require patch +- Add support for Rails 7.2 +- Add support for Rails 8.0 ## [2.0.0] - 2024-02-29 diff --git a/gemfiles/rails_72.gemfile b/gemfiles/rails_72.gemfile new file mode 100644 index 0000000..65b1379 --- /dev/null +++ b/gemfiles/rails_72.gemfile @@ -0,0 +1,28 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rake", "~> 13.0" + +group :test do + gem "rspec", "~> 3.6" + gem "timecop", "~> 0.9.1" + gem "faraday" + gem "msgr" + gem "rails", "~> 7.2.0" + gem "redis" + gem "redis-client" + gem "restify" + gem "sidekiq" + gem "webmock" + gem "sqlite3", "~> 1.4" +end + +group :development do + gem "appraisal" + gem "rake-release", "~> 1.3.0" + gem "pry", require: false + gem "pry-byebug", require: false +end + +gemspec path: "../" diff --git a/gemfiles/rails_80.gemfile b/gemfiles/rails_80.gemfile new file mode 100644 index 0000000..3d410b5 --- /dev/null +++ b/gemfiles/rails_80.gemfile @@ -0,0 +1,28 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rake", "~> 13.0" + +group :test do + gem "rspec", "~> 3.6" + gem "timecop", "~> 0.9.1" + gem "faraday" + gem "msgr" + gem "rails", "~> 8.0.0" + gem "redis" + gem "redis-client" + gem "restify" + gem "sidekiq" + gem "webmock" + gem "sqlite3", "~> 2.0" +end + +group :development do + gem "appraisal" + gem "rake-release", "~> 1.3.0" + gem "pry", require: false + gem "pry-byebug", require: false +end + +gemspec path: "../"