Skip to content

Commit

Permalink
test AR 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Oct 29, 2023
1 parent 2b1f088 commit 96ddaf0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 22 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
rails:
- activerecord_7.0
- activerecord_6.1
- activerecord_6.0
adapter:
- 'sqlite3:///:memory:'
- mysql2://root:root@0/closure_tree_test
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
fail-fast: false
matrix:
rails:
- activerecord_7.1
- activerecord_7.0
- activerecord_6.1
adapter:
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.0.5
ruby 3.0.6
22 changes: 9 additions & 13 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

appraise 'activerecord-6.0' do
gem 'activerecord', '~> 6.0.0'
appraise 'activerecord-6.1' do
gem 'activerecord', '~> 6.1.0'
platforms :ruby do
gem 'mysql2'
gem 'pg'
Expand All @@ -15,8 +15,8 @@ appraise 'activerecord-6.0' do
end
end

appraise 'activerecord-6.1' do
gem 'activerecord', '~> 6.1.0'
appraise 'activerecord-7.0' do
gem 'activerecord', '~> 7.0.0'
platforms :ruby do
gem 'mysql2'
gem 'pg'
Expand All @@ -30,18 +30,14 @@ appraise 'activerecord-6.1' do
end
end

appraise 'activerecord-7.0' do
gem 'activerecord', '~> 7.0.0'

appraise 'activerecord-7.1' do
gem 'activerecord', '~> 7.1.0'
platforms :ruby do
gem 'sqlite3'
gem 'mysql2'
gem 'trilogy'
gem 'pg'
gem 'sqlite3'
end

platforms :jruby do
gem 'activerecord-jdbcmysql-adapter'
gem 'activerecord-jdbcpostgresql-adapter'
gem 'activerecord-jdbcsqlite3-adapter'
end
end

Expand Down
15 changes: 8 additions & 7 deletions closure_tree.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require 'English'
require_relative 'lib/closure_tree/version'

Gem::Specification.new do |gem|
Expand All @@ -9,26 +10,26 @@ Gem::Specification.new do |gem|
gem.email = %w[[email protected] [email protected]]
gem.homepage = 'https://github.com/ClosureTree/closure_tree/'

gem.summary = %q(Easily and efficiently make your ActiveRecord model support hierarchies)
gem.summary = 'Easily and efficiently make your ActiveRecord model support hierarchies'
gem.description = gem.summary
gem.license = 'MIT'

gem.files = `git ls-files`.split($/).reject do |f|
f.match(%r{^(spec|img|gemfiles)})
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR).reject do |f|
f.match(/^(spec|img|gemfiles)/)
end

gem.test_files = gem.files.grep(%r{^spec/})
gem.test_files = gem.files.grep(%r{^spec/})
gem.required_ruby_version = '>= 2.7.7'

gem.add_runtime_dependency 'activerecord', '>= 6.0.0'
gem.add_runtime_dependency 'with_advisory_lock', '>= 4.0.0'
gem.add_runtime_dependency 'activerecord', '>= 6.1.0'
gem.add_runtime_dependency 'with_advisory_lock', '>= 5.0.0'

gem.add_development_dependency 'appraisal'
gem.add_development_dependency 'database_cleaner'
gem.add_development_dependency 'generator_spec'
gem.add_development_dependency 'parallel'
gem.add_development_dependency 'minitest'
gem.add_development_dependency 'minitest-reporters'
gem.add_development_dependency 'parallel'
gem.add_development_dependency 'rspec-instafail'
gem.add_development_dependency 'rspec-rails'
gem.add_development_dependency 'simplecov'
Expand Down

0 comments on commit 96ddaf0

Please sign in to comment.