omq-cli 0.12.1 → 0.12.3
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 +15 -0
- data/lib/omq/cli/expression_evaluator.rb +5 -18
- data/lib/omq/cli/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: bf29033480f27f1a249d6f22b85a2f569687e79ed6ddde06a0ef74eacafa0863
|
|
4
|
+
data.tar.gz: 4d51ae13241f047758223a2b4f055721d2b1a8809c5ba7c1154868141b1e22e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 254ca00deef4d9bd9e4bbafd3cd44f785c27f63446437367b178e76711cdeda33ab779f7880e71181d3d60198458bd1f5741f1890e0d9125d797282dbef96189
|
|
7
|
+
data.tar.gz: 642c4eebaedc3d3b606693e40c3cf6112ee4c06b60432c60831bd75b0d3be171d81a2f4232c27a49fbed9c287a061e490dc3a62ebdfd618cf0f7fa3ea9624fff
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.3 — 2026-04-10
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Gem version
|
|
8
|
+
|
|
9
|
+
## 0.12.2 — 2026-04-10
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **Eval results coerced via `#to_s`.** Non-string eval results (e.g.
|
|
14
|
+
`-E 'Time.now'`, `-E '[42, :sym]'`) are now coerced to strings
|
|
15
|
+
instead of raising `NoMethodError` on `#to_str`. Array elements are
|
|
16
|
+
coerced individually.
|
|
17
|
+
|
|
3
18
|
## 0.12.1 — 2026-04-10
|
|
4
19
|
|
|
5
20
|
### Changed
|
|
@@ -48,14 +48,8 @@ module OMQ
|
|
|
48
48
|
return SENT if result.equal?(context)
|
|
49
49
|
return [result] if @format == :marshal
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
result
|
|
54
|
-
when String
|
|
55
|
-
[result]
|
|
56
|
-
else
|
|
57
|
-
[result.to_str]
|
|
58
|
-
end
|
|
51
|
+
result = result.is_a?(Array) ? result : [result]
|
|
52
|
+
result.map!(&:to_s)
|
|
59
53
|
rescue => e
|
|
60
54
|
$stderr.puts "omq: eval error: #{e.message} (#{e.class})"
|
|
61
55
|
exit 3
|
|
@@ -66,16 +60,9 @@ module OMQ
|
|
|
66
60
|
# Used inside Ractor worker blocks where instance methods are unavailable.
|
|
67
61
|
#
|
|
68
62
|
def self.normalize_result(result)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
when Array
|
|
73
|
-
result
|
|
74
|
-
when String
|
|
75
|
-
[result]
|
|
76
|
-
else
|
|
77
|
-
[result.to_s]
|
|
78
|
-
end
|
|
63
|
+
return nil if result.nil?
|
|
64
|
+
result = result.is_a?(Array) ? result : [result]
|
|
65
|
+
result.map!(&:to_s)
|
|
79
66
|
end
|
|
80
67
|
|
|
81
68
|
|
data/lib/omq/cli/version.rb
CHANGED