From 3a26943af80b30b26bcf094d37ba8d8275d3d440 Mon Sep 17 00:00:00 2001 From: vladshkurin Date: Wed, 18 Mar 2026 14:46:38 +0100 Subject: [PATCH] Add support for Rails 8.1 --- .github/workflows/prs.yml | 5 +++++ CHANGELOG.md | 4 ++++ ar-multidb.gemspec | 4 ++-- gemfiles/activerecord-8.1.gemfile | 7 +++++++ lib/multidb/version.rb | 2 +- 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 gemfiles/activerecord-8.1.gemfile diff --git a/.github/workflows/prs.yml b/.github/workflows/prs.yml index 47a89e5..94e82d7 100644 --- a/.github/workflows/prs.yml +++ b/.github/workflows/prs.yml @@ -25,13 +25,18 @@ jobs: - '7.1' - '7.2' - '8.0' + - '8.1' exclude: - ruby: '3.0' activerecord: '7.2' - ruby: '3.0' activerecord: '8.0' + - ruby: '3.0' + activerecord: '8.1' - ruby: '3.1' activerecord: '8.0' + - ruby: '3.1' + activerecord: '8.1' env: BUNDLE_GEMFILE: "${{ github.workspace }}/gemfiles/activerecord-${{ matrix.activerecord }}.gemfile" steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d6f40a..6a4ba81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) +## [0.8.2] +### Changed +- add support for Rails 8.1 + ## [0.8.1] ### Changes - Updated Log subscriber mixin to utilize Rails 7.1's contract for "color" diff --git a/ar-multidb.gemspec b/ar-multidb.gemspec index fdac654..b3841c7 100644 --- a/ar-multidb.gemspec +++ b/ar-multidb.gemspec @@ -21,8 +21,8 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 3.0.0' - s.add_runtime_dependency 'activerecord', '>= 7.1', '< 8.1' - s.add_runtime_dependency 'activesupport', '>= 7.1', '< 8.1' + s.add_runtime_dependency 'activerecord', '>= 7.1', '< 8.2' + s.add_runtime_dependency 'activesupport', '>= 7.1', '< 8.2' s.add_development_dependency 'rake', '~> 13.0' s.add_development_dependency 'rspec', '~> 3.8' diff --git a/gemfiles/activerecord-8.1.gemfile b/gemfiles/activerecord-8.1.gemfile new file mode 100644 index 0000000..87b6232 --- /dev/null +++ b/gemfiles/activerecord-8.1.gemfile @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +source 'https://rubygems.org' + +gem 'activerecord', '~> 8.1.0' + +gemspec path: '..' diff --git a/lib/multidb/version.rb b/lib/multidb/version.rb index 4dde8aa..a23b5ee 100644 --- a/lib/multidb/version.rb +++ b/lib/multidb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Multidb - VERSION = '0.8.1' + VERSION = '0.8.2' end