From 3ca744ea5c2cb3a0bedbf625dc491f259aa6a28a Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Sat, 18 Jan 2025 17:11:58 -0500 Subject: [PATCH] Rails 8.0 support (#56) --- .github/workflows/unit_tests.yml | 2 ++ README.md | 4 ++-- arel-helpers.gemspec | 2 +- gemfiles/rails_8.0.x.gemfile | 8 ++++++++ 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 gemfiles/rails_8.0.x.gemfile diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 5310d70..19c6ad3 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -40,6 +40,8 @@ jobs: ruby-version: 3.2 - gemfile: gemfiles/rails_7.2.x.gemfile ruby-version: 3.3 + - gemfile: gemfiles/rails_8.0.x.gemfile + ruby-version: 3.3 steps: - uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby-version }} diff --git a/README.md b/README.md index 99843d5..6fe6e99 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,7 @@ This can become repetitive, and as an alternative you can choose to prepend `not ## Requirements -Requires ActiveRecord >= 3.1.0, < 8. Depends on SQLite for testing purposes. +Requires ActiveRecord >= 3.1.0, < 8.1. Depends on SQLite for testing purposes. ## Running Tests @@ -223,4 +223,4 @@ Requires ActiveRecord >= 3.1.0, < 8. Depends on SQLite for testing purposes. ## Authors -* Cameron C. Dutro: http://github.com/camertron +- Cameron C. Dutro: http://github.com/camertron diff --git a/arel-helpers.gemspec b/arel-helpers.gemspec index fa70ecc..ee34d63 100644 --- a/arel-helpers.gemspec +++ b/arel-helpers.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY - s.add_dependency 'activerecord', '>= 3.1.0', '< 8' + s.add_dependency 'activerecord', '>= 3.1.0', '< 8.1' s.add_development_dependency 'appraisal' s.add_development_dependency 'combustion', '~> 1.3' diff --git a/gemfiles/rails_8.0.x.gemfile b/gemfiles/rails_8.0.x.gemfile new file mode 100644 index 0000000..c7b4bfc --- /dev/null +++ b/gemfiles/rails_8.0.x.gemfile @@ -0,0 +1,8 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activerecord", "~> 8.0.0" +gem "sqlite3", "~> 2.1" + +gemspec path: "../"