Skip to content

Commit

Permalink
Dropped support for Ruby < 3.1, Rails < 7, and Mongoid < 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 10, 2024
1 parent 3afa994 commit fdd4f25
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 29 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
gemfile: gemfiles/rails71.gemfile
- ruby: 3.1
gemfile: gemfiles/rails70.gemfile
- ruby: "3.0"
gemfile: gemfiles/rails61.gemfile
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 5.3.0 (unreleased)

- Dropped support for Ruby < 3.1 and Rails < 7
- Dropped support for Mongoid < 8

## 5.2.1 (2024-10-07)

- Fixed connection leasing for Active Record 7.2+
Expand Down
18 changes: 0 additions & 18 deletions gemfiles/rails61.gemfile

This file was deleted.

12 changes: 3 additions & 9 deletions test/cookies_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,9 @@ def test_cookies_none
get products_url
assert_empty response.cookies
visit = Ahoy::Visit.last
# deterministic tokens
# difference due to Rails 7 bugfix
# https://github.com/rails/rails/issues/37681
# https://github.com/rails/rails/pull/37682
if Rails::VERSION::MAJOR >= 7
assert_equal "93dc5253-3a3b-561d-8d53-fb5476f02eca", visit.visitor_token
else
assert_equal "64dcde66-9659-5473-897e-5abd59f8b89f", visit.visitor_token
end

# deterministic token
assert_equal "93dc5253-3a3b-561d-8d53-fb5476f02eca", visit.visitor_token

get products_url
assert_equal 1, Ahoy::Visit.count
Expand Down

0 comments on commit fdd4f25

Please sign in to comment.