From ad5c90a5bd9c4d8f9f0f19fcadb21daa9ce337a3 Mon Sep 17 00:00:00 2001 From: aki77 Date: Wed, 13 Nov 2024 14:48:34 +0900 Subject: [PATCH] Allow Rails 8.0.x (#69) --- .github/workflows/ci.yaml | 5 ++++- Appraisals | 6 ++++++ db-query-matchers.gemspec | 4 ++-- gemfiles/rails_7_1.gemfile | 2 +- gemfiles/rails_8_0.gemfile | 8 ++++++++ 5 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 gemfiles/rails_8_0.gemfile diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 351d6db..df39270 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,8 +13,11 @@ jobs: strategy: matrix: ruby-version: ['3.1', '3.2', '3.3'] - gemfile: [ rails_6_1, rails_7_0, rails_7_1, rails_7_2 ] + gemfile: [ rails_6_1, rails_7_0, rails_7_1, rails_7_2, rails_8_0 ] experimental: [false] + exclude: + - ruby-version: "3.1" + gemfile: "rails_8_0" env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile diff --git a/Appraisals b/Appraisals index a9f6167..4f49e79 100644 --- a/Appraisals +++ b/Appraisals @@ -21,3 +21,9 @@ appraise "rails_7_2" do gem "activesupport", version gem "sqlite3", ">= 1.4" end + +appraise "rails_8_0" do + version = "~> 8.0.0" + gem "activesupport", version + gem "sqlite3", ">= 1.4" +end diff --git a/db-query-matchers.gemspec b/db-query-matchers.gemspec index 57814f2..9434b51 100644 --- a/db-query-matchers.gemspec +++ b/db-query-matchers.gemspec @@ -19,10 +19,10 @@ Gem::Specification.new do |spec| spec.files = Dir['lib/**/*.rb'] spec.require_paths = ['lib'] - spec.add_runtime_dependency 'activesupport', '>= 4.0', "< 7.3" + spec.add_runtime_dependency 'activesupport', '>= 4.0', "< 8.1" spec.add_runtime_dependency 'rspec', '>= 3.0' - spec.add_development_dependency 'activerecord', '>= 4.0', "< 7.3" + spec.add_development_dependency 'activerecord', '>= 4.0', "< 8.1" spec.add_development_dependency 'sqlite3' spec.add_development_dependency "appraisal", "~> 2.0" diff --git a/gemfiles/rails_7_1.gemfile b/gemfiles/rails_7_1.gemfile index a506d24..c7dd698 100644 --- a/gemfiles/rails_7_1.gemfile +++ b/gemfiles/rails_7_1.gemfile @@ -3,6 +3,6 @@ source "https://rubygems.org" gem "activesupport", "~> 7.1.0" -gem "sqlite3", "~> 1.4" +gem "sqlite3", ">= 1.4" gemspec path: "../" diff --git a/gemfiles/rails_8_0.gemfile b/gemfiles/rails_8_0.gemfile new file mode 100644 index 0000000..f21ff06 --- /dev/null +++ b/gemfiles/rails_8_0.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 8.0.0" +gem "sqlite3", ">= 1.4" + +gemspec path: "../"