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
n-rodriguez committed Sep 6, 2024
1 parent a8fab0e commit 571dd9e
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
- '3.0'
- 'head'
rails:
- rails_7.2.0
- rails_7.1.0
- rails_7.0.8
adapter:
Expand All @@ -87,6 +88,10 @@ jobs:
- postgis
# - trilogy
exclude:
- rails: rails_7.2.0
adapter: oracle_enhanced
- rails: rails_7.2.0
ruby: '3.0'
- rails: rails_7.1.0
adapter: oracle_enhanced

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

It's tested against :

* Rails: 7.0.4 / 7.1.0
* Rails: 7.0.4 / 7.1.0 / 7.2.0
* Ruby: 3.0 / 3.1 / 3.2 / 3.3
* Databases: MySQL 8 / SQLite3 / Postgresql 16 / Oracle XE 11.2 (thanks to [travis-oracle](https://github.com/cbandy/travis-oracle))
* Adapters: sqlite / mysql2 / trilogy / postgres / postgis / oracle
Expand Down
21 changes: 21 additions & 0 deletions appraisal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,24 @@
drb:
version: ''
install_if: '-> { Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0") }'


7.2.0:
sqlite3:
version: ~> 1.5.0
install_if: '-> { ENV["DB_ADAPTER"] == "sqlite3" }'
mysql2:
version: ''
install_if: '-> { ENV["DB_ADAPTER"] == "mysql2" }'
activerecord-trilogy-adapter:
version: ''
install_if: '-> { ENV["DB_ADAPTER"] == "trilogy" }'
# activerecord-oracle_enhanced-adapter:
# version: ~> 7.0.0
# install_if: '-> { ENV["DB_ADAPTER"] == "oracle_enhanced" }'
# ruby-oci8:
# version: ''
# install_if: '-> { ENV["DB_ADAPTER"] == "oracle_enhanced" }'
activerecord-postgis-adapter:
version: ''
install_if: '-> { ENV["DB_ADAPTER"] == "postgis" }'
42 changes: 42 additions & 0 deletions gemfiles/rails_7.2.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/n-rodriguez/appraisal.git", branch: "wip/combustion"
gem "combustion"
gem "database_cleaner"
gem "factory_bot"
gem "faker"
gem "generator_spec"
gem "guard-rspec"
gem "pg"
gem "pry"
gem "puma"
gem "rake"
gem "rspec"
gem "rspec-retry"
gem "rubocop"
gem "rubocop-factory_bot"
gem "rubocop-performance"
gem "rubocop-rake"
gem "rubocop-rspec"
gem "simplecov"
gem "rails", "7.2.0"

install_if -> { ENV["DB_ADAPTER"] == "sqlite3" } do
gem "sqlite3", "~> 1.5.0"
end

install_if -> { ENV["DB_ADAPTER"] == "mysql2" } do
gem "mysql2"
end

install_if -> { ENV["DB_ADAPTER"] == "trilogy" } do
gem "activerecord-trilogy-adapter"
end

install_if -> { ENV["DB_ADAPTER"] == "postgis" } do
gem "activerecord-postgis-adapter"
end

gemspec path: "../"

0 comments on commit 571dd9e

Please sign in to comment.