From 019aeadb37fe56293f5d32c2a5c338dfa36ee8ed Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Sun, 2 Nov 2025 01:31:22 +0100 Subject: [PATCH] Add support for Rails 8.1 --- .github/workflows/ci.yml | 7 +++- .github/workflows/ci_oracle.yml | 5 +++ Appraisals | 39 +++++++++++++++++++ gemfiles/rails_8.1_with_mysql2.gemfile | 25 ++++++++++++ .../rails_8.1_with_oracle_enhanced.gemfile | 25 ++++++++++++ gemfiles/rails_8.1_with_postgis.gemfile | 26 +++++++++++++ gemfiles/rails_8.1_with_postgresql.gemfile | 25 ++++++++++++ gemfiles/rails_8.1_with_sqlite3.gemfile | 25 ++++++++++++ gemfiles/rails_8.1_with_trilogy.gemfile | 25 ++++++++++++ 9 files changed, 200 insertions(+), 2 deletions(-) create mode 100644 gemfiles/rails_8.1_with_mysql2.gemfile create mode 100644 gemfiles/rails_8.1_with_oracle_enhanced.gemfile create mode 100644 gemfiles/rails_8.1_with_postgis.gemfile create mode 100644 gemfiles/rails_8.1_with_postgresql.gemfile create mode 100644 gemfiles/rails_8.1_with_sqlite3.gemfile create mode 100644 gemfiles/rails_8.1_with_trilogy.gemfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d1a58d..830ab75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Setup Ruby uses: ruby/setup-ruby@v1 @@ -75,6 +75,7 @@ jobs: - '3.1' - 'head' rails: + - rails_8.1 - rails_8.0 - rails_7.2 - rails_7.1 @@ -92,10 +93,12 @@ jobs: # Rails 8.0 needs Ruby > 3.2 - rails: 'rails_8.0' ruby: '3.1' + - rails: 'rails_8.1' + ruby: '3.1' steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set DB Adapter env: diff --git a/.github/workflows/ci_oracle.yml b/.github/workflows/ci_oracle.yml index 7df46eb..9dd9db5 100644 --- a/.github/workflows/ci_oracle.yml +++ b/.github/workflows/ci_oracle.yml @@ -49,15 +49,20 @@ jobs: - '3.1' - 'head' rails: + - rails_8.1 - rails_8.0 - rails_7.2 - rails_7.1 adapter: - oracle_enhanced exclude: + # Rails 8.0 needs Ruby > 3.2 - rails: 'rails_8.0' ruby: '3.1' adapter: 'oracle_enhanced' + - rails: 'rails_8.1' + ruby: '3.1' + adapter: 'oracle_enhanced' steps: - name: Checkout diff --git a/Appraisals b/Appraisals index d39912b..f0e9428 100644 --- a/Appraisals +++ b/Appraisals @@ -116,3 +116,42 @@ appraise 'rails_8.0_with_postgis' do gem 'pg' gem 'activerecord-postgis-adapter', '~> 11.0.0' end + +############### +# RAILS 8.1.0 # +############### + +appraise 'rails_8.1_with_postgresql' do + gem 'rails', '~> 8.1.0' + gem 'pg' +end + +appraise 'rails_8.1_with_sqlite3' do + gem 'rails', '~> 8.1.0' + gem 'sqlite3' + remove_gem 'pg' +end + +appraise 'rails_8.1_with_mysql2' do + gem 'rails', '~> 8.1.0' + gem 'mysql2' + remove_gem 'pg' +end + +appraise 'rails_8.1_with_trilogy' do + gem 'rails', '~> 8.1.0' + gem 'activerecord-trilogy-adapter' + remove_gem 'pg' +end + +appraise 'rails_8.1_with_oracle_enhanced' do + gem 'rails', '~> 8.1.0' + gem 'activerecord-oracle_enhanced-adapter', git: 'https://github.com/rsim/oracle-enhanced.git' + remove_gem 'pg' +end + +appraise 'rails_8.1_with_postgis' do + gem 'rails', '~> 8.1.0' + gem 'pg' + gem 'activerecord-postgis-adapter', git: 'https://github.com/rgeo/activerecord-postgis-adapter.git' +end diff --git a/gemfiles/rails_8.1_with_mysql2.gemfile b/gemfiles/rails_8.1_with_mysql2.gemfile new file mode 100644 index 0000000..fca1326 --- /dev/null +++ b/gemfiles/rails_8.1_with_mysql2.gemfile @@ -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.1.0" +gem "mysql2" + +gemspec path: "../" diff --git a/gemfiles/rails_8.1_with_oracle_enhanced.gemfile b/gemfiles/rails_8.1_with_oracle_enhanced.gemfile new file mode 100644 index 0000000..fdf3306 --- /dev/null +++ b/gemfiles/rails_8.1_with_oracle_enhanced.gemfile @@ -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.1.0" +gem "activerecord-oracle_enhanced-adapter", git: "https://github.com/rsim/oracle-enhanced.git" + +gemspec path: "../" diff --git a/gemfiles/rails_8.1_with_postgis.gemfile b/gemfiles/rails_8.1_with_postgis.gemfile new file mode 100644 index 0000000..bf91c09 --- /dev/null +++ b/gemfiles/rails_8.1_with_postgis.gemfile @@ -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.1.0" +gem "activerecord-postgis-adapter", git: "https://github.com/rgeo/activerecord-postgis-adapter.git" + +gemspec path: "../" diff --git a/gemfiles/rails_8.1_with_postgresql.gemfile b/gemfiles/rails_8.1_with_postgresql.gemfile new file mode 100644 index 0000000..277c1cd --- /dev/null +++ b/gemfiles/rails_8.1_with_postgresql.gemfile @@ -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.1.0" + +gemspec path: "../" diff --git a/gemfiles/rails_8.1_with_sqlite3.gemfile b/gemfiles/rails_8.1_with_sqlite3.gemfile new file mode 100644 index 0000000..256bb9e --- /dev/null +++ b/gemfiles/rails_8.1_with_sqlite3.gemfile @@ -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.1.0" +gem "sqlite3" + +gemspec path: "../" diff --git a/gemfiles/rails_8.1_with_trilogy.gemfile b/gemfiles/rails_8.1_with_trilogy.gemfile new file mode 100644 index 0000000..73dc44f --- /dev/null +++ b/gemfiles/rails_8.1_with_trilogy.gemfile @@ -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.1.0" +gem "activerecord-trilogy-adapter" + +gemspec path: "../"