lex-transformer 0.3.6 → 0.3.8

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: 10e195224847a9d3119c19f1569959d35b68201f84e30ca0ec4cf8627e674be0
4
- data.tar.gz: 414298a96a53d1f5ad820444bc6e73f0eb271dbe707aa61b3cc2eecf1532bc95
3
+ metadata.gz: c92cdefc48c5e4e53aa8ec079f36382e7135712557b55f3299e0ddf59c5663d7
4
+ data.tar.gz: e57d78a41c47c8eabd8c648aabc3050fa919acc636278221c937425e55dd16ef
5
5
  SHA512:
6
- metadata.gz: 18888c7c12edbc4776272f958088a096d6106d776c5c43af9bb772c31694dc4473b7d098c8c79e9eac3e45e3f65a796e2a2eb485fa25a70f515586232417c614
7
- data.tar.gz: 9bfbe539fe75e4283c94b0913884c3012d22f1a03cc1a0dd33d06346898934b52386be4ce3f51e97acda2e2aa5d74b700981688749a0565a6710f5ad59f8c7ae
6
+ metadata.gz: 6a4f3f4cc10d4b5a31330406c6dae0c51bdd311bd6fb1d6501d3ef8956e2c3322eed48a1f3e98ebf7d2fe6873c1b0ccf1f72c4dc984437969547f67cb9556d92
7
+ data.tar.gz: 1b4c9d78b91e5a0ab5a5b2afb0463570d9762206b8f890b0dacd34437c74e98a176352274ba5f5ce89036957614c84f085c558039fec7f1c142098f884de0202
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.8] - 2026-04-23
4
+
5
+ ### Fixed
6
+ - Transport module: replace lazy `extend` pattern with standard eager `require` + `extend`, fixing `NameError: uninitialized constant Transport::Queues` when lex-transformer boots before `Legion::Extensions::Transport` is loaded (fixes #8)
7
+
8
+ ## [0.3.7] - 2026-04-13
9
+
10
+ ### Added
11
+ - `:engine` to `send_task` whitelist — transformer now forwards the explicit engine parameter from the relationship row to the downstream dispatch message
12
+
3
13
  ## [0.3.6] - 2026-03-30
4
14
 
5
15
  ### Changed
data/CLAUDE.md CHANGED
@@ -10,7 +10,7 @@ Legion Extension that transforms task payloads between services in a relationshi
10
10
 
11
11
  **GitHub**: https://github.com/LegionIO/lex-transformer
12
12
  **License**: MIT
13
- **Version**: 0.3.3
13
+ **Version**: 0.3.8
14
14
 
15
15
  ## Architecture
16
16
 
@@ -141,10 +141,6 @@ result[:result] # => { x: "hello" }
141
141
 
142
142
  ## Testing
143
143
 
144
- ## Known Behaviour Notes
145
-
146
- - The `Transport` module uses lazy `extend` at build time. This prevents `uninitialized constant Legion::Extensions::Transport` errors during parallel extension boot where multiple extensions extend the same module concurrently.
147
-
148
144
  ```bash
149
145
  bundle install
150
146
  bundle exec rspec # 130 examples, 0 failures
@@ -77,7 +77,7 @@ module Legion
77
77
 
78
78
  def send_task(**opts)
79
79
  payload = {}
80
- %i[task_id relationship_id trigger_function_id runner_class function_id function chain_id debug args].each do |thing|
80
+ %i[task_id relationship_id trigger_function_id runner_class function_id function chain_id debug engine args].each do |thing|
81
81
  payload[thing] = opts[thing] if opts.key? thing
82
82
  end
83
83
 
@@ -1,19 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'legion/extensions/transport'
4
+
3
5
  module Legion
4
6
  module Extensions
5
7
  module Transformer
6
8
  module Transport
7
- def self.build
8
- unless @_extended
9
- return unless defined?(::Legion::Extensions::Transport)
10
-
11
- extend ::Legion::Extensions::Transport
9
+ extend Legion::Extensions::Transport
12
10
 
13
- @_extended = true
14
- end
15
- Legion::Extensions::Transport.instance_method(:build).bind_call(self)
16
- end
11
+ build
17
12
 
18
13
  def self.additional_e_to_q
19
14
  [
@@ -3,7 +3,7 @@
3
3
  module Legion
4
4
  module Extensions
5
5
  module Transformer
6
- VERSION = '0.3.6'
6
+ VERSION = '0.3.8'
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-transformer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity