metanorma-plugin-lutaml 0.7.96 → 0.7.97
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: 2b78176def3d293383c36eb2c0494d925c45bcf4140609a531ddab25e31487ce
|
|
4
|
+
data.tar.gz: bb97f5ca8efaffc0514fcf32be8d75a4422b8380bf572c9397988117c183f7b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e2c847cc366056bb088c64d4d9708f61b8131c3e20d1f6b2f9f1a3c0dec33f7ec68c23123b3447a5a9fb3325a868815ed8f70df67c6980bcb4f7052d174edcb
|
|
7
|
+
data.tar.gz: 9bbce91744d7b1ecefc3b06b16de97657939be8edf22c412a4f89234f2280295d69fda7e43850b944fcbc2628ac5b7d7829621151623e8155b7b0c41cbc34455
|
|
@@ -42,7 +42,14 @@ module Metanorma
|
|
|
42
42
|
# token is nil when no slice was prepared, in which case the
|
|
43
43
|
# macro whole-loads the source unchanged - warned about when
|
|
44
44
|
# the document is engaged and the source is large.
|
|
45
|
+
#
|
|
46
|
+
# .qea sources skip the slicing machinery entirely: the parse
|
|
47
|
+
# cache resolves them through Ea::Qea::LazyDrops, whose
|
|
48
|
+
# per-class SQLite queries are the bounded-memory path. They
|
|
49
|
+
# must not reach Ea::Xmi::Slicer - its SAX index pass reads
|
|
50
|
+
# the file as XML text, and SQLite bytes carry null bytes.
|
|
45
51
|
def rewrite(xmi_path, name_path)
|
|
52
|
+
return [xmi_path, name_path, nil] if qea_source?(xmi_path)
|
|
46
53
|
return [xmi_path, name_path, nil] unless @registry
|
|
47
54
|
|
|
48
55
|
entry = @registry[xmi_path]
|
|
@@ -54,6 +61,10 @@ module Metanorma
|
|
|
54
61
|
[xmi_path, bare_name(name_path), [xmi_path, group_key]]
|
|
55
62
|
end
|
|
56
63
|
|
|
64
|
+
def qea_source?(path)
|
|
65
|
+
path.to_s.downcase.end_with?(".qea")
|
|
66
|
+
end
|
|
67
|
+
|
|
57
68
|
# The prepared slice for a token from #rewrite.
|
|
58
69
|
def slice_string(token)
|
|
59
70
|
@slices[token]
|
|
@@ -99,6 +110,7 @@ module Metanorma
|
|
|
99
110
|
@registry = {}
|
|
100
111
|
@slices = {}
|
|
101
112
|
groups.each do |path, entries|
|
|
113
|
+
next if qea_source?(path)
|
|
102
114
|
next unless File.size(path) >= MIN_SOURCE_BYTES
|
|
103
115
|
|
|
104
116
|
slice_groups = {}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-plugin-lutaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.97
|
|
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-12-
|
|
11
|
+
date: 2026-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|