From 272969ad032596265127422a36d378b57cdc956a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 30 Mar 2022 15:16:50 +0200 Subject: [PATCH 1/4] Add PR links to changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 367bf139..8ed5c5f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased * Improve `sort_link` documentation. + PR [1290](https://github.com/activerecord-hackery/ransack/pull/1290) * Deprecate passing two trailing hashes to `sort_link`, for example: @@ -11,6 +12,7 @@ ``` Pass a single hash with all options instead. + PR [1289](https://github.com/activerecord-hackery/ransack/pull/1289) * Fix `:class` option to `sort_link` not being passed to the generated link correctly when no additional options are passed. For example: @@ -19,6 +21,8 @@ sort_link(@q, :bussiness_name, class: "foo") ``` + PR [1288](https://github.com/activerecord-hackery/ransack/pull/1288) + ## 2.6.0 - 2022-03-08 * Fix regression when joining a table with itself. From 8034f58a77b63d044193882544130131fe322453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 30 Mar 2022 15:20:54 +0200 Subject: [PATCH 2/4] Add missing 3.0.0 changelog entries --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ed5c5f2..95f03f2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## Unreleased +* [BREAKING CHANGE] Remove deprecated `#search` method. + PR [1147](https://github.com/activerecord-hackery/ransack/pull/1147) + +* Allow scopes that define string SQL joins. + PR [1225](https://github.com/activerecord-hackery/ransack/pull/1225) + * Improve `sort_link` documentation. PR [1290](https://github.com/activerecord-hackery/ransack/pull/1290) @@ -23,6 +29,9 @@ PR [1288](https://github.com/activerecord-hackery/ransack/pull/1288) +* Evaluate `ransackable_scopes` before attributes when building the query. + PR [759](https://github.com/activerecord-hackery/ransack/pull/759) + ## 2.6.0 - 2022-03-08 * Fix regression when joining a table with itself. From 3cef42547c1130ccdd2573582953883e344f8df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 30 Mar 2022 15:22:02 +0200 Subject: [PATCH 3/4] release 3.0.0 --- CHANGELOG.md | 2 ++ lib/ransack/version.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95f03f2b..8f3a3a85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 3.0.0 - 2022-03-30 + * [BREAKING CHANGE] Remove deprecated `#search` method. PR [1147](https://github.com/activerecord-hackery/ransack/pull/1147) diff --git a/lib/ransack/version.rb b/lib/ransack/version.rb index d0678c74..f852f229 100644 --- a/lib/ransack/version.rb +++ b/lib/ransack/version.rb @@ -1,3 +1,3 @@ module Ransack - VERSION = '2.6.0' + VERSION = '3.0.0' end From 7d871d79f9d2b57442e3d2f3395922c12980e559 Mon Sep 17 00:00:00 2001 From: Sean Carroll Date: Thu, 31 Mar 2022 00:10:02 +0200 Subject: [PATCH 4/4] Update CHANGELOG --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f3a3a85..d52eac87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ## 3.0.0 - 2022-03-30 +* Move documentation into Docusaurus. + PR [1291](https://github.com/activerecord-hackery/ransack/pull/1291) + * [BREAKING CHANGE] Remove deprecated `#search` method. PR [1147](https://github.com/activerecord-hackery/ransack/pull/1147)