Skip to content

Commit

Permalink
Add support for activerecord 8.0, ruby 3.4 (#35) (#38)
Browse files Browse the repository at this point in the history
## What did we change?

- Bump dependency requirements so that this gem is compatible with
ActiveRecord 8.0
- Test against ActiveRecord 8.0
- Test against Ruby 3.4

## Why are we doing this?

Resolves #37 so that people who are using rails 8.0 can also use this
gem.
  • Loading branch information
jmpage authored Feb 3, 2025
2 parents e98ea7c + 3e61e22 commit a3919fb
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,19 @@ jobs:
strategy:
fail-fast: false
matrix:
activerecord: [ '6.1', '7.0', '7.1', '7.2' ]
ruby: [ '3.0', '3.1', '3.2', '3.3' ]
activerecord: [ '6.1', '7.0', '7.1', '7.2', '8.0' ]
ruby: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
exclude:
- activerecord: '6.1'
ruby: '3.4'
- activerecord: '7.0'
ruby: '3.4'
- activerecord: '7.2'
ruby: '3.0'
- activerecord: '8.0'
ruby: '3.0'
- activerecord: '8.0'
ruby: '3.1'
timeout-minutes: 10
needs:
- lint
Expand Down
6 changes: 6 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

appraise "activerecord_6.1" do
gem "activerecord", ">= 6.1.0", "< 6.2"
gem "concurrent-ruby", "1.3.4"
end

appraise "activerecord_7.0" do
gem "activerecord", ">= 7.0.0", "< 7.1"
gem "concurrent-ruby", "1.3.4"
end

appraise "activerecord_7.1" do
Expand All @@ -15,3 +17,7 @@ end
appraise "activerecord_7.2" do
gem "activerecord", ">= 7.2.0", "< 7.3"
end

appraise "activerecord_8.0" do
gem "activerecord", ">= 8.0.0", "< 8.1"
end
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# activerecord-postgres_pub_sub

## v3.2.0
- Add support for ActiveRecord 8.0
- Add support for Ruby 3.4

## v3.1.0
- Add support for ActiveRecord 7.2
- Add support for Ruby 3.3
Expand Down
2 changes: 1 addition & 1 deletion activerecord-postgres_pub_sub.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 3.0.0"

spec.add_runtime_dependency "activerecord", "> 6.0", "< 7.3"
spec.add_runtime_dependency "activerecord", "> 6.0", "< 8.1"
spec.add_runtime_dependency "pg", "~> 1.1"
spec.add_runtime_dependency "private_attr"
spec.add_runtime_dependency "with_advisory_lock"
Expand Down
1 change: 1 addition & 0 deletions gemfiles/activerecord_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
source "https://rubygems.org"

gem "activerecord", ">= 6.1.0", "< 6.2"
gem "concurrent-ruby", "1.3.4"

gemspec path: "../"
1 change: 1 addition & 0 deletions gemfiles/activerecord_7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
source "https://rubygems.org"

gem "activerecord", ">= 7.0.0", "< 7.1"
gem "concurrent-ruby", "1.3.4"

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

source "https://rubygems.org"

gem "activerecord", ">= 8.0.0", "< 8.1"

gemspec path: "../"
2 changes: 1 addition & 1 deletion lib/activerecord/postgres_pub_sub/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module ActiveRecord
module PostgresPubSub
VERSION = "3.1.0"
VERSION = "3.2.0"
end
end

0 comments on commit a3919fb

Please # to comment.