Skip to content

Commit

Permalink
drop ar 5_2
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Apr 16, 2021
1 parent 2ff497e commit 98ca707
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 22 deletions.
8 changes: 2 additions & 6 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
%w(5.2.4.5 6.0.3.6 6.1.3.1).each do |ar_version|
%w(6.0.3.6 6.1.3.1).each do |ar_version|
appraise "gemfile-#{ar_version.split('.').first(2).join}" do
gem "activerecord", ar_version
gem "pg"
gem "mysql2"
if ar_version < "5.2"
gem "sqlite3", "~> 1.3.13"
else
gem "sqlite3"
end
gem "sqlite3"
end
end
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'

gemspec

gem "activerecord", '~> 5.2.4.5'
gem "activerecord", '~> 6.0.3.6'
gem "coveralls", require: false
gem "mysql2"
gem "pg"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ NOTE:

- Ancestry 2.x supports Rails 4.1 and earlier
- Ancestry 3.x supports Rails 5.0 and 4.2
- Ancestry 4.0 only supports rails 5.0 and higher
- Ancestry 4.x only supports rails 6.0 and higher

# Installation

Expand Down Expand Up @@ -132,8 +132,8 @@ The has_ancestry method supports the following options:
By default, primary keys only match integers ([0-9]+)
:touch Instruct Ancestry to touch the ancestors of a node when it changes, to
invalidate nested key-based caches. (default: false)
:counter_cache Boolean whether to create counter cache column accessor.
Default column name is `children_count`.
:counter_cache Boolean whether to create counter cache column accessor.
Default column name is `children_count`.
Pass symbol to use different column name (default: false)

# (Named) Scopes
Expand Down
2 changes: 1 addition & 1 deletion ancestry.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ EOF
s.require_paths = ["lib"]

s.required_ruby_version = '>= 2.0.0'
s.add_runtime_dependency 'activerecord', '>= 5.2.4.5'
s.add_runtime_dependency 'activerecord', '>= 6.0.3.6'
s.add_development_dependency 'appraisal'
s.add_development_dependency 'minitest'
s.add_development_dependency 'rake', '~> 13.0'
Expand Down
11 changes: 0 additions & 11 deletions gemfiles/gemfile_52.gemfile

This file was deleted.

0 comments on commit 98ca707

Please sign in to comment.