From a3940e72460f7ecc358b74b0f80ec0143389bee5 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Mon, 30 Sep 2024 10:50:26 +0100 Subject: [PATCH] feat!: support rails 8.0 --- .github/workflows/spec.yml | 4 ++-- Appraisals | 12 ++++++------ acts-as-taggable-on.gemspec | 2 +- ...verecord_7.0.gemfile => activerecord_8.0.gemfile} | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) rename gemfiles/{activerecord_7.0.gemfile => activerecord_8.0.gemfile} (88%) diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index dfe89530..db761559 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -17,9 +17,9 @@ jobs: - 3.2 - 3.1 gemfile: + - gemfiles/activerecord_8.0.gemfile - gemfiles/activerecord_7.2.gemfile - gemfiles/activerecord_7.1.gemfile - - gemfiles/activerecord_7.0.gemfile db: - mysql - postgresql @@ -27,7 +27,7 @@ jobs: include: - ruby: truffleruby-head db: postgresql - gemfile: gemfiles/activerecord_7.0.gemfile + gemfile: gemfiles/activerecord_8.0.gemfile - ruby: truffleruby-head db: postgresql gemfile: gemfiles/activerecord_7.1.gemfile diff --git a/Appraisals b/Appraisals index f5ab540a..8e03d798 100644 --- a/Appraisals +++ b/Appraisals @@ -1,21 +1,21 @@ # frozen_string_literal: true -appraise 'activerecord-7.0' do - gem 'activerecord', '~> 7.0.1' +appraise 'activerecord-7.1' do + gem 'activerecord', '~> 7.1.0' gem 'pg' gem 'sqlite3', '~> 1.4' gem 'mysql2', '~> 0.5' end -appraise 'activerecord-7.1' do - gem 'activerecord', '~> 7.1.0' +appraise 'activerecord-7.2' do + gem 'activerecord', '~> 7.2.0' gem 'pg' gem 'sqlite3', '~> 1.4' gem 'mysql2', '~> 0.5' end -appraise 'activerecord-7.2' do - gem 'activerecord', '~> 7.2.0' +appraise 'activerecord-8.0' do + gem 'activerecord', '~> 8.0.0.beta1' gem 'pg' gem 'sqlite3', '~> 1.4' gem 'mysql2', '~> 0.5' diff --git a/acts-as-taggable-on.gemspec b/acts-as-taggable-on.gemspec index 53b1eaf7..7ea66f60 100644 --- a/acts-as-taggable-on.gemspec +++ b/acts-as-taggable-on.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |gem| gem.post_install_message = File.read('UPGRADING.md') end - gem.add_runtime_dependency 'activerecord', '>= 7.0', '< 8.0' + gem.add_runtime_dependency 'activerecord', '>= 7.1', '< 8.1' gem.add_runtime_dependency 'zeitwerk', '>= 2.4', '< 3.0' gem.add_development_dependency 'rspec-rails' diff --git a/gemfiles/activerecord_7.0.gemfile b/gemfiles/activerecord_8.0.gemfile similarity index 88% rename from gemfiles/activerecord_7.0.gemfile rename to gemfiles/activerecord_8.0.gemfile index 8a4d1dd6..3a558c38 100644 --- a/gemfiles/activerecord_7.0.gemfile +++ b/gemfiles/activerecord_8.0.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gem "activerecord", "~> 7.0.1" +gem "activerecord", "~> 8.0.0.beta1" gem "pg" gem "sqlite3", "~> 1.4" gem "mysql2", "~> 0.5"