From e8513a2f6c28862b896b00f4afb0e8b4f1af01d9 Mon Sep 17 00:00:00 2001 From: Nikolay Grebenshikov Date: Wed, 14 Aug 2024 13:32:33 +0700 Subject: [PATCH] Allow Rails 7.2.x (#66) * Allow Rails 7.2.x * Remove Ruby 3.0 from tests and add Ruby 3.3 * Fix tests for Rails 7.1 --------- Co-authored-by: Nikolay --- .github/workflows/ci.yaml | 4 ++-- Appraisals | 6 ++++++ db-query-matchers.gemspec | 4 ++-- gemfiles/rails_7_1.gemfile | 2 +- gemfiles/rails_7_2.gemfile | 8 ++++++++ 5 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 gemfiles/rails_7_2.gemfile diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bed1e09..351d6db 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,8 +12,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.0', '3.1', '3.2'] - gemfile: [ rails_6_1, rails_7_0, rails_7_1 ] + ruby-version: ['3.1', '3.2', '3.3'] + gemfile: [ rails_6_1, rails_7_0, rails_7_1, rails_7_2 ] experimental: [false] env: diff --git a/Appraisals b/Appraisals index d11e047..a9f6167 100644 --- a/Appraisals +++ b/Appraisals @@ -15,3 +15,9 @@ appraise "rails_7_1" do gem "activesupport", version gem "sqlite3", ">= 1.4" end + +appraise "rails_7_2" do + version = "~> 7.2.0" + gem "activesupport", version + gem "sqlite3", ">= 1.4" +end diff --git a/db-query-matchers.gemspec b/db-query-matchers.gemspec index f87323b..57814f2 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.2" + spec.add_runtime_dependency 'activesupport', '>= 4.0', "< 7.3" spec.add_runtime_dependency 'rspec', '>= 3.0' - spec.add_development_dependency 'activerecord', '>= 4.0', "< 7.2" + spec.add_development_dependency 'activerecord', '>= 4.0', "< 7.3" 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 c7dd698..a506d24 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_7_2.gemfile b/gemfiles/rails_7_2.gemfile new file mode 100644 index 0000000..e3f147c --- /dev/null +++ b/gemfiles/rails_7_2.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 7.2.0" +gem "sqlite3", ">= 1.4" + +gemspec path: "../"