moxml 0.6.10 → 0.6.12
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/Gemfile +1 -1
- data/README.adoc +5 -5
- data/lib/moxml/adapter/leptris.rb +23 -45
- data/lib/moxml/version.rb +1 -1
- data/spec/moxml/adapter/platform_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a33da4e9ee49e1237bef05440ce34cd92c555bd4c9231ec281680fbcea25a13f
|
|
4
|
+
data.tar.gz: 5e1a2445d336d79ffb219638ef87c8577283b47e6b9f23d45779fb46474771be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e08d2d5b2102b8aab4b5a881207724ee7fe3784631583139cdc976ca6d9e4b30e5521c14465c4214c28c0b627194533363cb5b5f5a43546c2b2e90f6dc1828c
|
|
7
|
+
data.tar.gz: 823d4d706715b957f272f91cf79c998a52bb587f45ab63612a649ca5d75c934338faabbc38564ba95583206eeb54592ddc713c859094537ed97a2f0463ebfbda
|
data/Gemfile
CHANGED
data/README.adoc
CHANGED
|
@@ -77,7 +77,7 @@ https://github.com/leptris/leptris-ruby[leptris-ruby] FFI binding
|
|
|
77
77
|
every measured bulk operation — parse, XPath, serialization, SAX, and
|
|
78
78
|
the compiled Moxml::Plan / Moxml::StructPlan materialization paths
|
|
79
79
|
(StructPlan runs 2.3-2.6x raw Nokogiri on the benchmark shape);
|
|
80
|
-
requires leptris >= 1.9.
|
|
80
|
+
requires leptris >= 1.9.420.2 (see version table below).
|
|
81
81
|
|
|
82
82
|
=== Underlying library versions
|
|
83
83
|
|
|
@@ -115,9 +115,9 @@ same libxml2 engine, governed by the consistency suite). Removal
|
|
|
115
115
|
after the deprecation cycle.
|
|
116
116
|
|
|
117
117
|
|Leptris (leptris-ruby)
|
|
118
|
-
|>= 1.9.
|
|
118
|
+
|>= 1.9.420.2
|
|
119
119
|
|ENFORCED hard floor — `MINIMUM_BINDING_VERSION`; the adapter refuses
|
|
120
|
-
to load below it. Raised 1.9.32 → 1.9.194.1 (2026-09-20) → 1.9.386.0 (2026-10-30) → 1.9.410.0 (2026-11-10)
|
|
120
|
+
to load below it. Raised 1.9.32 → 1.9.194.1 (2026-09-20) → 1.9.386.0 (2026-10-30) → 1.9.410.0 (2026-11-10) → 1.9.420.2 (2026-11-14)
|
|
121
121
|
(2026-10-30, the tested pair): every accommodation path below it is
|
|
122
122
|
deleted and all native faces through the 1.9.385 parent-axis train
|
|
123
123
|
are unconditional. The capability report
|
|
@@ -126,7 +126,7 @@ pair serves; cross-import schema sets (`Context#xsd_set`) ride the
|
|
|
126
126
|
compile_set face (1.9.386.0 ✓, the floor now requires it).
|
|
127
127
|
|===
|
|
128
128
|
|
|
129
|
-
NOTE: moxml's dev Gemfile pins `leptris ~> 1.9.
|
|
129
|
+
NOTE: moxml's dev Gemfile pins `leptris ~> 1.9.420.2` (the tested pair; the gemspec itself has zero runtime dependencies). The adapter enforces the floor at load.
|
|
130
130
|
`ox ~> 2.14`, `libxml-ruby >= 5.0`, and the vendored oga fork — the CI
|
|
131
131
|
matrix tests exactly those floors.
|
|
132
132
|
|
|
@@ -147,7 +147,7 @@ the runtime environment:
|
|
|
147
147
|
----
|
|
148
148
|
# Automatic detection — picks the best available adapter
|
|
149
149
|
ctx = Moxml.new
|
|
150
|
-
ctx.config.adapter_name # => :leptris (leptris >= 1.9.
|
|
150
|
+
ctx.config.adapter_name # => :leptris (leptris >= 1.9.420.2), :nokogiri otherwise
|
|
151
151
|
|
|
152
152
|
# Explicit override — always takes precedence
|
|
153
153
|
ctx = Moxml.new(:ox)
|
|
@@ -31,12 +31,16 @@ module Moxml
|
|
|
31
31
|
# "raise all floors"): the tested pair — every gate below it
|
|
32
32
|
# unwound, and the floor is ENFORCED (the load refuses below it;
|
|
33
33
|
# the README's "older bindings do not load" claim is now true).
|
|
34
|
+
# Raised 1.9.410.0 -> 1.9.420.2 (2026-11-14, owner directive):
|
|
35
|
+
# bind_consumer_contract (leptris-ruby#635) - the consumer
|
|
36
|
+
# contract's C-defined children/attribute shapes on the hot
|
|
37
|
+
# klasses; the face is floor-guaranteed instead of probe-gated.
|
|
34
38
|
# Raised 1.9.386.0 -> 1.9.410.0 (2026-11-10, owner directive
|
|
35
39
|
# "update floors"): the namespace-aware strict admission
|
|
36
40
|
# (leptris#1964, 1.9.409) and the schG2 child-typing fix
|
|
37
41
|
# (leptris#1979, 1.9.410) - the XSD conformance answers the
|
|
38
42
|
# dataset and the suite now pin REQUIRE this wave.
|
|
39
|
-
MINIMUM_BINDING_VERSION = "1.9.
|
|
43
|
+
MINIMUM_BINDING_VERSION = "1.9.420.2"
|
|
40
44
|
|
|
41
45
|
# Snapshot-backed attribute listing native (moxml#520): the
|
|
42
46
|
# listing face serves reads from the binding's flat packet face —
|
|
@@ -107,21 +111,6 @@ module Moxml
|
|
|
107
111
|
end
|
|
108
112
|
end
|
|
109
113
|
|
|
110
|
-
# The consumer-contract lane's attribute object
|
|
111
|
-
# (leptris-ruby#635): the shape the bound C factory constructs -
|
|
112
|
-
# (name, value, owner). Covers the walk+read contract
|
|
113
|
-
# (.name/.value); full attribute-node faces stay on the contract
|
|
114
|
-
# classes.
|
|
115
|
-
class LaneAttribute
|
|
116
|
-
attr_reader :name, :value, :owner
|
|
117
|
-
|
|
118
|
-
def initialize(name, value, owner = nil)
|
|
119
|
-
@name = name
|
|
120
|
-
@value = value
|
|
121
|
-
@owner = owner
|
|
122
|
-
end
|
|
123
|
-
end
|
|
124
|
-
|
|
125
114
|
if Gem::Version.new(::Leptris::VERSION.to_s) <
|
|
126
115
|
Gem::Version.new(MINIMUM_BINDING_VERSION)
|
|
127
116
|
raise Moxml::AdapterError.new(
|
|
@@ -175,12 +164,12 @@ module Moxml
|
|
|
175
164
|
# objects, no FFI::Pointer. Supersedes the snapshot face for
|
|
176
165
|
# the one-pass hydration walks the XMI lanes are (the binding
|
|
177
166
|
# memo is a retention penalty there). Probed on the compiled
|
|
178
|
-
# ext
|
|
179
|
-
#
|
|
167
|
+
# ext alone: the 1.9.406.1 version pairing died with the
|
|
168
|
+
# 1.9.420.2 floor (every floor-passing binding carries the
|
|
169
|
+
# face); the probe gates the compiled bundle's presence, which
|
|
170
|
+
# no floor can.
|
|
180
171
|
ELEMENT_ATTR_PACKET =
|
|
181
172
|
NATIVE_READ_LAYER &&
|
|
182
|
-
Gem::Version.new(::Leptris::VERSION) >=
|
|
183
|
-
Gem::Version.new("1.9.406.1") &&
|
|
184
173
|
::Leptris::XML::Native.respond_to?(:attribute_packet)
|
|
185
174
|
|
|
186
175
|
# leptris-ruby#529: the whole XPath node-set result as an Array
|
|
@@ -2138,12 +2127,6 @@ module Moxml
|
|
|
2138
2127
|
if NATIVE_READ_LAYER &&
|
|
2139
2128
|
defined?(::Leptris::XML::Native) &&
|
|
2140
2129
|
::Leptris::XML::Native.respond_to?(:define_hot_readers)
|
|
2141
|
-
# Elements: name + content (the C bodies ARE the
|
|
2142
|
-
# contract answers for clean documents). Text: content
|
|
2143
|
-
# only (the text-payload read). Comment/cdata/PI keep
|
|
2144
|
-
# the contract classes outright - their payload reads
|
|
2145
|
-
# are contract-shaped (the reference differential pins
|
|
2146
|
-
# them), so hot classes for those kinds answer wrongly.
|
|
2147
2130
|
hot_el = Class.new(Identity::ELEMENT)
|
|
2148
2131
|
::Leptris::XML::Native.define_hot_readers(hot_el)
|
|
2149
2132
|
hot_el.remove_method(:attribute)
|
|
@@ -2151,29 +2134,24 @@ module Moxml
|
|
|
2151
2134
|
::Leptris::XML::Native.define_hot_readers(hot_tx)
|
|
2152
2135
|
hot_tx.remove_method(:attribute)
|
|
2153
2136
|
hot_tx.remove_method(:name)
|
|
2154
|
-
#
|
|
2155
|
-
#
|
|
2156
|
-
#
|
|
2157
|
-
#
|
|
2158
|
-
#
|
|
2159
|
-
#
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
)
|
|
2165
|
-
end
|
|
2137
|
+
# REVERTED (measured, the pinned runner): the
|
|
2138
|
+
# consumer-contract binding (leptris-ruby#635) was
|
|
2139
|
+
# bound here in 0.6.10 - the C children/attribute
|
|
2140
|
+
# SHADOWED the facade's tuned lanes (the address-token
|
|
2141
|
+
# children and the attribute packet) and every
|
|
2142
|
+
# structural row regressed: walk warm 0.67x -> 0.49x,
|
|
2143
|
+
# attr pairs 8.18x -> 6.65x, xpath count 2.13x -> 1.48x.
|
|
2144
|
+
# The faces remain available to row-shaped consumers
|
|
2145
|
+
# via the moxml-rs data plane; the facade dispatch
|
|
2146
|
+
# keeps its tuned lanes.
|
|
2166
2147
|
hot_set = [hot_el, hot_tx, Identity::COMMENT,
|
|
2167
2148
|
Identity::CDATA,
|
|
2168
2149
|
Identity::PROCESSING_INSTRUCTION].freeze
|
|
2169
2150
|
# The klass-propagating reads (#246) mint through the
|
|
2170
|
-
# RECEIVER class's child map - the hot classes need
|
|
2171
|
-
# own, or the C visit mint yields nil for their
|
|
2172
|
-
# (the root-level
|
|
2173
|
-
# while the C children read stayed correct).
|
|
2174
|
-
# Install ONLY on the hot classes: the contract kinds'
|
|
2175
|
-
# maps are the load-time installation - overwriting them
|
|
2176
|
-
# here would re-route the contract kinds' children mints.
|
|
2151
|
+
# RECEIVER class's child map - the hot classes need
|
|
2152
|
+
# their own, or the C visit mint yields nil for their
|
|
2153
|
+
# entries (the root-level // gather truncated at depth
|
|
2154
|
+
# >= 2 while the C children read stayed correct).
|
|
2177
2155
|
if NATIVE_KLASS_CHILDREN
|
|
2178
2156
|
hot_set.first(2).each do |klass|
|
|
2179
2157
|
klass.install_child_klasses(hot_set)
|
data/lib/moxml/version.rb
CHANGED
|
@@ -62,11 +62,11 @@ RSpec.describe Moxml::Adapter do
|
|
|
62
62
|
Moxml::Config.default_adapter = ambient
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
it "pins the leptris binding floor at 1.9.
|
|
65
|
+
it "pins the leptris binding floor at 1.9.420.2 (raised 2026-09-20, 2026-10-30, 2026-11-10, and 2026-11-14; enforced at load)" do
|
|
66
66
|
skip "leptris not installed" unless described_class.available?(:leptris)
|
|
67
67
|
|
|
68
68
|
adapter = described_class.load(:leptris)
|
|
69
|
-
expect(adapter::MINIMUM_BINDING_VERSION).to eq("1.9.
|
|
69
|
+
expect(adapter::MINIMUM_BINDING_VERSION).to eq("1.9.420.2")
|
|
70
70
|
expect(Gem::Version.new(Leptris::VERSION))
|
|
71
71
|
.to be >= Gem::Version.new(adapter::MINIMUM_BINDING_VERSION)
|
|
72
72
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moxml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.12
|
|
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-
|
|
11
|
+
date: 2026-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Moxml is a unified XML manipulation library that provides a common API
|