Skip to content

Commit

Permalink
Add Rails-7.1 to CI and drop support for Rails < 6.0 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojab authored Oct 7, 2023
1 parent e7d607f commit 108aa62
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 40 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ jobs:
fail-fast: false
matrix:
include:
- { ruby: '2.4', rails: '5.0' }
- { ruby: '2.5', rails: '5.1' }
- { ruby: '2.6', rails: '5.2' }
- { ruby: '2.7', rails: '6.0' }
- { ruby: '3.0', rails: '6.1' }
- { ruby: '3.1', rails: '7.0' }
- { ruby: '3.2', rails: '7.0' }
- { ruby: '3.2', rails: '7.1' }
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails.${{ matrix.rails }}.gemfile
Expand Down
2 changes: 1 addition & 1 deletion Appraisals
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%w[5.0 5.1 5.2 6.0 6.1 7.0].each do |version|
%w[6.0 6.1 7.0 7.1].each do |version|
appraise "rails.#{version}" do
gem 'activesupport', "~> #{version}.0"
gem 'activemodel', "~> #{version}.0"
Expand Down
14 changes: 0 additions & 14 deletions gemfiles/rails.5.1.gemfile

This file was deleted.

14 changes: 0 additions & 14 deletions gemfiles/rails.5.2.gemfile

This file was deleted.

6 changes: 3 additions & 3 deletions gemfiles/rails.5.0.gemfile → gemfiles/rails.7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

source "https://rubygems.org"

gem "activesupport", "~> 5.0.0"
gem "activemodel", "~> 5.0.0"
gem "activerecord", "~> 5.0.0"
gem "activesupport", "~> 7.1.0"
gem "activemodel", "~> 7.1.0"
gem "activerecord", "~> 7.1.0"

group :test do
gem "guard"
Expand Down
8 changes: 4 additions & 4 deletions granite-form.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = '>= 2.4.0'
gem.version = Granite::Form::VERSION

gem.add_development_dependency 'actionpack', '>= 5.0'
gem.add_development_dependency 'activerecord', '>= 5.0'
gem.add_development_dependency 'actionpack', '>= 6.0'
gem.add_development_dependency 'activerecord', '>= 6.0'
gem.add_development_dependency 'appraisal'
gem.add_development_dependency 'bump'
gem.add_development_dependency 'database_cleaner'
Expand All @@ -26,7 +26,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rubocop', '0.52.1'
gem.add_development_dependency 'uuidtools'

gem.add_runtime_dependency 'activemodel', '>= 5.0'
gem.add_runtime_dependency 'activesupport', '>= 5.0'
gem.add_runtime_dependency 'activemodel', '>= 6.0'
gem.add_runtime_dependency 'activesupport', '>= 6.0'
gem.add_runtime_dependency 'tzinfo'
end

0 comments on commit 108aa62

Please sign in to comment.