sidekiq-tasks 1.0.0 → 1.0.1
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/CHANGELOG.md +4 -0
- data/lib/sidekiq/tasks/strategies/rules/enable_with_comment.rb +2 -2
- data/lib/sidekiq/tasks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57f891b4fbcdfb74ead4963a6200add3e7a8bd005099feefb9afee4f17c82078
|
|
4
|
+
data.tar.gz: 01354a40f050c85cac8460b204a64c7587bbfa9980677e409b91dca9f69baf61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce39a868bdd6e161a9cd32139b22fd6842548492d6b7c09f05aaeaaee024f3797825748c73a95c8c08d4fbc97ca13bf1d1a32cc13cf8308eb0baf154fb48e269
|
|
7
|
+
data.tar.gz: 46cbc44086ec3d37bf5d24bf772fca3434dbbb4fc076d9e4ddcc082ebcc2babb3243de9cbb13bbf1aba542ed27abfe49df2386ca615e56f26d2bd2a20dacee18
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### [1.0.1] - 2026-03-17
|
|
4
|
+
|
|
5
|
+
- Fix magic comment detection for tasks with multiline descriptions (heredoc, multiline strings, backslash continuation).
|
|
6
|
+
|
|
3
7
|
### [1.0.0] - 2026-03-13
|
|
4
8
|
|
|
5
9
|
- 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
|
|
38
|
+
return false unless desc
|
|
39
39
|
|
|
40
|
-
desc_line_index = lines[0...task_line].rindex { |line| line.strip.
|
|
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
|
|