Skip to content

Commit

Permalink
Drop ruby <6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Oct 23, 2024
1 parent 78d63a8 commit d5d5127
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 51 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/run_test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ jobs:
ruby: [3.2, 3.3]
# additional tests
include:
# EOL 6/2022 (ruby >= 2.2.2, <2.7)
- ruby: 2.6
activerecord: 52
# EOL 2023
- ruby: 2.7
activerecord: 60
# rails 6.1 and 7.0 have different ruby versions
- ruby: 2.7
activerecord: 61
- ruby: "3.0"
activerecord: 61
env:
Expand Down Expand Up @@ -97,7 +88,6 @@ jobs:
UPDATE_STRATEGY: sql
run: |
bundle exec rake
if: ${{ matrix.activerecord != 52 }}
- name: run pg tests (ANCESTRY_COLUMN=ancestry_alt)
env:
DB: pg
Expand All @@ -111,8 +101,6 @@ jobs:
UPDATE_STRATEGY: sql
run: |
bundle exec rake
FORMAT=${{ matrix.format }} UPDATE_STRATEGY=sql bundle exec rake
if: ${{ matrix.activerecord != 52 }}
- name: run mysql tests
env:
DB: mysql2
Expand Down
13 changes: 4 additions & 9 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
# on a mac using:
# bundle config --global build.mysql2 "--with-mysql-dir=$(brew --prefix mysql)"

%w[5.2.8 6.0.6 6.1.7 7.0.8 7.1.3 7.2.1].each do |ar_version|
%w[7.0.8 7.1.3 7.2.1].each do |ar_version|
appraise "gemfile-#{ar_version.split('.').first(2).join}" do
gem 'activerecord', "~> #{ar_version}"
# active record 5.2 uses ruby 2.6
# active record 6.x uses ruby 2.7 (sometimes 3.0)
# so we are targeting the ruby version indirectly through active record
if ar_version < "7.0"
gem "sqlite3", "~> 1.6.9"
else
# sqlite3 v 2.0 is causing trouble with rails
gem "sqlite3", "< 2.0"
end

# sqlite3 v 2.0 is causing trouble with rails
gem "sqlite3", "< 2.0"
end
end
10 changes: 0 additions & 10 deletions gemfiles/gemfile_52.gemfile

This file was deleted.

10 changes: 0 additions & 10 deletions gemfiles/gemfile_60.gemfile

This file was deleted.

10 changes: 0 additions & 10 deletions gemfiles/gemfile_61.gemfile

This file was deleted.

0 comments on commit d5d5127

Please sign in to comment.