Skip to content

Commit 9f9b1ae

Browse files
committed
Added Rails 7
1 parent 6ddc145 commit 9f9b1ae

File tree

5 files changed

+26
-3
lines changed

5 files changed

+26
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ jobs:
2020
strategy:
2121
matrix:
2222
ruby-version: ['2.5', '2.6', '2.7', '3.0']
23-
gemfile: [ar_52, ar_60, ar_61]
23+
gemfile: [ar_52, ar_60, ar_61, ar_70]
2424
exclude:
2525
- ruby-version: '3.0'
2626
gemfile: ar_52
27+
- ruby-version: '2.5'
28+
gemfile: ar_70
29+
- ruby-version: '2.6'
30+
gemfile: ar_70
2731
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
2832
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
2933
steps:

Appraisals

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ appraise 'ar-61' do
1414
gem 'activerecord', '~> 6.1.0'
1515
gem 'activesupport', '~> 6.1.0'
1616
end
17+
18+
appraise 'ar-70' do
19+
gem 'activerecord', '~> 7.0.0'
20+
gem 'activesupport', '~> 7.0.0'
21+
end

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ When you have tree based data in your application, you always to struggle with r
1212

1313
Luckily, there is already a SQL standard that makes it very easy to retrieve data in the traditional parent/child relation. Currently this is only supported in sqlite and Postgres. With this it is possible to query complete trees without the need of extra tables or indices.
1414

15+
## Supported environments
16+
ActsAsRecursiveTree currently supports following ActiveRecord versions and is tested for compatibility:
17+
* ActiveRecord 5.2.x
18+
* ActiveRecord 6.0.x
19+
* ActiveRecord 6.1.x
20+
* ActiveRecord 7.0.x
1521

1622
## Installation
1723

acts_as_recursive_tree.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
2424
spec.test_files = spec.files.grep(%r{^spec/})
2525
spec.require_paths = ['lib']
2626

27-
spec.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 7.0'
28-
spec.add_runtime_dependency 'activesupport', '>= 5.2.0', '< 7.0'
27+
spec.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 7.1'
28+
spec.add_runtime_dependency 'activesupport', '>= 5.2.0', '< 7.1'
2929
spec.add_runtime_dependency 'zeitwerk', '>= 2.4'
3030

3131
spec.add_development_dependency 'appraisal', '~> 2.4'

gemfiles/ar_70.gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activerecord", "~> 7.0.0"
6+
gem "activesupport", "~> 7.0.0"
7+
8+
gemspec path: "../"

0 commit comments

Comments
 (0)