diff --git a/.circleci/config.yml b/.circleci/config.yml index 025e27a..6c6e52f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,6 +12,7 @@ workflows: matrix: parameters: ruby_version: + - '3.4.2' - '3.3.0' - '3.2.1' - '3.1.3' diff --git a/Appraisals b/Appraisals index 3c3f4d8..f55420e 100644 --- a/Appraisals +++ b/Appraisals @@ -1,7 +1,7 @@ # frozen_string_literal: true case RUBY_VERSION -when '3.1.3', '3.2.1', '3.3.0' +when '3.1.3', '3.2.1', '3.3.0', '3.4.2' appraise "ruby-#{RUBY_VERSION}_activerecord61" do source 'https://rubygems.org' do gem 'activerecord', '~> 6.1.0' @@ -25,6 +25,12 @@ when '3.1.3', '3.2.1', '3.3.0' gem 'activerecord', '~> 7.2.0' end end + + appraise "ruby-#{RUBY_VERSION}_activerecord80" do + source 'https://rubygems.org' do + gem 'activerecord', '~> 8.0.0' + end +end else raise "Unsupported Ruby version #{RUBY_VERSION}" end diff --git a/Gemfile b/Gemfile index 953da69..8f6cba5 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,7 @@ source 'https://rubygems.org' # global source source 'https://rubygems.org' do - gem 'activesupport', '>= 6.1', '< 7.3' + gem 'activesupport', '>= 6.1', '< 8.1' gem 'appraisal', '>= 2.5', '< 3' gem 'bundler', '>= 2.2', '< 3' gem 'debug', '>= 1.9', '< 2' diff --git a/store_base_sti_class.gemspec b/store_base_sti_class.gemspec index c20222f..dfc2b80 100644 --- a/store_base_sti_class.gemspec +++ b/store_base_sti_class.gemspec @@ -15,7 +15,7 @@ Gem::Specification.new do |spec| compatibility.' MSG spec.summary = <<~MSG - Modifies ActiveRecord 6.1.x - 7.2.x with the ability to store the actual class (instead of the base class) in + Modifies ActiveRecord 6.1.x - 8.0.x with the ability to store the actual class (instead of the base class) in polymorhic _type columns when using STI. MSG spec.homepage = 'https://github.com/appfolio/store_base_sti_class' @@ -23,8 +23,8 @@ Gem::Specification.new do |spec| spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] } spec.require_paths = ['lib'] - spec.required_ruby_version = Gem::Requirement.new('< 3.4') + spec.required_ruby_version = Gem::Requirement.new('< 3.5') spec.metadata['allowed_push_host'] = 'https://rubygems.org' - spec.add_dependency('activerecord', ['>= 6.1', '< 7.3']) + spec.add_dependency('activerecord', ['>= 6.1', '< 8.1']) end