Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@ on:

jobs:
sqlite3:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rails:
- 7-2-stable
- 8-0-stable
- v7.2.2
- v7.1.0
ruby:
- 3.2.2
- 3.1.4
exclude:
- rails: 8-0-stable
ruby: 3.1.4
env:
DB: sqlite3
RAILS: ${{ matrix.rails }}
Expand All @@ -32,16 +36,21 @@ jobs:
run: bundle exec rspec

mysql:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rails:
- 8-0-stable
- 7-2-stable
- v7.1.0
ruby:
- 3.2.2
- 3.1.4
exclude:
- rails: 8-0-stable
ruby: 3.1.4

env:
DB: mysql
RAILS: ${{ matrix.rails }}
Expand All @@ -65,16 +74,20 @@ jobs:
run: bundle exec rspec

postgres:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rails:
- 8-0-stable
- 7-2-stable
- v7.1.0
ruby:
- 3.2.2
- 3.1.4
exclude:
- rails: 8-0-stable
ruby: 3.1.4
env:
DB: postgres
RAILS: ${{ matrix.rails }}
Expand Down Expand Up @@ -110,7 +123,7 @@ jobs:
run: bundle exec rspec

bug-report-templates:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Change Log

## Unreleased

* Rails 8 compatibility
* Drop Rails 6 and 7.0 compatibility

## 4.2.1 - 2024-8-11
Expand Down
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ rails_version = case rails
end

gem 'faker'
gem 'sqlite3', '~> 1.4'
if ::Gem::Version.new(rails_version) > ::Gem::Version.new('7.3')
gem 'sqlite3', '>= 2.1'
else
gem 'sqlite3', '~> 1.4'
end
gem 'pg'
gem 'pry'
gem 'byebug'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ There are advanced searching solutions around, like ElasticSearch or Algolia. **

Ready to move beyond the basics? Use **advanced features** like i18n and extensive configuration options.

Ransack is supported for Rails 7.2, 7.1 on Ruby 3.1 and later.
Ransack is supported for Rails 8.0, 7.2, 7.1 on Ruby 3.1 and later.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion lib/polyamorous/polyamorous.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Polyamorous
require 'polyamorous/activerecord/join_dependency'
require 'polyamorous/activerecord/reflection'

if ::ActiveRecord.version >= ::Gem::Version.new("7.2") && ::ActiveRecord.version != ::Gem::Version.new("7.2.2.1")
if ::ActiveRecord.version >= ::Gem::Version.new("7.2") && ::ActiveRecord.version < ::Gem::Version.new("7.2.2.1")
require "polyamorous/activerecord/join_association_7_2"
end

Expand Down
Loading