lex-tasker 0.3.5 → 0.3.7
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 +10 -0
- data/lib/legion/extensions/tasker/helpers/task_finder.rb +2 -2
- data/lib/legion/extensions/tasker/runners/check_subtask.rb +1 -1
- data/lib/legion/extensions/tasker/runners/fetch_delayed.rb +1 -1
- data/lib/legion/extensions/tasker/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: 655758b4611fd1b18f693e733f31395f5fbe7e936cc38476222f5a7797d43b9b
|
|
4
|
+
data.tar.gz: e6040d7568eebac7c3464c88e496ae16dffcd8ed9a39660ec62c4e436d6510be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca29e06d642a053a81b8ff60ce3c95e09f588a4eb238f5083c71525f951084e1440d1f368fb375f0c3240e4cb091ebfedeb1fedaa3de6e166eb3e246d5666948
|
|
7
|
+
data.tar.gz: ab53a69217e469a6c92803dd58e76a9d31ce69d79020085ad5d2b8e5b620e11aa12a73b8b6ff7b5cbf720c5edbe51881512e217a9c8dd3f3726500c3c0cef3a8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.7] - 2026-03-30
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- guard against `no implicit conversion of Symbol into Integer` in `send_task` — check `opts[:result].is_a?(Hash)` before accessing `[:success]` in both CheckSubtask and FetchDelayed runners
|
|
7
|
+
|
|
8
|
+
## [0.3.6] - 2026-03-30
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- fix recursive cache_get/cache_set regression — restore Legion::Cache.get/set calls with rubocop:disable comments to prevent future auto-correction (#3)
|
|
12
|
+
|
|
3
13
|
## [0.3.5] - 2026-03-30
|
|
4
14
|
|
|
5
15
|
### Changed
|
|
@@ -8,7 +8,7 @@ module Legion
|
|
|
8
8
|
def cache_get(key)
|
|
9
9
|
return nil unless defined?(Legion::Cache) && Legion::Cache.respond_to?(:connected?) && cache_connected?
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Legion::Cache.get("tasker:#{key}") # rubocop:disable Legion/HelperMigration/DirectCache
|
|
12
12
|
rescue StandardError => _e
|
|
13
13
|
nil
|
|
14
14
|
end
|
|
@@ -16,7 +16,7 @@ module Legion
|
|
|
16
16
|
def cache_set(key, value, ttl: 60)
|
|
17
17
|
return unless defined?(Legion::Cache) && Legion::Cache.respond_to?(:connected?) && cache_connected?
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Legion::Cache.set("tasker:#{key}", value, ttl) # rubocop:disable Legion/HelperMigration/DirectCache
|
|
20
20
|
rescue StandardError => _e
|
|
21
21
|
nil
|
|
22
22
|
end
|
|
@@ -78,7 +78,7 @@ module Legion
|
|
|
78
78
|
def send_task(**opts)
|
|
79
79
|
opts[:results] = opts[:result] if opts.key?(:result) && !opts.key?(:results)
|
|
80
80
|
opts[:success] = if opts.key?(:result) && opts.key?(:success)
|
|
81
|
-
opts[:result][:success]
|
|
81
|
+
opts[:result].is_a?(Hash) ? opts[:result][:success] : opts[:success]
|
|
82
82
|
elsif opts.key?(:success)
|
|
83
83
|
opts[:success]
|
|
84
84
|
else
|
|
@@ -64,7 +64,7 @@ module Legion
|
|
|
64
64
|
def send_task(**opts)
|
|
65
65
|
opts[:results] = opts[:result] if opts.key?(:result) && !opts.key?(:results)
|
|
66
66
|
opts[:success] = if opts.key?(:result) && opts.key?(:success)
|
|
67
|
-
opts[:result][:success]
|
|
67
|
+
opts[:result].is_a?(Hash) ? opts[:result][:success] : opts[:success]
|
|
68
68
|
elsif opts.key?(:success)
|
|
69
69
|
opts[:success]
|
|
70
70
|
else
|