Skip to content

Commit

Permalink
Merge pull request #354 from ActsAsParanoid/support-rails-8
Browse files Browse the repository at this point in the history
Support Rails 8.0
  • Loading branch information
mvz authored Nov 8, 2024
2 parents 894ce98 + 9d042f2 commit d6ee241
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 10 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,29 @@ jobs:
strategy:
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3", "jruby-9.4"]
gemfile: [active_record_61, active_record_70, active_record_71, active_record_72]
gemfile:
- active_record_61
- active_record_70
- active_record_71
- active_record_72
- active_record_80
exclude:
# The activerecord-jdbcsqlite3-adapter gem does not work with Rails 7.1 yet
# The activerecord-jdbcsqlite3-adapter gem does not work with Rails
# 7.1 and above yet
- ruby: "jruby-9.4"
gemfile: active_record_71
# The activerecord-jdbcsqlite3-adapter gem does not work with Rails 7.2 yet
- ruby: "jruby-9.4"
gemfile: active_record_72
- ruby: "jruby-9.4"
gemfile: active_record_80
# Rails 7.2 requires Ruby 3.1
- ruby: "3.0"
gemfile: active_record_72
# Rails 8.0 requires Ruby 3.2
- ruby: "3.0"
gemfile: active_record_80
- ruby: "3.1"
gemfile: active_record_80

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
Expand Down
11 changes: 10 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ appraise "active_record_72" do
gem "activesupport", "~> 7.2.0", require: "active_support"

group :development do
gem "sqlite3", "~> 2.0.0", platforms: [:ruby]
gem "sqlite3", "~> 2.0", platforms: [:ruby]
end
end

appraise "active_record_80" do
gem "activerecord", "~> 8.0.0", require: "active_record"
gem "activesupport", "~> 8.0.0", require: "active_support"

group :development do
gem "sqlite3", "~> 2.0", platforms: [:ruby]
end
end
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ source "https://rubygems.org"

# Development dependencies
group :development do
gem "activerecord-jdbcsqlite3-adapter", platforms: [:jruby]
gem "sqlite3", ">= 1.4", "<= 2.1", platforms: [:ruby]
end

Expand Down
4 changes: 2 additions & 2 deletions acts_as_paranoid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
spec.files = File.read("Manifest.txt").split
spec.require_paths = ["lib"]

spec.add_dependency "activerecord", ">= 6.1", "< 8"
spec.add_dependency "activesupport", ">= 6.1", "< 8"
spec.add_dependency "activerecord", ">= 6.1", "< 8.1"
spec.add_dependency "activesupport", ">= 6.1", "< 8.1"

spec.add_development_dependency "appraisal", "~> 2.3"
spec.add_development_dependency "minitest", "~> 5.14"
Expand Down
1 change: 0 additions & 1 deletion gemfiles/active_record_71.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ gem "activerecord", "~> 7.1.0", require: "active_record"
gem "activesupport", "~> 7.1.0", require: "active_support"

group :development do
gem "activerecord-jdbcsqlite3-adapter", platforms: [:jruby]
gem "sqlite3", "~> 1.4", platforms: [:ruby]
end

Expand Down
3 changes: 1 addition & 2 deletions gemfiles/active_record_72.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ gem "activerecord", "~> 7.2.0", require: "active_record"
gem "activesupport", "~> 7.2.0", require: "active_support"

group :development do
gem "activerecord-jdbcsqlite3-adapter", platforms: [:jruby]
gem "sqlite3", "~> 2.0.0", platforms: [:ruby]
gem "sqlite3", "~> 2.0", platforms: [:ruby]
end

gemspec path: "../"
14 changes: 14 additions & 0 deletions gemfiles/active_record_80.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"

gem "activerecord", "~> 8.0.0", require: "active_record"
gem "activesupport", "~> 8.0.0", require: "active_support"

group :development do
gem "sqlite3", "~> 2.0", platforms: [:ruby]
end

gemspec path: "../"

0 comments on commit d6ee241

Please sign in to comment.