Skip to content

Commit 06dc80e

Browse files
committed
Drop legacy Rails and Ruby support
- Drop Ruby < 3.1.0 - Drop Rails < 7.0.0
1 parent 5f7c202 commit 06dc80e

File tree

3 files changed

+6
-38
lines changed

3 files changed

+6
-38
lines changed

.github/workflows/ci.yml

+2-34
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,13 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
ruby: [3.3, 3.2, 3.1, '3.0', 2.7, 2.6, ruby-head]
14-
rails: ['7.2.0', '7.1.0', '7.0.0', '6.1.0', '6.0.0', main]
13+
ruby: [3.3, 3.2, 3.1, ruby-head]
14+
rails: ['7.2.0', '7.1.0', '7.0.0', main]
1515
exclude:
1616
- ruby: ruby-head
1717
rails: '7.0.0'
18-
- ruby: ruby-head
19-
rails: '6.1.0'
20-
- ruby: ruby-head
21-
rails: '6.0.0'
22-
- ruby: 3.3
23-
rails: '6.1.0'
24-
- ruby: 3.3
25-
rails: '6.0.0'
26-
- ruby: 3.2
27-
rails: '6.0.0'
2818
- ruby: 3.1
29-
rails: '6.0.0'
30-
- ruby: 3.0
31-
rails: main
32-
- ruby: 3.0
33-
rails: '7.2.0'
34-
- ruby: 3.0
35-
rails: '6.0.0'
36-
- ruby: 2.7
3719
rails: main
38-
- ruby: 2.7
39-
rails: '7.2.0'
40-
- ruby: 2.6
41-
rails: main
42-
- ruby: 2.6
43-
rails: '7.2.0'
44-
- ruby: 2.6
45-
rails: '7.1.0'
46-
- ruby: 2.6
47-
rails: '7.0.0'
48-
- ruby: 2.6
49-
rails: '6.1.0'
50-
- ruby: 2.6
51-
rails: '6.0.0'
5220

5321
env:
5422
RAILS_VERSION: ${{ matrix.rails }}

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
source 'https://rubygems.org'
22

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

66
rails =
77
case rails_version
88
when 'main'
99
{ github: 'rails/rails' }
1010
when 'default'
11-
'>= 6.0'
11+
'>= 7.0'
1212
else
1313
"~> #{ENV['RAILS_VERSION']}"
1414
end

jsonapi-rails.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Gem::Specification.new do |spec|
1616
spec.files = Dir['README.md', 'lib/**/*']
1717
spec.require_path = 'lib'
1818

19-
spec.required_ruby_version = '>= 2.5.0'
19+
spec.required_ruby_version = '>= 3.1.0'
2020

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

24-
spec.add_development_dependency 'rails', '>= 6.0'
24+
spec.add_development_dependency 'rails', '>= 7.0'
2525
spec.add_development_dependency 'sqlite3', '>= 1.3'
2626
spec.add_development_dependency 'rake', '>= 11.3'
2727
spec.add_development_dependency 'rspec-rails', '>= 4.0'

0 commit comments

Comments
 (0)