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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c92cdefc48c5e4e53aa8ec079f36382e7135712557b55f3299e0ddf59c5663d7
|
|
4
|
+
data.tar.gz: e57d78a41c47c8eabd8c648aabc3050fa919acc636278221c937425e55dd16ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
|
|
8
|
-
unless @_extended
|
|
9
|
-
return unless defined?(::Legion::Extensions::Transport)
|
|
10
|
-
|
|
11
|
-
extend ::Legion::Extensions::Transport
|
|
9
|
+
extend Legion::Extensions::Transport
|
|
12
10
|
|
|
13
|
-
|
|
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
|
[
|