Skip to content

Commit

Permalink
Add support for Rails 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Dec 15, 2024
1 parent b94235b commit cea41cf
Show file tree
Hide file tree
Showing 8 changed files with 199 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .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_8.0
- rails_7.2
- rails_7.1
- rails_7.0
Expand All @@ -93,9 +94,16 @@ jobs:
# - trilogy
exclude:
# Rails 7.2 needs Ruby > 3.1
- rails: rails_7.2
- rails: 'rails_7.2'
ruby: '3.0'

# Rails 8.0 needs Ruby > 3.2
- rails: 'rails_8.0'
ruby: '3.0'

- rails: 'rails_8.0'
ruby: '3.1'

# Disabled for now because of build error:
# /opt/hostedtoolcache/Ruby/3.0.7/x64/lib/ruby/3.0.0/psych.rb:457:in
# `parse_stream': undefined method `parse' for #<Psych::Parser:0x000055b6cc7b6898
Expand Down
39 changes: 39 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,42 @@ appraise 'rails_7.2_with_postgis' do
gem 'pg'
gem 'activerecord-postgis-adapter', git: 'https://github.com/rgeo/activerecord-postgis-adapter.git'
end

###############
# RAILS 8.0.0 #
###############

appraise 'rails_8.0_with_postgresql' do
gem 'rails', '~> 8.0.0'
gem 'pg'
end

appraise 'rails_8.0_with_sqlite3' do
gem 'rails', '~> 8.0.0'
gem 'sqlite3'
remove_gem 'pg'
end

appraise 'rails_8.0_with_mysql2' do
gem 'rails', '~> 8.0.0'
gem 'mysql2'
remove_gem 'pg'
end

appraise 'rails_8.0_with_trilogy' do
gem 'rails', '~> 8.0.0'
gem 'activerecord-trilogy-adapter'
remove_gem 'pg'
end

appraise 'rails_8.0_with_oracle_enhanced' do
gem 'rails', '~> 8.0.0'
gem 'activerecord-oracle_enhanced-adapter', git: 'https://github.com/rsim/oracle-enhanced.git'
remove_gem 'pg'
end

appraise 'rails_8.0_with_postgis' do
gem 'rails', '~> 8.0.0'
gem 'pg'
gem 'activerecord-postgis-adapter', git: 'https://github.com/rgeo/activerecord-postgis-adapter.git'
end
25 changes: 25 additions & 0 deletions gemfiles/rails_8.0_with_mysql2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
gem "combustion"
gem "database_cleaner"
gem "factory_bot"
gem "faker"
gem "generator_spec"
gem "puma"
gem "rake"
gem "rspec"
gem "rspec-retry"
gem "simplecov"
gem "guard-rspec", require: false
gem "rubocop", require: false
gem "rubocop-factory_bot", require: false
gem "rubocop-performance", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false
gem "rails", "~> 8.0.0"
gem "mysql2"

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

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
gem "combustion"
gem "database_cleaner"
gem "factory_bot"
gem "faker"
gem "generator_spec"
gem "puma"
gem "rake"
gem "rspec"
gem "rspec-retry"
gem "simplecov"
gem "guard-rspec", require: false
gem "rubocop", require: false
gem "rubocop-factory_bot", require: false
gem "rubocop-performance", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false
gem "rails", "~> 8.0.0"
gem "activerecord-oracle_enhanced-adapter", git: "https://github.com/rsim/oracle-enhanced.git"

gemspec path: "../"
26 changes: 26 additions & 0 deletions gemfiles/rails_8.0_with_postgis.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.git"
gem "combustion"
gem "database_cleaner"
gem "factory_bot"
gem "faker"
gem "generator_spec"
gem "puma"
gem "rake"
gem "rspec"
gem "rspec-retry"
gem "simplecov"
gem "pg"
gem "guard-rspec", require: false
gem "rubocop", require: false
gem "rubocop-factory_bot", require: false
gem "rubocop-performance", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false
gem "rails", "~> 8.0.0"
gem "activerecord-postgis-adapter", git: "https://github.com/rgeo/activerecord-postgis-adapter.git"

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

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
gem "combustion"
gem "database_cleaner"
gem "factory_bot"
gem "faker"
gem "generator_spec"
gem "puma"
gem "rake"
gem "rspec"
gem "rspec-retry"
gem "simplecov"
gem "pg"
gem "guard-rspec", require: false
gem "rubocop", require: false
gem "rubocop-factory_bot", require: false
gem "rubocop-performance", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false
gem "rails", "~> 8.0.0"

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

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
gem "combustion"
gem "database_cleaner"
gem "factory_bot"
gem "faker"
gem "generator_spec"
gem "puma"
gem "rake"
gem "rspec"
gem "rspec-retry"
gem "simplecov"
gem "guard-rspec", require: false
gem "rubocop", require: false
gem "rubocop-factory_bot", require: false
gem "rubocop-performance", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false
gem "rails", "~> 8.0.0"
gem "sqlite3"

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

source "https://rubygems.org"

gem "appraisal", git: "https://github.com/thoughtbot/appraisal.git"
gem "combustion"
gem "database_cleaner"
gem "factory_bot"
gem "faker"
gem "generator_spec"
gem "puma"
gem "rake"
gem "rspec"
gem "rspec-retry"
gem "simplecov"
gem "guard-rspec", require: false
gem "rubocop", require: false
gem "rubocop-factory_bot", require: false
gem "rubocop-performance", require: false
gem "rubocop-rake", require: false
gem "rubocop-rspec", require: false
gem "rails", "~> 8.0.0"
gem "activerecord-trilogy-adapter"

gemspec path: "../"

0 comments on commit cea41cf

Please sign in to comment.