Skip to content

Commit

Permalink
Remove unsupported Rails/Ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
iffyuva committed Nov 22, 2024
1 parent 6b3bc83 commit f48f976
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 114 deletions.
86 changes: 7 additions & 79 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,90 +15,18 @@ jobs:
# https://rubyonrails.org/category/releases
# https://rubyonrails.org/maintenance
rails:
- 4.2.0 # not maintained by rails team
- 5.0.0 # not maintained by rails team
- 5.1.0 # not maintained by rails team
- 5.2.0 # not maintained by rails team
- 6.0.0
- 6.1.0
- 7.0.0
- 7.1.0
- 7.2.0
- 8.0.0
# https://www.ruby-lang.org/en/downloads/
ruby:
- 2.4.10 # not maintained by ruby team
- 2.5.9 # not maintained by ruby team
- 2.6.10 # not maintained by ruby team
- 2.7.8 # security maintenance phase
- 3.0.6
- 3.1.4
- 3.2.2
exclude:
# rails 4.2.x needs bundler version < 2.0
- rails: 4.2.0
ruby: 2.4.10
- rails: 4.2.0
ruby: 2.5.9
- rails: 4.2.0
ruby: 2.6.10
- rails: 4.2.0
ruby: 2.7.8
- rails: 4.2.0
ruby: 3.0.6
- rails: 4.2.0
ruby: 3.1.4
- rails: 4.2.0
ruby: 3.2.2
# rails 5.x.x won't support Ruby 3+
# https://github.com/rails/rails/issues/38426
- rails: 5.0.0
ruby: 3.0.6
- rails: 5.0.0
ruby: 3.1.4
- rails: 5.0.0
ruby: 3.2.2
- rails: 5.1.0
ruby: 3.0.6
- rails: 5.1.0
ruby: 3.1.4
- rails: 5.1.0
ruby: 3.2.2
- rails: 5.2.0
ruby: 3.0.6
- rails: 5.2.0
ruby: 3.1.4
- rails: 5.2.0
ruby: 3.2.2
# rails 5.2.0 has issues with psych gem with AR
# https://github.com/rails/rails/issues/45590
- rails: 5.2.0
ruby: 2.5.9
# Rails 6 needs ruby >= 2.5.0
- rails: 6.0.0
ruby: 2.4.10
# Rails 6.1 needs ruby >= 2.5.0
- rails: 6.1.0
ruby: 2.4.10
# Rails 7 needs ruby >= 2.7.0
- rails: 7.0.0
ruby: 2.4.10
- rails: 7.0.0
ruby: 2.5.9
- rails: 7.0.0
ruby: 2.6.10
# Rails 8 needs ruby >= 3.1.0
- rails: 8.0.0
ruby: 2.4.10
- rails: 8.0.0
ruby: 2.5.9
- rails: 8.0.0
ruby: 2.6.10
- rails: 8.0.0
ruby: 2.7.8
- rails: 8.0.0
ruby: 3.0.6
- 3.1.6
- 3.2.6
- 3.3.6
services:
postgres:
image: postgres:11-alpine
image: postgres:17.1-alpine
ports:
- "5432:5432"
env:
Expand All @@ -112,7 +40,7 @@ jobs:
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'

gemspec

gem 'rails', '~> 8.0.0'
gem 'rails', "~> #{ENV['RAILS_VERSION']}"
gem 'pg'
gem 'ostruct'

Expand Down
7 changes: 0 additions & 7 deletions gemfiles/Gemfile.rails-4.2.x

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/Gemfile.rails-5.0.x

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/Gemfile.rails-5.1.x

This file was deleted.

6 changes: 0 additions & 6 deletions gemfiles/Gemfile.rails-5.2.x

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
source 'https://rubygems.org'

gemspec path: '..'
gem 'rails', '~> 6.0.0'
gem 'rails', '~> 7.1.0'
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
source 'https://rubygems.org'

gemspec path: '..'
gem 'rails', '~> 6.1.0'
gem 'rails', '~> 7.2.0'
5 changes: 0 additions & 5 deletions rapidfire.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ Gem::Specification.new do |s|
s.files = Dir['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md']
s.test_files = Dir['spec/**/*']

s.post_install_message = <<-PIM
There is breaking delimiter change when upgrading to version 2.0.0.
Please see Readme for more information.
PIM

s.add_dependency 'rails', '>= 7.0.0'
s.add_dependency 'active_model_serializers', '~> 0.10.0'
s.add_development_dependency 'sqlite3'
Expand Down

0 comments on commit f48f976

Please sign in to comment.