Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for end-of-life Ruby and Rails versions #654

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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