Skip to content

Commit

Permalink
Drop EOL Ruby and Rails versions
Browse files Browse the repository at this point in the history
[Ruby 2.7 and older][] is end of life.

[Rails 6.0 and older][] is end of life.

Truffleruby does have [a documented support cycle][], but since I don't
track this Oracle project I'm not going to maintain it. Use the latest
instead.

I cannot find an up-to-date support cycle roadmap for JRuby, so instead
I've gone with the [9.4 branch][].

Don't support JRuby on Rails main. JRuby has their own bug tracker for
chasing Rails' main branch. We should stick to supporting known releases
in our project.

ActiveRecord JDBC Adapter does not support 7.1 in a release, so don't
support 7.1 yet.

[Ruby 2.7 and older]: https://www.ruby-lang.org/en/downloads/branches/
[Rails 6.0 and older]: https://guides.rubyonrails.org/maintenance_policy.html
[a documented support cycle]: https://www.graalvm.org/release-calendar/
[9.4 branch]: https://www.jruby.org/download
  • Loading branch information
mike-burns committed Dec 29, 2023
1 parent 3289647 commit 211c088
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 749 deletions.
55 changes: 3 additions & 52 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,70 +11,21 @@ jobs:
fail-fast: false
matrix:
ruby:
- jruby-9.2.16.0
- jruby-9.4
- truffleruby
- "3.2"
- "3.1"
- "3.0"
- "2.7"
- "2.6"
- "2.5"
rails:
- "5.0"
- "5.1"
- "5.2"
- "6.0"
- "6.1"
- "7.0"
- "7.1"
- main
exclude:
- ruby: 2.5
rails: "7.0"
- ruby: 2.5
- ruby: jruby-9.4
rails: "7.1"
- ruby: 2.5
- ruby: jruby-9.4
rails: main
- ruby: 2.6
rails: "7.0"
- ruby: 2.6
rails: "7.1"
- ruby: 2.6
rails: main
- ruby: jruby-9.2.16.0
rails: "7.0"
- ruby: jruby-9.2.16.0
rails: "7.1"
- ruby: jruby-9.2.16.0
rails: main
- ruby: "3.0"
rails: "5.0"
- ruby: "3.0"
rails: "5.1"
- ruby: "3.0"
rails: "5.2"
- ruby: truffleruby
rails: "5.0"
- ruby: truffleruby
rails: "5.1"
- ruby: truffleruby
rails: "5.2"
- ruby: "3.1"
rails: "5.0"
- ruby: "3.1"
rails: "5.1"
- ruby: "3.1"
rails: "5.2"
- ruby: "3.1"
rails: "6.0"
- ruby: "3.2"
rails: "5.0"
- ruby: "3.2"
rails: "5.1"
- ruby: "3.2"
rails: "5.2"
- ruby: "3.2"
rails: "6.0"

runs-on: 'ubuntu-latest'

Expand Down
32 changes: 5 additions & 27 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
appraise "5.0" do
gem "activerecord", "~> 5.0.7"
gem "activerecord-jdbcsqlite3-adapter", platforms: [:jruby]
gem "sqlite3", "~> 1.3.6", platforms: [:ruby]
end

appraise "5.1" do
gem "activerecord", "~> 5.1.7"
gem "activerecord-jdbcsqlite3-adapter", platforms: [:jruby]
gem "sqlite3", platforms: [:ruby]
end

appraise "5.2" do
gem "activerecord", "~> 5.2.3"
gem "activerecord-jdbcsqlite3-adapter", platforms: [:jruby]
gem "sqlite3", platforms: [:ruby]
end

appraise "6.0" do
gem "activerecord", "~> 6.0.0"
gem "activerecord-jdbcsqlite3-adapter", "~> 60.0", platforms: [:jruby]
gem "sqlite3", platforms: [:ruby]
end

appraise "6.1" do
gem "activerecord", "~> 6.1.0"
gem "activerecord-jdbcsqlite3-adapter", "~> 61.0", platforms: [:jruby]
Expand All @@ -30,18 +6,20 @@ end

appraise "7.0" do
gem "activerecord", "~> 7.0.0"
gem "activerecord-jdbcsqlite3-adapter", "~> 61.0", platforms: [:jruby]
gem "activerecord-jdbcsqlite3-adapter", "~> 70.0", platforms: [:jruby]
gem "sqlite3", platforms: [:ruby]
end

appraise "7.1" do
gem "activerecord", "~> 7.1.0"
gem "activerecord-jdbcsqlite3-adapter", "~> 70.0", platforms: [:jruby]
# When version 71 is released, uncomment this and also allow it in the GitHub
# Action build workflow.
# gem "activerecord-jdbcsqlite3-adapter", "~> 71.0", platforms: [:jruby]
gem "sqlite3", platforms: [:ruby]
end

appraise "main" do
gem "activerecord", git: "https://github.com/rails/rails.git", branch: "main"
gem "activerecord-jdbcsqlite3-adapter", "~> 61.0", platforms: [:jruby]
gem "activerecord-jdbcsqlite3-adapter", "~> 70.0", platforms: [:jruby]
gem "sqlite3", platforms: [:ruby]
end
9 changes: 0 additions & 9 deletions gemfiles/5.0.gemfile

This file was deleted.

157 changes: 0 additions & 157 deletions gemfiles/5.0.gemfile.lock

This file was deleted.

9 changes: 0 additions & 9 deletions gemfiles/5.1.gemfile

This file was deleted.

Loading

0 comments on commit 211c088

Please sign in to comment.