lutaml-model 0.8.76 → 0.8.78
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: bbb8929566d9265231917502a2f69360d8ae3f386a7dae26289bfd7764d08938
|
|
4
|
+
data.tar.gz: 6dd3b2b0eb762944dbd39ee8f799012d9b808c980030d9daaf8fb8fed9cbbec6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f495fccd94badb5057c976aec507acbcf8319bf0f4cf56783ad0d9cade2f982a0806b473a6e89ed7496d6baa4cb8e05aa871bccf5d432c963c6e66c8ad22661
|
|
7
|
+
data.tar.gz: 44bc1cc78b2ef1e8f75e9d0237d35eab9dc4d2d5d0f49efed9966c87933a607f49724999c7854cbd428f5a6fd4c2fdc945bd1750876ab2f603d25986b2169b01
|
|
@@ -328,7 +328,7 @@ register = self.register)
|
|
|
328
328
|
# Custom methods receive an Element "doc" and populate it
|
|
329
329
|
# (public contract, TODO.perf 19 keeps it): a scratch element
|
|
330
330
|
# is merged into the output hash afterwards.
|
|
331
|
-
doc = Lutaml::KeyValue::DataModel::Element.new("
|
|
331
|
+
doc = Lutaml::KeyValue::DataModel::Element.new("__root__")
|
|
332
332
|
# Custom methods may write children, or doc.value[key]=, or
|
|
333
333
|
# nothing at all (pubid 2.0 regression: an empty scratch
|
|
334
334
|
# flattened to {key => nil} and crashed the merge). Seed the
|
|
@@ -349,8 +349,8 @@ register = self.register)
|
|
|
349
349
|
# lutaml-model#892.) Empty docs serialize as nothing, matching
|
|
350
350
|
# the pre-0.8.74 behavior.
|
|
351
351
|
merged = doc.to_hash
|
|
352
|
-
parent.update(merged["
|
|
353
|
-
merged["
|
|
352
|
+
parent.update(merged["__root__"]) if merged.is_a?(::Hash) &&
|
|
353
|
+
merged["__root__"].is_a?(::Hash)
|
|
354
354
|
return
|
|
355
355
|
end
|
|
356
356
|
|
|
@@ -19,6 +19,11 @@ module Lutaml
|
|
|
19
19
|
# not emit Instrumentation events — the work did not happen.
|
|
20
20
|
#
|
|
21
21
|
# Semantics (deliberate):
|
|
22
|
+
# - Growth is unbounded by default: every distinct input digs its
|
|
23
|
+
# own entry, and nothing evicts until the store does. Bound the
|
|
24
|
+
# store — lutaml-store's memory adapter accepts max_entries —
|
|
25
|
+
# via Config.conversion_cache before enabling this in
|
|
26
|
+
# long-lived batch processes.
|
|
22
27
|
# - `from_*` hits return the same cached instance for identical
|
|
23
28
|
# input — across callers and threads. Treat results as read-only;
|
|
24
29
|
# classes whose callers mutate parse results must not opt in.
|
data/lib/lutaml/model/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lutaml-model
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.78
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|