Skip to content

Commit f86ae1d

Browse files
committed
Remove support for end-of-life Ruby and Rails versions
These removed versions of Ruby and Rails are no longer supported, not even for security vulnerabilities. Users should be encourage to migrate away from these EOL environments. End users can continue to use older versions of the audited gem if they absolutely must use EOL Ruby and Rails versions, so they will not be locked out. These Ruby version add a lot of combinations to the growing test matrix. This wastes resources on GitHub actions and contributors' local environments. This makes the time to verify CI take longer. Dropping EOL versions will also allow the project to evolve to use newer syntax and library capabilities with fewer compatibility concerns. Those kind of changes were not included here to keep the scope minimal.
1 parent a04d8be commit f86ae1d

File tree

3 files changed

+5
-73
lines changed

3 files changed

+5
-73
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -12,84 +12,19 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0, 3.1]
15+
ruby: [2.7, 3.0, 3.1]
1616
appraisal:
17-
- rails50
18-
- rails51
19-
- rails52
2017
- rails60
2118
- rails61
2219
- rails70
2320
db: [POSTGRES, MYSQL, SQLITE]
2421
exclude:
25-
# MySQL has issues on Ruby 2.3
26-
# https://github.com/ruby/setup-ruby/issues/150
27-
- ruby: 2.3
28-
db: MYSQL
29-
30-
# PostgreSQL is segfaulting on 2.3
31-
# Doesn't seem worth solving.
32-
- ruby: 2.3
33-
db: POSTGRES
34-
35-
# Rails 5.0 supports Ruby 2.2-2.4
36-
- appraisal: rails50
37-
ruby: 2.5
38-
- appraisal: rails50
39-
ruby: 2.6
40-
- appraisal: rails50
41-
ruby: 2.7
42-
- appraisal: rails50
43-
ruby: 3.0
44-
- appraisal: rails50
45-
ruby: 3.1
46-
47-
# Rails 5.1 supports Ruby 2.2-2.5
48-
- appraisal: rails51
49-
ruby: 2.6
50-
- appraisal: rails51
51-
ruby: 2.7
52-
- appraisal: rails51
53-
ruby: 3.0
54-
- appraisal: rails51
55-
ruby: 3.1
56-
57-
# Rails 5.2 supports Ruby 2.2-2.5
58-
- appraisal: rails52
59-
ruby: 2.6
60-
- appraisal: rails52
61-
ruby: 2.7
62-
- appraisal: rails52
63-
ruby: 3.0
64-
- appraisal: rails52
65-
ruby: 3.1
66-
6722
# Rails 6.0 supports Ruby 2.5-2.7
68-
- appraisal: rails60
69-
ruby: 2.3
70-
- appraisal: rails60
71-
ruby: 2.4
7223
- appraisal: rails60
7324
ruby: 3.0
7425
- appraisal: rails60
7526
ruby: 3.1
7627

77-
# Rails 6.1 supports Ruby 2.5+
78-
- appraisal: rails61
79-
ruby: 2.3
80-
- appraisal: rails61
81-
ruby: 2.4
82-
83-
# Rails 7 supports Ruby 2.7+
84-
- appraisal: rails70
85-
ruby: 2.3
86-
- appraisal: rails70
87-
ruby: 2.4
88-
- appraisal: rails70
89-
ruby: 2.5
90-
- appraisal: rails70
91-
ruby: 2.6
92-
9328
services:
9429
postgres:
9530
image: postgres

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@ Audited
88
**Audited** (previously acts_as_audited) is an ORM extension that logs all changes to your models. Audited can also record who made those changes, save comments and associate models related to the changes.
99

1010

11-
Audited currently (5.x) works with Rails 7.0, 6.1, 6.0, 5.2, 5.1, and 5.0.
11+
Audited currently (5.x) works with Rails 7.0, 6.1, 6.0.
1212

13+
For Rails 5, use gem version 5.x
1314
For Rails 4, use gem version 4.x
1415
For Rails 3, use gem version 3.0 or see the [3.0-stable branch](https://github.com/collectiveidea/audited/tree/3.0-stable).
1516

1617
## Supported Rubies
1718

1819
Audited supports and is [tested against](https://github.com/collectiveidea/audited/actions/workflows/ci.yml) the following Ruby versions:
1920

20-
* 2.3 (only tested on Sqlite due to testing issues with other DBs)
21-
* 2.4
22-
* 2.5
23-
* 2.6
2421
* 2.7
2522
* 3.0
2623
* 3.1

audited.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Gem::Specification.new do |gem|
1414

1515
gem.files = `git ls-files`.split($\).reject { |f| f =~ /(\.gemspec)/ }
1616

17-
gem.required_ruby_version = ">= 2.3.0"
17+
gem.required_ruby_version = ">= 2.7.0"
1818

19-
gem.add_dependency "activerecord", ">= 5.0", "< 7.1"
19+
gem.add_dependency "activerecord", ">= 6.0", "< 7.1"
2020

2121
gem.add_development_dependency "appraisal"
2222
gem.add_development_dependency "rails", ">= 5.0", "< 7.1"

0 commit comments

Comments
 (0)