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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ae5eef5d0fe12134463ff0ab7935fba5f4902420933867f1402f8e1dd9720fa
4
- data.tar.gz: 61e61364b924d210f90ff3470053c92a18a8641d9dfca42c44e3bf21bb019efc
3
+ metadata.gz: 655758b4611fd1b18f693e733f31395f5fbe7e936cc38476222f5a7797d43b9b
4
+ data.tar.gz: e6040d7568eebac7c3464c88e496ae16dffcd8ed9a39660ec62c4e436d6510be
5
5
  SHA512:
6
- metadata.gz: c93314899efe9674545a49fdccae74429bfd6fcc581915039682f0fe7a8c591bed8322bb430469bd528fb0a0a62905c6e347c8ba772264d0235ccd7d97545aa8
7
- data.tar.gz: 64e0899931e7981cde68d136da0e7fa059da37b51d35a62224c1c02ffe6e9dd896b70f6ff5f47366076226bffb4278252a188828d966d21b7f755b9bef1739ee
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
- cache_get("tasker:#{key}")
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
- cache_set("tasker:#{key}", value, ttl)
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
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Tasker
6
- VERSION = '0.3.5'
6
+ VERSION = '0.3.7'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lex-tasker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity