Skip to content

Commit

Permalink
Add Rails 7.2 support (#279)
Browse files Browse the repository at this point in the history
Adds Rails 7.2 to the Appraisals and CI matrix.
  • Loading branch information
jas14 authored Feb 26, 2025
1 parent fe13bf1 commit 3001963
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/super_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
- rails_6_1
- rails_7_0
- rails_7_1
- rails_7_2
- no_rails
rspec_appraisal:
- rspec_lt_3_10
Expand Down
9 changes: 8 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ appraisals = {
gem 'rails', '~> 7.1.0'
gem 'sqlite3', '~> 1.4.0', platform: %i[ruby mswin mingw]
end,
rails_7_2:
proc do
instance_eval(&rails_dependencies)

gem 'rails', '~> 7.2.0'
gem 'sqlite3', '~> 1.4.0', platform: %i[ruby mswin mingw]
end,
no_rails: proc {},
rspec_lt_3_10:
proc do |with_rails|
Expand Down Expand Up @@ -66,7 +73,7 @@ appraisals = {
end
}

rails_appraisals = %i[no_rails rails_6_1 rails_7_0 rails_7_1]
rails_appraisals = %i[no_rails rails_6_1 rails_7_0 rails_7_1 rails_7_2]
rspec_appraisals = %i[rspec_lt_3_10 rspec_gte_3_10 rspec_gte_3_13]

rails_appraisals.each do |rails_appraisal|
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Features

- Add official Rails 7.1 support. [#278](https://github.com/splitwise/super_diff/pull/278)
- Add official Rails 7.2 support. [#279](https://github.com/splitwise/super_diff/pull/279)

### Other changes

Expand Down
30 changes: 30 additions & 0 deletions gemfiles/rails_7_2_rspec_gte_3_10.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal"
gem "bundler-audit"
gem "childprocess"
gem "climate_control"
gem "prettier_print"
gem "pry-byebug", platform: :mri
gem "pry-nav", platform: :jruby
gem "rake"
gem "rubocop"
gem "syntax_tree"
gem "syntax_tree-haml"
gem "syntax_tree-rbs"
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
gem "jdbc-sqlite3", platform: :jruby
gem "net-ftp"
gem "combustion"
gem "rails", "~> 7.2.0"
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
gem "rspec", "3.12.0"
gem "rspec-core", "3.12.0"
gem "rspec-expectations", "3.12.3"
gem "rspec-mocks", "3.12.0"
gem "rspec-support", "3.12.0"
gem "rspec-rails"

gemspec path: "../"
30 changes: 30 additions & 0 deletions gemfiles/rails_7_2_rspec_gte_3_13.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal"
gem "bundler-audit"
gem "childprocess"
gem "climate_control"
gem "prettier_print"
gem "pry-byebug", platform: :mri
gem "pry-nav", platform: :jruby
gem "rake"
gem "rubocop"
gem "syntax_tree"
gem "syntax_tree-haml"
gem "syntax_tree-rbs"
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
gem "jdbc-sqlite3", platform: :jruby
gem "net-ftp"
gem "combustion"
gem "rails", "~> 7.2.0"
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
gem "rspec", "3.13.0"
gem "rspec-core", "3.13.0"
gem "rspec-expectations", "3.13.0"
gem "rspec-mocks", "3.13.0"
gem "rspec-support", "3.13.0"
gem "rspec-rails"

gemspec path: "../"
26 changes: 26 additions & 0 deletions gemfiles/rails_7_2_rspec_lt_3_10.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal"
gem "bundler-audit"
gem "childprocess"
gem "climate_control"
gem "prettier_print"
gem "pry-byebug", platform: :mri
gem "pry-nav", platform: :jruby
gem "rake"
gem "rubocop"
gem "syntax_tree"
gem "syntax_tree-haml"
gem "syntax_tree-rbs"
gem "activerecord-jdbcsqlite3-adapter", platform: :jruby
gem "jdbc-sqlite3", platform: :jruby
gem "net-ftp"
gem "combustion"
gem "rails", "~> 7.2.0"
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
gem "rspec", "~> 3.9.0"
gem "rspec-rails"

gemspec path: "../"

0 comments on commit 3001963

Please sign in to comment.