legion-json 1.3.0 → 1.3.1
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 +6 -0
- data/lib/legion/json/version.rb +1 -1
- data/lib/legion/json.rb +3 -2
- 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: c9207e4ba4de5d46962daf28c5eba3f52062f0732093807f64d1fecaf08ac4e9
|
|
4
|
+
data.tar.gz: 66b65ae39fd1092625bf665a0a2324b502cda70a10f1d6b45841b962aaa049d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7abc40ed9df6cb3a95a87549891d0bee745d2b32bb1a200c92124ac0ad866cdb0657e6ceaab9e10ab0c1f1dbc51a3775dd6fd382f0b9dccf183cc449e172c58
|
|
7
|
+
data.tar.gz: '0474844c608b995629c9f2ca594e0f149a53064a11a35f87d5fe8a7847eaf0c3caedf64e044917e9f9b0b8fbcdbba58a407dc0b0adb4763fdd37fc0a46ba481c'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Legion::JSON
|
|
2
2
|
|
|
3
|
+
## [1.3.1] - 2026-03-27
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- `.dump` now accepts `**kwargs` — callers can pass `Legion::JSON.dump(key: val)` without wrapping in `{}`
|
|
7
|
+
- `pretty:` keyword option preserved; all other kwargs become the serialized object
|
|
8
|
+
|
|
3
9
|
## [1.3.0] - 2026-03-26
|
|
4
10
|
|
|
5
11
|
### Added
|
data/lib/legion/json/version.rb
CHANGED
data/lib/legion/json.rb
CHANGED
|
@@ -21,8 +21,9 @@ module Legion
|
|
|
21
21
|
end
|
|
22
22
|
module_function :load
|
|
23
23
|
|
|
24
|
-
def dump(object, pretty: false)
|
|
25
|
-
|
|
24
|
+
def dump(object = nil, pretty: false, **kwargs)
|
|
25
|
+
data = object.nil? ? kwargs : object
|
|
26
|
+
parser.dump(data, pretty: pretty)
|
|
26
27
|
end
|
|
27
28
|
module_function :dump
|
|
28
29
|
|