Skip to content

Commit

Permalink
Remove support for end-of-life Ruby and Rails versions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jdufresne committed Jan 31, 2023
1 parent 7fcc902 commit 1e0fd88
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 79 deletions.
73 changes: 1 addition & 72 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,92 +10,21 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2]
ruby: [2.7, 3.0, 3.1, 3.2]
appraisal:
- rails50
- rails51
- rails52
- rails60
- rails61
- rails70
db: [POSTGRES, MYSQL, SQLITE]
exclude:
# MySQL has issues on Ruby 2.3
# https://github.com/ruby/setup-ruby/issues/150
- ruby: 2.3
db: MYSQL

# PostgreSQL is segfaulting on 2.3
# Doesn't seem worth solving.
- ruby: 2.3
db: POSTGRES

# Rails 5.0 supports Ruby 2.2-2.4
- appraisal: rails50
ruby: 2.5
- appraisal: rails50
ruby: 2.6
- appraisal: rails50
ruby: 2.7
- appraisal: rails50
ruby: 3.0
- appraisal: rails50
ruby: 3.1
- appraisal: rails50
ruby: 3.2

# Rails 5.1 supports Ruby 2.2-2.5
- appraisal: rails51
ruby: 2.6
- appraisal: rails51
ruby: 2.7
- appraisal: rails51
ruby: 3.0
- appraisal: rails51
ruby: 3.1
- appraisal: rails51
ruby: 3.2

# Rails 5.2 supports Ruby 2.2-2.5
- appraisal: rails52
ruby: 2.6
- appraisal: rails52
ruby: 2.7
- appraisal: rails52
ruby: 3.0
- appraisal: rails52
ruby: 3.1
- appraisal: rails52
ruby: 3.2

# Rails 6.0 supports Ruby 2.5-2.7
- appraisal: rails60
ruby: 2.3
- appraisal: rails60
ruby: 2.4
- appraisal: rails60
ruby: 3.0
- appraisal: rails60
ruby: 3.1
- appraisal: rails60
ruby: 3.2

# Rails 6.1 supports Ruby 2.5+
- appraisal: rails61
ruby: 2.3
- appraisal: rails61
ruby: 2.4

# Rails 7 supports Ruby 2.7+
- appraisal: rails70
ruby: 2.3
- appraisal: rails70
ruby: 2.4
- appraisal: rails70
ruby: 2.5
- appraisal: rails70
ruby: 2.6

services:
postgres:
image: postgres
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,16 @@ Audited
**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.


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

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

## Supported Rubies

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

* 2.3 (only tested on Sqlite due to testing issues with other DBs)
* 2.4
* 2.5
* 2.6
* 2.7
* 3.0
* 3.1
Expand Down
4 changes: 2 additions & 2 deletions audited.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Gem::Specification.new do |gem|

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

gem.required_ruby_version = ">= 2.3.0"
gem.required_ruby_version = ">= 2.7.0"

gem.add_dependency "activerecord", ">= 5.0", "< 7.1"
gem.add_dependency "activerecord", ">= 6.0", "< 7.1"

gem.add_development_dependency "appraisal"
gem.add_development_dependency "rails", ">= 5.0", "< 7.1"
Expand Down

0 comments on commit 1e0fd88

Please sign in to comment.