ransack 2.4.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/cronjob.yml +6 -9
- data/.github/workflows/deploy.yml +35 -0
- data/.github/workflows/rubocop.yml +1 -1
- data/.github/workflows/test-deploy.yml +29 -0
- data/.github/workflows/test.yml +16 -40
- data/.nojekyll +0 -0
- data/CHANGELOG.md +137 -11
- data/CONTRIBUTING.md +4 -3
- data/Gemfile +2 -2
- data/README.md +45 -973
- data/docs/.gitignore +19 -0
- data/docs/.nojekyll +0 -0
- data/docs/babel.config.js +3 -0
- data/docs/blog/2022-03-27-ransack-3.0.0.md +20 -0
- data/docs/docs/getting-started/_category_.json +4 -0
- data/docs/docs/getting-started/advanced-mode.md +46 -0
- data/docs/docs/getting-started/configuration.md +47 -0
- data/docs/docs/getting-started/search-matches.md +67 -0
- data/docs/docs/getting-started/simple-mode.md +284 -0
- data/docs/docs/getting-started/sorting.md +79 -0
- data/docs/docs/getting-started/using-predicates.md +282 -0
- data/docs/docs/going-further/_category_.json +4 -0
- data/docs/docs/going-further/acts-as-taggable-on.md +114 -0
- data/docs/docs/going-further/associations.md +70 -0
- data/docs/docs/going-further/custom-predicates.md +52 -0
- data/docs/docs/going-further/documentation.md +43 -0
- data/docs/docs/going-further/exporting-to-csv.md +49 -0
- data/docs/docs/going-further/external-guides.md +57 -0
- data/docs/docs/going-further/form-customisation.md +63 -0
- data/docs/docs/going-further/i18n.md +53 -0
- data/docs/docs/going-further/merging-searches.md +41 -0
- data/docs/docs/going-further/other-notes.md +428 -0
- data/docs/docs/going-further/polymorphic-search.md +40 -0
- data/docs/docs/going-further/ransackers.md +331 -0
- data/docs/docs/going-further/release_process.md +36 -0
- data/docs/docs/going-further/saving-queries.md +82 -0
- data/docs/docs/going-further/searching-postgres.md +57 -0
- data/docs/docs/going-further/wiki-contributors.md +82 -0
- data/docs/docs/intro.md +99 -0
- data/docs/docusaurus.config.js +107 -0
- data/docs/package.json +37 -0
- data/docs/sidebars.js +31 -0
- data/docs/src/components/HomepageFeatures/index.js +64 -0
- data/docs/src/components/HomepageFeatures/styles.module.css +11 -0
- data/docs/src/css/custom.css +39 -0
- data/docs/src/pages/index.module.css +23 -0
- data/docs/src/pages/markdown-page.md +7 -0
- data/docs/static/.nojekyll +0 -0
- data/docs/static/img/docusaurus.png +0 -0
- data/docs/static/img/favicon.ico +0 -0
- data/docs/static/img/logo.svg +1 -0
- data/docs/static/img/tutorial/docsVersionDropdown.png +0 -0
- data/docs/static/img/tutorial/localeDropdown.png +0 -0
- data/docs/static/img/undraw_docusaurus_mountain.svg +171 -0
- data/docs/static/img/undraw_docusaurus_react.svg +170 -0
- data/docs/static/img/undraw_docusaurus_tree.svg +40 -0
- data/docs/yarn.lock +7671 -0
- data/lib/polyamorous/activerecord_6.1_ruby_2/join_association.rb +0 -4
- data/lib/polyamorous/activerecord_6.1_ruby_2/join_dependency.rb +0 -1
- data/lib/polyamorous/activerecord_6.1_ruby_2/reflection.rb +11 -1
- data/lib/polyamorous/activerecord_7.1_ruby_2/join_association.rb +1 -0
- data/lib/polyamorous/activerecord_7.1_ruby_2/join_dependency.rb +1 -0
- data/lib/polyamorous/activerecord_7.1_ruby_2/reflection.rb +1 -0
- data/lib/polyamorous.rb +1 -0
- data/lib/ransack/adapters/active_record/base.rb +1 -3
- data/lib/ransack/adapters/active_record/context.rb +24 -51
- data/lib/ransack/adapters/active_record/ransack/nodes/condition.rb +2 -9
- data/lib/ransack/configuration.rb +16 -2
- data/lib/ransack/constants.rb +0 -3
- data/lib/ransack/helpers/form_helper.rb +11 -3
- data/lib/ransack/locale/sv.yml +70 -0
- data/lib/ransack/nodes/sort.rb +2 -2
- data/lib/ransack/search.rb +4 -3
- data/lib/ransack/translate.rb +1 -1
- data/lib/ransack/version.rb +1 -1
- data/ransack.gemspec +5 -5
- data/spec/helpers/polyamorous_helper.rb +2 -8
- data/spec/polyamorous/activerecord_compatibility_spec.rb +15 -0
- data/spec/polyamorous/join_association_spec.rb +1 -6
- data/spec/polyamorous/join_dependency_spec.rb +0 -16
- data/spec/ransack/adapters/active_record/base_spec.rb +28 -11
- data/spec/ransack/configuration_spec.rb +14 -0
- data/spec/ransack/helpers/form_helper_spec.rb +57 -2
- data/spec/ransack/nodes/condition_spec.rb +13 -0
- data/spec/ransack/search_spec.rb +140 -27
- data/spec/support/schema.rb +49 -0
- metadata +80 -29
- data/docs/release_process.md +0 -20
- data/lib/polyamorous/activerecord_5.2_ruby_2/join_association.rb +0 -24
- data/lib/polyamorous/activerecord_5.2_ruby_2/join_dependency.rb +0 -79
- data/lib/polyamorous/activerecord_5.2_ruby_2/reflection.rb +0 -11
- data/lib/polyamorous/activerecord_6.0_ruby_2/join_association.rb +0 -1
- data/lib/polyamorous/activerecord_6.0_ruby_2/join_dependency.rb +0 -80
- data/lib/polyamorous/activerecord_6.0_ruby_2/reflection.rb +0 -1
- /data/docs/{img → docs/going-further/img}/create_release.png +0 -0
- /data/{logo → docs/static/logo}/ransack-h.png +0 -0
- /data/{logo → docs/static/logo}/ransack-h.svg +0 -0
- /data/{logo → docs/static/logo}/ransack-v.png +0 -0
- /data/{logo → docs/static/logo}/ransack-v.svg +0 -0
- /data/{logo → docs/static/logo}/ransack.png +0 -0
- /data/{logo → docs/static/logo}/ransack.svg +0 -0
- /data/lib/polyamorous/{activerecord_6.2_ruby_2 → activerecord_7.0_ruby_2}/join_association.rb +0 -0
- /data/lib/polyamorous/{activerecord_6.2_ruby_2 → activerecord_7.0_ruby_2}/join_dependency.rb +0 -0
- /data/lib/polyamorous/{activerecord_6.2_ruby_2 → activerecord_7.0_ruby_2}/reflection.rb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f37dfefd63333903d6b36084a8dda1193ca31788777b2645d25b96dd97d2d2c
|
|
4
|
+
data.tar.gz: dba86f7268c931801e1caf32f3552ebfeecc06fec2f773130118cc2c809c61e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c8364c70e6536c5aa5dca37c5539164d89dab6fb9e582501dbf5611ff4a647aa0b5ff69450a0b4d480de4d61e62708b3c376ffb6813c0f06ff6b0a591c670f6
|
|
7
|
+
data.tar.gz: 4681b4c7f4e03002b968e165abf930a6b42dfc1e4d740a0bb8a034a9c805b1f956d6f82ab5ca0e39117a8a08b8899b849e34ccf665ac5f7c36fd1aec83ebe3e5
|
|
@@ -11,9 +11,8 @@ jobs:
|
|
|
11
11
|
fail-fast: false
|
|
12
12
|
matrix:
|
|
13
13
|
ruby:
|
|
14
|
-
- 3.0.
|
|
15
|
-
- 2.7.
|
|
16
|
-
- 2.6.6
|
|
14
|
+
- 3.0.2
|
|
15
|
+
- 2.7.4
|
|
17
16
|
env:
|
|
18
17
|
DB: sqlite3
|
|
19
18
|
RAILS: main
|
|
@@ -34,9 +33,8 @@ jobs:
|
|
|
34
33
|
fail-fast: false
|
|
35
34
|
matrix:
|
|
36
35
|
ruby:
|
|
37
|
-
- 3.0.
|
|
38
|
-
- 2.7.
|
|
39
|
-
- 2.6.6
|
|
36
|
+
- 3.0.2
|
|
37
|
+
- 2.7.4
|
|
40
38
|
env:
|
|
41
39
|
DB: mysql
|
|
42
40
|
RAILS: main
|
|
@@ -66,9 +64,8 @@ jobs:
|
|
|
66
64
|
fail-fast: false
|
|
67
65
|
matrix:
|
|
68
66
|
ruby:
|
|
69
|
-
- 3.0.
|
|
70
|
-
- 2.7.
|
|
71
|
-
- 2.6.6
|
|
67
|
+
- 3.0.2
|
|
68
|
+
- 2.7.4
|
|
72
69
|
env:
|
|
73
70
|
DB: postgres
|
|
74
71
|
RAILS: main
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Deploy to GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
name: Deploy to GitHub Pages
|
|
11
|
+
|
|
12
|
+
runs-on: ubuntu-20.04
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
|
+
|
|
17
|
+
- uses: actions/setup-node@v3
|
|
18
|
+
with:
|
|
19
|
+
node-version: 16
|
|
20
|
+
cache: yarn
|
|
21
|
+
cache-dependency-path: docs/yarn.lock
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: yarn install --frozen-lockfile
|
|
25
|
+
working-directory: docs
|
|
26
|
+
|
|
27
|
+
- name: Build website
|
|
28
|
+
run: yarn build
|
|
29
|
+
working-directory: docs
|
|
30
|
+
|
|
31
|
+
- name: Deploy to GitHub Pages
|
|
32
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
33
|
+
with:
|
|
34
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
35
|
+
publish_dir: docs/build
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Test deploy to GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test-deploy:
|
|
10
|
+
name: Test deploy to GitHub Pages
|
|
11
|
+
|
|
12
|
+
runs-on: ubuntu-20.04
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
|
+
|
|
17
|
+
- uses: actions/setup-node@v3
|
|
18
|
+
with:
|
|
19
|
+
node-version: 16
|
|
20
|
+
cache: yarn
|
|
21
|
+
cache-dependency-path: docs/yarn.lock
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: yarn install --frozen-lockfile
|
|
25
|
+
working-directory: docs
|
|
26
|
+
|
|
27
|
+
- name: Test build website
|
|
28
|
+
run: yarn build
|
|
29
|
+
working-directory: docs
|
data/.github/workflows/test.yml
CHANGED
|
@@ -11,20 +11,12 @@ jobs:
|
|
|
11
11
|
fail-fast: false
|
|
12
12
|
matrix:
|
|
13
13
|
rails:
|
|
14
|
-
-
|
|
15
|
-
- v6.
|
|
16
|
-
- 6-0-stable
|
|
17
|
-
- 5-2-stable
|
|
18
|
-
- v5.2.4
|
|
14
|
+
- v7.0.2
|
|
15
|
+
- v6.1.5
|
|
19
16
|
ruby:
|
|
20
|
-
- 3.
|
|
21
|
-
-
|
|
22
|
-
- 2.
|
|
23
|
-
exclude:
|
|
24
|
-
- rails: v5.2.4
|
|
25
|
-
ruby: 3.0.0
|
|
26
|
-
- rails: 5-2-stable
|
|
27
|
-
ruby: 3.0.0
|
|
17
|
+
- 3.1.1
|
|
18
|
+
- 3.0.2
|
|
19
|
+
- 2.7.4
|
|
28
20
|
env:
|
|
29
21
|
DB: sqlite3
|
|
30
22
|
RAILS: ${{ matrix.rails }}
|
|
@@ -45,20 +37,12 @@ jobs:
|
|
|
45
37
|
fail-fast: false
|
|
46
38
|
matrix:
|
|
47
39
|
rails:
|
|
48
|
-
-
|
|
49
|
-
- v6.
|
|
50
|
-
- 6-0-stable
|
|
51
|
-
- 5-2-stable
|
|
52
|
-
- v5.2.4
|
|
40
|
+
- v7.0.2
|
|
41
|
+
- v6.1.5
|
|
53
42
|
ruby:
|
|
54
|
-
- 3.
|
|
55
|
-
-
|
|
56
|
-
- 2.
|
|
57
|
-
exclude:
|
|
58
|
-
- rails: v5.2.4
|
|
59
|
-
ruby: 3.0.0
|
|
60
|
-
- rails: 5-2-stable
|
|
61
|
-
ruby: 3.0.0
|
|
43
|
+
- 3.1.1
|
|
44
|
+
- 3.0.2
|
|
45
|
+
- 2.7.4
|
|
62
46
|
env:
|
|
63
47
|
DB: mysql
|
|
64
48
|
RAILS: ${{ matrix.rails }}
|
|
@@ -88,20 +72,12 @@ jobs:
|
|
|
88
72
|
fail-fast: false
|
|
89
73
|
matrix:
|
|
90
74
|
rails:
|
|
91
|
-
-
|
|
92
|
-
- v6.
|
|
93
|
-
- 6-0-stable
|
|
94
|
-
- 5-2-stable
|
|
95
|
-
- v5.2.4
|
|
75
|
+
- v7.0.2
|
|
76
|
+
- v6.1.5
|
|
96
77
|
ruby:
|
|
97
|
-
- 3.
|
|
98
|
-
-
|
|
99
|
-
- 2.
|
|
100
|
-
exclude:
|
|
101
|
-
- rails: v5.2.4
|
|
102
|
-
ruby: 3.0.0
|
|
103
|
-
- rails: 5-2-stable
|
|
104
|
-
ruby: 3.0.0
|
|
78
|
+
- 3.1.1
|
|
79
|
+
- 3.0.2
|
|
80
|
+
- 2.7.4
|
|
105
81
|
env:
|
|
106
82
|
DB: postgres
|
|
107
83
|
RAILS: ${{ matrix.rails }}
|
|
@@ -144,7 +120,7 @@ jobs:
|
|
|
144
120
|
- name: Set up Ruby
|
|
145
121
|
uses: ruby/setup-ruby@v1
|
|
146
122
|
with:
|
|
147
|
-
ruby-version: 3.
|
|
123
|
+
ruby-version: 3.1.1
|
|
148
124
|
- name: Install dependencies
|
|
149
125
|
run: bundle install
|
|
150
126
|
- name: Run bug report templates
|
data/.nojekyll
ADDED
|
File without changes
|
data/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,148 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Unreleased
|
|
4
4
|
|
|
5
|
-
## 2.
|
|
5
|
+
## 3.2.0 - 2022-05-08
|
|
6
6
|
|
|
7
|
-
*
|
|
7
|
+
* Drop Rails 6.0 support.
|
|
8
|
+
PR [1318](https://github.com/activerecord-hackery/ransack/pull/1318)
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
* Exclude "host" from params sent to url generator.
|
|
11
|
+
PR [1319](https://github.com/activerecord-hackery/ransack/pull/1319)
|
|
10
12
|
|
|
11
|
-
##
|
|
13
|
+
## 3.1.0 - 2022-04-21
|
|
14
|
+
|
|
15
|
+
* Fix predicate name in "Using Predicates" documentation page.
|
|
16
|
+
PR [1313](https://github.com/activerecord-hackery/ransack/pull/1313)
|
|
17
|
+
|
|
18
|
+
* Drop Ruby 2.6 support.
|
|
19
|
+
PR [1311](https://github.com/activerecord-hackery/ransack/pull/1311)
|
|
20
|
+
|
|
21
|
+
* Allow Ransack to be used with Rails 7.1.0.alpha.
|
|
22
|
+
PR [1309](https://github.com/activerecord-hackery/ransack/pull/1309)
|
|
23
|
+
|
|
24
|
+
* Put contributor list last in documentation site.
|
|
25
|
+
PR [1308](https://github.com/activerecord-hackery/ransack/pull/1308)
|
|
26
|
+
|
|
27
|
+
* Add `acts-as-taggable-on` and polymorphic searches to documentation.
|
|
28
|
+
PR [1306](https://github.com/activerecord-hackery/ransack/pull/1306)
|
|
29
|
+
PR [1312](https://github.com/activerecord-hackery/ransack/pull/1312)
|
|
30
|
+
|
|
31
|
+
* Add full link to issue about merging searches to documentation.
|
|
32
|
+
PR [1305](https://github.com/activerecord-hackery/ransack/pull/1305)
|
|
33
|
+
|
|
34
|
+
## 3.0.1 - 2022-04-08
|
|
35
|
+
|
|
36
|
+
* Fix `:data` option to `sort_link` being incorrectly appended to the generated
|
|
37
|
+
link query parameters.
|
|
38
|
+
PR [1301](https://github.com/activerecord-hackery/ransack/pull/1301)
|
|
39
|
+
|
|
40
|
+
* Fix "Edit this page" links in documentation site
|
|
41
|
+
PR [1303](https://github.com/activerecord-hackery/ransack/pull/1303)
|
|
42
|
+
|
|
43
|
+
* Auto deploy documentation site after merging PRs
|
|
44
|
+
PR [1302](https://github.com/activerecord-hackery/ransack/pull/1302)
|
|
45
|
+
|
|
46
|
+
* Add list of former wiki contributors to documentation site
|
|
47
|
+
PR [1300](https://github.com/activerecord-hackery/ransack/pull/1300)
|
|
48
|
+
|
|
49
|
+
* Reduce gem package size
|
|
50
|
+
PR [1297](https://github.com/activerecord-hackery/ransack/pull/1297)
|
|
51
|
+
|
|
52
|
+
## 3.0.0 - 2022-03-30
|
|
53
|
+
|
|
54
|
+
* Move documentation into Docusaurus.
|
|
55
|
+
PR [1291](https://github.com/activerecord-hackery/ransack/pull/1291)
|
|
56
|
+
|
|
57
|
+
* [BREAKING CHANGE] Remove deprecated `#search` method.
|
|
58
|
+
PR [1147](https://github.com/activerecord-hackery/ransack/pull/1147)
|
|
59
|
+
|
|
60
|
+
* Allow scopes that define string SQL joins.
|
|
61
|
+
PR [1225](https://github.com/activerecord-hackery/ransack/pull/1225)
|
|
12
62
|
|
|
13
|
-
*
|
|
14
|
-
PR [
|
|
63
|
+
* Improve `sort_link` documentation.
|
|
64
|
+
PR [1290](https://github.com/activerecord-hackery/ransack/pull/1290)
|
|
15
65
|
|
|
16
|
-
*
|
|
66
|
+
* Deprecate passing two trailing hashes to `sort_link`, for example:
|
|
67
|
+
|
|
68
|
+
```ruby
|
|
69
|
+
sort_link(@q, :bussiness_name, "bussines_name", {}, class: "foo")
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Pass a single hash with all options instead.
|
|
73
|
+
PR [1289](https://github.com/activerecord-hackery/ransack/pull/1289)
|
|
74
|
+
|
|
75
|
+
* Fix `:class` option to `sort_link` not being passed to the generated link
|
|
76
|
+
correctly when no additional options are passed. For example:
|
|
77
|
+
|
|
78
|
+
```ruby
|
|
79
|
+
sort_link(@q, :bussiness_name, class: "foo")
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
PR [1288](https://github.com/activerecord-hackery/ransack/pull/1288)
|
|
83
|
+
|
|
84
|
+
* Evaluate `ransackable_scopes` before attributes when building the query.
|
|
85
|
+
PR [759](https://github.com/activerecord-hackery/ransack/pull/759)
|
|
86
|
+
|
|
87
|
+
## 2.6.0 - 2022-03-08
|
|
88
|
+
|
|
89
|
+
* Fix regression when joining a table with itself.
|
|
90
|
+
PR [1275](https://github.com/activerecord-hackery/ransack/pull/1276)
|
|
91
|
+
|
|
92
|
+
* Drop support for ActiveRecord older than 6.0.4.
|
|
93
|
+
PR [1276](https://github.com/activerecord-hackery/ransack/pull/1276)
|
|
94
|
+
|
|
95
|
+
## 2.5.0 - 2021-12-26
|
|
96
|
+
|
|
97
|
+
* Document release process by @scarroll32 in https://github.com/activerecord-hackery/ransack/pull/1199, https://github.com/activerecord-hackery/ransack/pull/1200.
|
|
98
|
+
* Support Rails 7 by @yahonda in https://github.com/activerecord-hackery/ransack/pull/1205, https://github.com/activerecord-hackery/ransack/pull/1209, https://github.com/activerecord-hackery/ransack/pull/1234, https://github.com/activerecord-hackery/ransack/pull/1230, https://github.com/activerecord-hackery/ransack/pull/1266
|
|
99
|
+
* Fix for `ActiveRecord::UnknownAttributeReference` in ransack by @TechnologyHypofriend in https://github.com/activerecord-hackery/ransack/pull/1207
|
|
100
|
+
* Make gem compatible with old polyamorous require by @rtweeks in https://github.com/activerecord-hackery/ransack/pull/1145
|
|
101
|
+
* Adding swedish translations by @johanandre in https://github.com/activerecord-hackery/ransack/pull/1208
|
|
102
|
+
* Document how to do case insensitive searches by @scarroll32 in https://github.com/activerecord-hackery/ransack/pull/1213
|
|
103
|
+
* Add the ability to disable whitespace stripping for string searches by @DCrow in https://github.com/activerecord-hackery/ransack/pull/1214
|
|
104
|
+
* Fix `:default` option in `Translate.attribute` method by @coreyaus in https://github.com/activerecord-hackery/ransack/pull/1218
|
|
105
|
+
* Fix typo in README.md by @d-m-u in https://github.com/activerecord-hackery/ransack/pull/1220
|
|
106
|
+
* Fix another typo in README.md by @plan-do-break-fix in https://github.com/activerecord-hackery/ransack/pull/1221
|
|
107
|
+
* Fix several documentation typos @wonda-tea-coffee in https://github.com/activerecord-hackery/ransack/pull/1233
|
|
108
|
+
* Allow ransack to treat nulls as always first or last by @mollerhoj in https://github.com/activerecord-hackery/ransack/pull/1226
|
|
109
|
+
* Consider ransack aliases when sorting by @faragorn and @waldyr in https://github.com/activerecord-hackery/ransack/pull/1223
|
|
110
|
+
* Fix non-casted array predicates by @danielpclark in https://github.com/activerecord-hackery/ransack/pull/1246
|
|
111
|
+
* Remove Squeel references from README by @Schwad in https://github.com/activerecord-hackery/ransack/pull/1249
|
|
112
|
+
* Remove part of the README that might lead to incorrect results by @RadekMolenda in https://github.com/activerecord-hackery/ransack/pull/1258
|
|
113
|
+
* ActiveRecord 7.0 support
|
|
114
|
+
|
|
115
|
+
## 2.4.2 - 2021-01-23
|
|
116
|
+
|
|
117
|
+
* Enable RuboCop and configure GitHub Actions to run RuboCop by @yahonda in https://github.com/activerecord-hackery/ransack/pull/1185
|
|
118
|
+
* Add Ruby 3.0.0 support by @yahonda in https://github.com/activerecord-hackery/ransack/pull/1190
|
|
119
|
+
* Drop Ruby 2.5 or older versions of Ruby by @yahonda in https://github.com/activerecord-hackery/ransack/pull/1189
|
|
120
|
+
* Move bug report templates into ransack repository and run templates at CI by @yahonda in https://github.com/activerecord-hackery/ransack/pull/1191
|
|
121
|
+
* Allow Ransack to be tested with Rails main branch by @yahonda in https://github.com/activerecord-hackery/ransack/pull/1192
|
|
122
|
+
|
|
123
|
+
## 2.4.1 - 2020-12-21
|
|
124
|
+
|
|
125
|
+
* Links to Tidelift subscription by @deivid-rodriguez in https://github.com/activerecord-hackery/ransack/pull/1178
|
|
126
|
+
* Enable GitHub Actions by @yahonda in https://github.com/activerecord-hackery/ransack/pull/1180
|
|
127
|
+
* Move security contact information to SECURITY.md by @deivid-rodriguez in https://github.com/activerecord-hackery/ransack/pull/1179
|
|
128
|
+
* Add `ActiveRecord::Base.ransack!` which raises error if passed unknown condition by @alipman88 in https://github.com/activerecord-hackery/ransack/pull/1132
|
|
129
|
+
* Add ability to config PostgreSQL ORDER BY ... NULLS FIRST or NULLS LAST by @itsalongstory in https://github.com/activerecord-hackery/ransack/pull/1184
|
|
130
|
+
|
|
131
|
+
## 2.4.0 - 2020-11-27
|
|
17
132
|
|
|
18
|
-
*
|
|
19
|
-
|
|
133
|
+
* Specify actual version of polyamorous, so we can release that separately by @gregmolnar in https://github.com/activerecord-hackery/ransack/pull/1101
|
|
134
|
+
* Only include necessary files in gem package by @tvdeyen in https://github.com/activerecord-hackery/ransack/pull/1104
|
|
135
|
+
* Test/Fix for subquery in Rails 5.2.4 by @stevenjonescgm in https://github.com/activerecord-hackery/ransack/pull/1112
|
|
136
|
+
* Polyamorous module by @varyonic in https://github.com/activerecord-hackery/ransack/pull/1113
|
|
137
|
+
* Remove duplicated rows by @sasharevzin in https://github.com/activerecord-hackery/ransack/pull/1116
|
|
138
|
+
* Fix Ruby 2.7 deprecation warnings by @terracatta in https://github.com/activerecord-hackery/ransack/pull/1121
|
|
139
|
+
* Fixes polymorphic joins. by @PhilCoggins in https://github.com/activerecord-hackery/ransack/pull/1122
|
|
140
|
+
* Drop support for activerecord older than 5.2.4 by @deivid-rodriguez in https://github.com/activerecord-hackery/ransack/pull/1166
|
|
141
|
+
* Adapt to quoting change in Rails by @deivid-rodriguez in https://github.com/activerecord-hackery/ransack/pull/1165
|
|
142
|
+
* Typo in docs by @brett-anderson in https://github.com/activerecord-hackery/ransack/pull/1155
|
|
143
|
+
* Add Rails 6.1 support by @deivid-rodriguez in https://github.com/activerecord-hackery/ransack/pull/1172
|
|
144
|
+
* Strip Leading & Trailing Whitespace Before Searching by @itsalongstory in https://github.com/activerecord-hackery/ransack/pull/1126
|
|
145
|
+
* Use unfrozen version of symbol to string by @fauno in https://github.com/activerecord-hackery/ransack/pull/1149
|
|
20
146
|
|
|
21
147
|
## 2.3.2 - 2020-01-11
|
|
22
148
|
|
|
@@ -200,7 +326,7 @@
|
|
|
200
326
|
ignored when block parameter is specified.
|
|
201
327
|
PR [#818](https://github.com/activerecord-hackery/ransack/pull/818).
|
|
202
328
|
|
|
203
|
-
* No need pass some
|
|
329
|
+
* No need pass some arguments to JoinAssociation#join_constraints in Rails 5.1.
|
|
204
330
|
PR [#814](https://github.com/activerecord-hackery/ransack/pull/814).
|
|
205
331
|
Fixes [#807](https://github.com/activerecord-hackery/ransack/issues/807).
|
|
206
332
|
Reference [rails/rails#28267](https://github.com/rails/rails/pull/28267)
|
data/CONTRIBUTING.md
CHANGED
|
@@ -64,9 +64,7 @@ Here's a quick guide:
|
|
|
64
64
|
2. Create a thoughtfully-named branch for your changes (`git checkout -b my-new-feature`).
|
|
65
65
|
|
|
66
66
|
3. Install the development dependencies by running `bundle install`.
|
|
67
|
-
To install rails other than latest (set in Gemfile): `RAILS='
|
|
68
|
-
|
|
69
|
-
$ RAILS='5-2-stable' bundle install
|
|
67
|
+
To install rails other than latest (set in Gemfile): `RAILS='6-1-stable' bundle install`
|
|
70
68
|
|
|
71
69
|
4. Begin by running the tests. We only take pull requests with passing tests,
|
|
72
70
|
and it's great to know that you have a clean slate:
|
|
@@ -115,6 +113,9 @@ Here's a quick guide:
|
|
|
115
113
|
$ git config --global user.email "contributor@example.com"
|
|
116
114
|
|
|
117
115
|
10. Commit your changes (`git commit -am 'Add feature/fix bug/improve docs'`).
|
|
116
|
+
If your pull request only contains documentation changes, please remember
|
|
117
|
+
to add `[skip ci]` to the beginning of your commit message so the CI
|
|
118
|
+
test suite doesn't :runner: needlessly.
|
|
118
119
|
|
|
119
120
|
11. If necessary, rebase your commits into logical chunks, without errors. To
|
|
120
121
|
interactively rebase and cherry-pick from, say, the last 10 commits:
|
data/Gemfile
CHANGED
|
@@ -3,7 +3,7 @@ gemspec
|
|
|
3
3
|
|
|
4
4
|
gem 'rake'
|
|
5
5
|
|
|
6
|
-
rails = ENV['RAILS'] || '6-
|
|
6
|
+
rails = ENV['RAILS'] || '6-1-stable'
|
|
7
7
|
|
|
8
8
|
rails_version = case rails
|
|
9
9
|
when /\// # A path
|
|
@@ -15,7 +15,7 @@ rails_version = case rails
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
gem 'faker', '~> 2.0'
|
|
18
|
-
gem 'sqlite3',
|
|
18
|
+
gem 'sqlite3', '~> 1.4.1'
|
|
19
19
|
gem 'pg', '~> 1.0'
|
|
20
20
|
gem 'pry', '~> 0.12.2'
|
|
21
21
|
gem 'byebug'
|