sidekiq-tasks 1.0.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fee03d24fdcc9755f8fadb9915b39127fac89ba1f4447a7d822998b9a64c102
4
- data.tar.gz: 8a6c5940eae17706522c7f584c392779a0b2c513848fa49cab8206c2a5af5473
3
+ metadata.gz: 6f83fac86d2f51190ad4a2a5df9bee05f0f06fb5329b12895cd59f9dd253bb4b
4
+ data.tar.gz: 3955f36ff3bceab435c4e862fd1c2110c3b7e2c9c315a895a1354cc0acaa8f26
5
5
  SHA512:
6
- metadata.gz: b85eb95f150f99c0de282d0ac6fb1356a984f0cdc7d5a485baf1a9fdb7963346156a9e4c224d1cd22476002efd34bb8ed18bbf1252d762cbd25c8b41623557b4
7
- data.tar.gz: 51ca1179d3232c84139c8ef380290aa5e9bd8f3b97b21e92a54165fcee0376a1a42b207ec9029510f086b35e2ec69aa091685f89d343a3eb38c31296d8600709
6
+ metadata.gz: 70278e1ffc5110edaeebcf2f275cc3942a683fcf60ebf8154810c5a69f0eb27335ee333cccda10d3f266c8978078de826abd9c58bc532e850e844f5d490843e3
7
+ data.tar.gz: a951353d439a6a0e21b643a55e20bae9e695ff569f7d8c6e46c15c18599528c1f1675c2833869ccf474529b45264fd491c785646f729151d7bf8867596d0b90d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## Changelog
2
2
 
3
+ ### [1.1.0] - 2026-04-08
4
+
5
+ - Search tasks by description in addition to name.
6
+
7
+ ### [1.0.1] - 2026-03-17
8
+
9
+ - Fix magic comment detection for tasks with multiline descriptions (heredoc, multiline strings, backslash continuation).
10
+
3
11
  ### [1.0.0] - 2026-03-13
4
12
 
5
13
  - Add configurable `storage` option with support for custom backends (default: Redis).
@@ -35,9 +35,9 @@ module Sidekiq
35
35
  end
36
36
 
37
37
  def desc_has_magic_comment?(desc, lines, task_line)
38
- return false unless desc&.include?("\n")
38
+ return false unless desc
39
39
 
40
- desc_line_index = lines[0...task_line].rindex { |line| line.strip.start_with?("desc") }
40
+ desc_line_index = lines[0...task_line].rindex { |line| line.strip.match?(/^desc\b/) }
41
41
 
42
42
  return false unless desc_line_index
43
43
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Tasks
5
- VERSION = "1.0.0"
5
+ VERSION = "1.1.0"
6
6
  end
7
7
  end
@@ -21,7 +21,7 @@ module Sidekiq
21
21
  end
22
22
 
23
23
  def filtered_collection
24
- @_filtered_collection ||= Sidekiq::Tasks.tasks.where(name: filter)
24
+ @_filtered_collection ||= Sidekiq::Tasks.tasks.where(name: filter, desc: filter)
25
25
  end
26
26
 
27
27
  def filter
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor