metanorma-plugin-lutaml 0.7.95 → 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: 047d924a81b12df0b93fbabd83cd66a0bdad887571c5c6570603a7c59e315248
4
- data.tar.gz: 367d8e79547a181bec7c8f7bd1680b718f641656cedef81f636054dc370d5b21
3
+ metadata.gz: 2b78176def3d293383c36eb2c0494d925c45bcf4140609a531ddab25e31487ce
4
+ data.tar.gz: bb97f5ca8efaffc0514fcf32be8d75a4422b8380bf572c9397988117c183f7b4
5
5
  SHA512:
6
- metadata.gz: cbfbc7dfd8f988284a67fa4a980fdf415d204c56366a60aa3b62c7275fe2d94fede5730729b6e776f54b30bffb6ca3c0eb0af9eee97daf01563a74a404301931
7
- data.tar.gz: f3534dd05b844c6bd8442a73f2972e067ea784cb441f0d965751a25246e52bf604c72d0164a56efb6248d5b27020aa4bdeb4125a37de6ecded95f399f143500e
6
+ metadata.gz: 6e2c847cc366056bb088c64d4d9708f61b8131c3e20d1f6b2f9f1a3c0dec33f7ec68c23123b3447a5a9fb3325a868815ed8f70df67c6980bcb4f7052d174edcb
7
+ data.tar.gz: 9bbce91744d7b1ecefc3b06b16de97657939be8edf22c412a4f89234f2280295d69fda7e43850b944fcbc2628ac5b7d7829621151623e8155b7b0c41cbc34455
data/Gemfile CHANGED
@@ -4,7 +4,11 @@ Encoding.default_internal = Encoding::UTF_8
4
4
  source "https://rubygems.org"
5
5
  git_source(:github) { |repo| "https://github.com/#{repo}" }
6
6
 
7
- gemspec
7
+ # Root-level glob: bundler's path-source default ({,*,*/*}.gemspec) also
8
+ # matches nested gemspecs, and its deepest-first index lets a git
9
+ # worktree checkout override the root gem's spec — loading stale code
10
+ # from inside the repo (the ea gem hit exactly this).
11
+ gemspec glob: "*.gemspec"
8
12
 
9
13
  begin
10
14
  eval_gemfile("Gemfile.devel")
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.95".freeze
4
+ VERSION = "0.7.97".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -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 = {}
@@ -40,8 +40,11 @@ Gem::Specification.new do |spec|
40
40
  # diagram/Liquid-drops path — lutaml/ea#234, #246). Ea::Xmi.load/load_graph
41
41
  # (lutaml/ea#86): the partial-load API this gem calls. >= 0.6.167: the
42
42
  # .qea klass-table routing resolves Ea::Qea::LazyDrops.parsed_graph
43
- # (lutaml/ea#278; 0.6.166 lacks it).
44
- spec.add_dependency "ea", "~> 0.6.167"
43
+ # (lutaml/ea#278; 0.6.166 lacks it). >= 0.6.176: the deferred-table
44
+ # lazy path, LRU-capped class graph and instantiate-based hydration
45
+ # shipped across 0.6.167-0.6.176 (#278); the floor tracks the line we
46
+ # test against.
47
+ spec.add_dependency "ea", "~> 0.6.176"
45
48
  spec.add_dependency "expressir", "~> 2.5.0"
46
49
  spec.add_dependency "isodoc", ">= 3.5.0"
47
50
  spec.add_dependency "liquid", "~> 5"
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.95
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-11-28 00:00:00.000000000 Z
11
+ date: 2026-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.6.167
75
+ version: 0.6.176
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.6.167
82
+ version: 0.6.176
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: expressir
85
85
  requirement: !ruby/object:Gem::Requirement