good_job 4.13.2 → 4.13.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3274686b09e03b2ec9b5d58f3b8bf70472e30c739b907697e7ad1f2ad7ce6b50
4
- data.tar.gz: 0f2ee28df948382eb23cffd0535545462490737c62c3d9133be5afb7ef3cfc52
3
+ metadata.gz: 2993eeb7c69f566b281456e5d7122dbbc685de9efc5ce56ae7b62edbec5e9d1a
4
+ data.tar.gz: 9528654eca760b6bcb2bf18890263c4213c0e4df71174e9ab5a55ac55982182b
5
5
  SHA512:
6
- metadata.gz: bea1412da3fc1d276688733cd2d5aa622939211b8cc4cbdaa52a0bc5543ded93f5350be14d0cdbed987b988cc9b205dd0dc144b209d7ecc5ced25dad26221ec7
7
- data.tar.gz: 61240a584b06c7871f815d123a78a9c3066a8a739a49f2a9f403bdfcf255f97e691ad5fd5754a301f7b7e5c66a3cb09161d312348c68a022a958d5e5cbba27e1
6
+ metadata.gz: 1d293a78adc12d75fde3473c84a65c7a4c7cabc6d9e35bb39d9e9c9547d376fd1ff41877b92ceba3a1e87d906a1242d224ed4f61cf9e790146ab56b01111c183
7
+ data.tar.gz: 1ded68b5610c971520b7f515566d4def597cfca9dfb85e4d099422b756f40720ccba94864a2998bf7b7f86bb7d6588b59e86e5ec93e62672b899b12d2cbcba7b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [v4.13.3](https://github.com/bensheldon/good_job/tree/v4.13.3) (2026-02-18)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v4.13.2...v4.13.3)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Fix search\_text scope using mismatched text search configurations [\#1716](https://github.com/bensheldon/good_job/pull/1716) ([alexspeller](https://github.com/alexspeller))
10
+ - --daemonize no longer changes working directory, fixes relative paths [\#1714](https://github.com/bensheldon/good_job/pull/1714) ([jamie](https://github.com/jamie))
11
+
12
+ **Merged pull requests:**
13
+
14
+ - Update suggested Puma config in README [\#1713](https://github.com/bensheldon/good_job/pull/1713) ([Spone](https://github.com/Spone))
15
+
3
16
  ## [v4.13.2](https://github.com/bensheldon/good_job/tree/v4.13.2) (2026-01-29)
4
17
 
5
18
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v4.13.1...v4.13.2)
data/README.md CHANGED
@@ -1302,16 +1302,18 @@ Depending on your application configuration, you may need to take additional ste
1302
1302
  ```ruby
1303
1303
  # config/puma.rb
1304
1304
 
1305
- before_fork do
1306
- GoodJob.shutdown
1307
- end
1305
+ if ENV.fetch("WEB_CONCURRENCY", 0).to_i > 0
1306
+ before_fork do
1307
+ GoodJob.shutdown
1308
+ end
1308
1309
 
1309
- on_worker_boot do
1310
- GoodJob.restart
1311
- end
1310
+ before_worker_boot do
1311
+ GoodJob.restart
1312
+ end
1312
1313
 
1313
- on_worker_shutdown do
1314
- GoodJob.shutdown
1314
+ before_worker_shutdown do
1315
+ GoodJob.shutdown
1316
+ end
1315
1317
  end
1316
1318
 
1317
1319
  MAIN_PID = Process.pid
@@ -43,8 +43,8 @@ module GoodJob
43
43
  # TODO: turn this into proper bind parameters in Arel
44
44
  tsvector = "(to_tsvector('english', id::text) || to_tsvector('english', COALESCE(active_job_id::text, '')) || to_tsvector('english', serialized_params) || to_tsvector('english', COALESCE(serialized_params->>'arguments', '')) || to_tsvector('english', COALESCE(error, '')) || to_tsvector('english', COALESCE(array_to_string(labels, ' '), '')))"
45
45
  to_tsquery_function = database_supports_websearch_to_tsquery? ? 'websearch_to_tsquery' : 'plainto_tsquery'
46
- where("#{tsvector} @@ #{to_tsquery_function}(?)", query)
47
- .order(sanitize_sql_for_order([Arel.sql("ts_rank(#{tsvector}, #{to_tsquery_function}(?))"), query]) => 'DESC')
46
+ where("#{tsvector} @@ #{to_tsquery_function}('english', ?)", query)
47
+ .order(sanitize_sql_for_order([Arel.sql("ts_rank(#{tsvector}, #{to_tsquery_function}('english', ?))"), query]) => 'DESC')
48
48
  end)
49
49
  end
50
50
 
@@ -19,7 +19,7 @@ module GoodJob
19
19
  def daemonize
20
20
  check_pid_dir
21
21
  check_pid
22
- ::Process.daemon
22
+ ::Process.daemon(true)
23
23
  write_pid
24
24
  end
25
25
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '4.13.2'
5
+ VERSION = '4.13.3'
6
6
 
7
7
  # GoodJob version as Gem::Version object
8
8
  GEM_VERSION = Gem::Version.new(VERSION)
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: 4.13.2
4
+ version: 4.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon