Skip to content

Commit

Permalink
Drop legacy Rails and Ruby support
Browse files Browse the repository at this point in the history
- Drop Ruby < 3.1.0
- Drop Rails < 7.0.0
  • Loading branch information
tagliala committed Oct 2, 2024
1 parent 5f7c202 commit 06dc80e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 38 deletions.
36 changes: 2 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,13 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [3.3, 3.2, 3.1, '3.0', 2.7, 2.6, ruby-head]
rails: ['7.2.0', '7.1.0', '7.0.0', '6.1.0', '6.0.0', main]
ruby: [3.3, 3.2, 3.1, ruby-head]
rails: ['7.2.0', '7.1.0', '7.0.0', main]
exclude:
- ruby: ruby-head
rails: '7.0.0'
- ruby: ruby-head
rails: '6.1.0'
- ruby: ruby-head
rails: '6.0.0'
- ruby: 3.3
rails: '6.1.0'
- ruby: 3.3
rails: '6.0.0'
- ruby: 3.2
rails: '6.0.0'
- ruby: 3.1
rails: '6.0.0'
- ruby: 3.0
rails: main
- ruby: 3.0
rails: '7.2.0'
- ruby: 3.0
rails: '6.0.0'
- ruby: 2.7
rails: main
- ruby: 2.7
rails: '7.2.0'
- ruby: 2.6
rails: main
- ruby: 2.6
rails: '7.2.0'
- ruby: 2.6
rails: '7.1.0'
- ruby: 2.6
rails: '7.0.0'
- ruby: 2.6
rails: '6.1.0'
- ruby: 2.6
rails: '6.0.0'

env:
RAILS_VERSION: ${{ matrix.rails }}
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
source 'https://rubygems.org'

rails_version = ENV['RAILS_VERSION'] || "default"
require_sqlite3_1x = %w[7.0.0 6.1.0 6.0.0].include?(rails_version)
require_sqlite3_1x = %w[7.0.0].include?(rails_version)

rails =
case rails_version
when 'main'
{ github: 'rails/rails' }
when 'default'
'>= 6.0'
'>= 7.0'
else
"~> #{ENV['RAILS_VERSION']}"
end
Expand Down
4 changes: 2 additions & 2 deletions jsonapi-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
spec.files = Dir['README.md', 'lib/**/*']
spec.require_path = 'lib'

spec.required_ruby_version = '>= 2.5.0'
spec.required_ruby_version = '>= 3.1.0'

spec.add_dependency 'jsonapi-rb', '~> 0.5.0'
spec.add_dependency 'jsonapi-parser', '~> 0.1.0'

spec.add_development_dependency 'rails', '>= 6.0'
spec.add_development_dependency 'rails', '>= 7.0'
spec.add_development_dependency 'sqlite3', '>= 1.3'
spec.add_development_dependency 'rake', '>= 11.3'
spec.add_development_dependency 'rspec-rails', '>= 4.0'
Expand Down

0 comments on commit 06dc80e

Please sign in to comment.