Skip to content

Commit

Permalink
Add support for Rails 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bihorco36 committed Oct 29, 2024
1 parent 51d63f9 commit b46a92f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
12 changes: 12 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ appraise 'rails-7-1' do
end
end

appraise 'rails-7-2' do
gem 'rails', '~> 7.2.0'
platforms :ruby do
gem 'sqlite3', '~> 1.6'
end
platforms :jruby do
gem 'activerecord-jdbc-adapter', '~> 61.0'
gem 'activerecord-jdbcpostgresql-adapter', '~> 61.0'
gem 'activerecord-jdbcmysql-adapter', '~> 61.0'
end
end

appraise 'rails-master' do
gem 'rails', git: 'https://github.com/rails/rails.git'
platforms :ruby do
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Nor the orginal [apartment](https://github.com/influitive/apartment) gem nor
the Rails 6 for by [ros-apartment](https://github.com/rails-on-services/apartment)
are maintained anymore.

Since we wanted to upgrade our application to Rails 7.1 we decided to fork
and start some development to support Rails 7.1. Because we don't have access
Since we wanted to upgrade our application to Rails 7.2 we decided to fork
and start some development to support Rails 7.2. Because we don't have access
to the apartment gem itself, the solution was to release it under a different
name but providing the exact same API as it was before.

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

source "http://rubygems.org"

gem "rails", "~> 7.2.0"

platforms :ruby do
gem "sqlite3", "~> 1.6"
end

platforms :jruby do
gem "activerecord-jdbc-adapter", "~> 61.0"
gem "activerecord-jdbcpostgresql-adapter", "~> 61.0"
gem "activerecord-jdbcmysql-adapter", "~> 61.0"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion puzzle-apartment.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/puzzle/apartment'
s.licenses = ['MIT']

s.add_dependency 'activerecord', '>= 6.1.0', '< 7.2'
s.add_dependency 'activerecord', '>= 6.1.0', '< 7.3'
s.add_dependency 'parallel', '>= 1.10'
s.add_dependency 'public_suffix', '>= 2.0.5'
s.add_dependency 'rack', '>= 1.3.6'
Expand Down

0 comments on commit b46a92f

Please sign in to comment.