good_job 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6815620f600cf3f925daf7a5f13074f79ee26d7ab16b28b28c3be9e1ac2b9ac9
|
4
|
+
data.tar.gz: b7befdf977e9bebe94ac2707bea503c9e60e112045838885ee398a319026af9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba25873794f78d9e7081a0ae387d4e2c8cf6de96eaa28859e7fe565d85261de57538680f00d172f6eadcb91c157c1d2f34d66df2a630e94440b55fdd1f8ded05
|
7
|
+
data.tar.gz: 76a0d3cd4b76758f72a81f99a04aff2ea50396828b7fa4c440a3d401c01fc4accfb9d821f333b3ff71d517be565f9f9376ad27da5742611ff1744bc70c7d2f16
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v2.6.2](https://github.com/bensheldon/good_job/tree/v2.6.2) (2021-11-05)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v2.6.1...v2.6.2)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Rename Filterable\#search to Filterable\#search\_text to avoid name collision [\#451](https://github.com/bensheldon/good_job/pull/451) ([bensheldon](https://github.com/bensheldon))
|
10
|
+
|
11
|
+
**Closed issues:**
|
12
|
+
|
13
|
+
- v2.6.1 is incompatible with gem thinking-sphinx [\#450](https://github.com/bensheldon/good_job/issues/450)
|
14
|
+
|
3
15
|
## [v2.6.1](https://github.com/bensheldon/good_job/tree/v2.6.1) (2021-11-05)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v2.6.0...v2.6.1)
|
@@ -14,7 +14,7 @@ module GoodJob
|
|
14
14
|
query = base_query
|
15
15
|
query = query.job_class(params[:job_class]) if params[:job_class].present?
|
16
16
|
query = query.where(queue_name: params[:queue_name]) if params[:queue_name].present?
|
17
|
-
query = query.
|
17
|
+
query = query.search_text(params[:query]) if params[:query].present?
|
18
18
|
|
19
19
|
if params[:state]
|
20
20
|
case params[:state]
|
@@ -18,7 +18,7 @@ module GoodJob
|
|
18
18
|
|
19
19
|
query = query.job_class(params[:job_class]) if params[:job_class].present?
|
20
20
|
query = query.where(queue_name: params[:queue_name]) if params[:queue_name].present?
|
21
|
-
query = query.
|
21
|
+
query = query.search_text(params[:query]) if params[:query].present?
|
22
22
|
|
23
23
|
if params[:state]
|
24
24
|
case params[:state]
|
data/lib/good_job/filterable.rb
CHANGED
@@ -24,12 +24,12 @@ module GoodJob
|
|
24
24
|
end)
|
25
25
|
|
26
26
|
# Search records by text query.
|
27
|
-
# @!method
|
27
|
+
# @!method search_text(query)
|
28
28
|
# @!scope class
|
29
29
|
# @param query [String]
|
30
30
|
# Search Query
|
31
31
|
# @return [ActiveRecord::Relation]
|
32
|
-
scope :
|
32
|
+
scope :search_text, (lambda do |query|
|
33
33
|
query = query.to_s.strip
|
34
34
|
next if query.blank?
|
35
35
|
|
data/lib/good_job/version.rb
CHANGED