Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ workflows:
matrix:
parameters:
ruby_version:
- '3.4.2'
- '3.3.0'
- '3.2.1'
- '3.1.3'
Expand Down
8 changes: 7 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions store_base_sti_class.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ 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'
spec.license = 'MIT'
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