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: 3a413bcbddac29378e8fb0de0cc9305b57bd2e31041973f5db2a9dac6f04b7b1
4
- data.tar.gz: d99f0e37ad2c99ac0d69337fefccff11bc522ad370f02ae1ac12d59adab619d8
3
+ metadata.gz: 6815620f600cf3f925daf7a5f13074f79ee26d7ab16b28b28c3be9e1ac2b9ac9
4
+ data.tar.gz: b7befdf977e9bebe94ac2707bea503c9e60e112045838885ee398a319026af9c
5
5
  SHA512:
6
- metadata.gz: 3d6cddf9581a852f72f4c8b337149afc7fc4d2189d6304e510f19ca101cb661c1452b3eca3a123e28750c9729d9f6ca9224855a020296f68693246104864eb4f
7
- data.tar.gz: a042a1f1c29525e4c101b512f74a06cb4f2405a790d5e199e1dac87029e220b404d1b310683a151ef67ed7c50c8d94ae8e28c578b270175085d4c7e60f9040d3
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.search(params['query']) if params[:query].present?
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.search(params['query']) if params[:query].present?
21
+ query = query.search_text(params[:query]) if params[:query].present?
22
22
 
23
23
  if params[:state]
24
24
  case params[:state]
@@ -24,12 +24,12 @@ module GoodJob
24
24
  end)
25
25
 
26
26
  # Search records by text query.
27
- # @!method search(query)
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 :search, (lambda do |query|
32
+ scope :search_text, (lambda do |query|
33
33
  query = query.to_s.strip
34
34
  next if query.blank?
35
35
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '2.6.1'
4
+ VERSION = '2.6.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: good_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon