Skip to content

Commit 073cc30

Browse files
leoarnoldLeo Arnold
andauthored
Make support for Rails 8.1 official (#1538)
Co-authored-by: Leo Arnold <opensource@leoarnold.de>
1 parent f19dd80 commit 073cc30

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

Appraisals

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ appraise "rails-8.0" do
2323
end
2424

2525
appraise "rails-8.1" do
26-
gem "rails", "~> 8.1.0.beta1"
26+
gem "rails", "~> 8.1.0"
2727
gem "sqlite3", ">= 2.1"
2828
end

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/).
2424

2525
- Drop support for Rails 6.1, which [reached EoL on 2024-10-01][2]
2626
- Drop support for Rails 7.0, which [reached EoL on 2025-04-01][2]
27+
- Add support for Rails 8.1
2728
- Drop support for Ruby 3.0, which [reached EoL on 2024-04-23][3]
2829
- Drop support for Ruby 3.1, which [reached EoL on 2024-03-31][3]
2930

gemfiles/rails_8.1.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails", "~> 8.1.0.beta1"
5+
gem "rails", "~> 8.1.0"
66
gem "sqlite3", ">= 2.1"
77

88
gemspec path: "../"

lib/paper_trail/compatibility.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module PaperTrail
1818
# versions.
1919
module Compatibility
2020
ACTIVERECORD_GTE = ">= 7.1" # enforced in gemspec
21-
ACTIVERECORD_LT = "< 8.1" # not enforced in gemspec
21+
ACTIVERECORD_LT = "< 8.2" # not enforced in gemspec
2222

2323
E_INCOMPATIBLE_AR = <<-EOS
2424
PaperTrail %s is not compatible with ActiveRecord %s. We allow PT

spec/paper_trail/compatibility_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module PaperTrail
1414

1515
context "when incompatible" do
1616
it "writes a warning to stderr" do
17-
ar_version = ::Gem::Version.new("8.1.0")
17+
ar_version = ::Gem::Version.new("8.2.0")
1818
expect {
1919
described_class.check_activerecord(ar_version)
2020
}.to output(/not compatible/).to_stderr

0 commit comments

Comments
 (0)