From 6197971b8a6a69df693a92de826c29ba87ba0b33 Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Thu, 10 Jul 2025 11:26:07 -0400 Subject: [PATCH] use rails 8.0 --- .github/workflows/ci.yaml | 4 +--- CHANGELOG.md | 4 ++++ activerecord-virtual_attributes.gemspec | 4 ++-- lib/active_record/virtual_attributes/version.rb | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2925ba3..5e2d20b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,8 +12,6 @@ jobs: strategy: matrix: ruby-version: - - '3.1' - - '3.2' - '3.3' - '3.4' services: @@ -65,7 +63,7 @@ jobs: DB: mysql2 run: bundle exec rake - name: Report code coverage - if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' }} + if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.3' }} continue-on-error: true uses: paambaati/codeclimate-action@v9 env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d9db6..60878f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ The versioning of this gem follows ActiveRecord versioning, and does not follow ## [Unreleased] +## [8.0.0.0] - 2025-07-10 + +* Rails 8.0 support [#194](https://github.com/ManageIQ/activerecord-virtual_attributes/pull/194) + ## [7.2.0.1] - 2025-07-18 * Fix includes and associations with empty uses [#195](https://github.com/ManageIQ/activerecord-virtual_attributes/pull/195) diff --git a/activerecord-virtual_attributes.gemspec b/activerecord-virtual_attributes.gemspec index 3dfcbb6..646a8ee 100644 --- a/activerecord-virtual_attributes.gemspec +++ b/activerecord-virtual_attributes.gemspec @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] - spec.add_runtime_dependency "activerecord", "~> 7.2.2", ">=7.2.2.2" + spec.add_runtime_dependency "activerecord", "~> 8.0", ">= 8.0.2" spec.add_development_dependency "byebug" spec.add_development_dependency "database_cleaner-active_record", "~> 2.1" @@ -40,5 +40,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake", "~> 13.0" spec.add_development_dependency "rspec", "~> 3.0" spec.add_development_dependency "simplecov", ">= 0.21.2" - spec.add_development_dependency "sqlite3", "< 2" + spec.add_development_dependency "sqlite3", "~>2.1" end diff --git a/lib/active_record/virtual_attributes/version.rb b/lib/active_record/virtual_attributes/version.rb index 839ce96..606a55c 100644 --- a/lib/active_record/virtual_attributes/version.rb +++ b/lib/active_record/virtual_attributes/version.rb @@ -1,5 +1,5 @@ module ActiveRecord module VirtualAttributes - VERSION = "7.2.0.1".freeze + VERSION = "8.0.0.0".freeze end end