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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d6229888c0abf6f82607e066cf95ff310ba7903d4bfe9c2ca01662d22ae46e7
4
- data.tar.gz: 53e145e8b0e5d53394ea49c010bb03cbb1e1a67a62833e4d5d9ca30ca98e4d08
3
+ metadata.gz: a33da4e9ee49e1237bef05440ce34cd92c555bd4c9231ec281680fbcea25a13f
4
+ data.tar.gz: 5e1a2445d336d79ffb219638ef87c8577283b47e6b9f23d45779fb46474771be
5
5
  SHA512:
6
- metadata.gz: c78bc43513a63cdcf9950a92c395b73388217d764e9d392dea3a5d2eae496b7610aa61ac735c6241422a112ef06789dab99daaa821e0e127333f87fcf1917f60
7
- data.tar.gz: c30e7d9a45af977fa95239fd382d20499d0fe0f19c8034d87cd6f6084b34c656cc96bf6a42059935332891134a65bd65fc3e5a1169666f402c9e584226848b9d
6
+ metadata.gz: 9e08d2d5b2102b8aab4b5a881207724ee7fe3784631583139cdc976ca6d9e4b30e5521c14465c4214c28c0b627194533363cb5b5f5a43546c2b2e90f6dc1828c
7
+ data.tar.gz: 823d4d706715b957f272f91cf79c998a52bb587f45ab63612a649ca5d75c934338faabbc38564ba95583206eeb54592ddc713c859094537ed97a2f0463ebfbda
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ gem "base64"
12
12
  gem "benchmark"
13
13
  gem "benchmark-ips"
14
14
  gem "get_process_mem"
15
- gem "leptris", "~> 1.9.410"
15
+ gem "leptris", "~> 1.9.420.2"
16
16
  gem "libxml-ruby", ">= 5.0"
17
17
  gem "nokogiri", "~> 1.18"
18
18
  gem "oga"
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.410.0 (see version table below).
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.410.0
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.410` (the tested pair; the gemspec itself has zero runtime dependencies). The adapter enforces the floor at load.
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.410.0), :nokogiri otherwise
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.410.0"
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; the version floor pairs it (misrelease races — the
179
- # NATIVE_PLAN_STRUCTS lesson).
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
- # The consumer-contract binding (leptris-ruby#635): the
2155
- # descent's shapes constructed in C - children serving
2156
- # the #530 memo'd list wrapped by the NodeSet factory,
2157
- # attribute serving the decode getter wrapped by the
2158
- # attribute factory. Bound on the hot element class
2159
- # only (the contract kinds keep the Ruby-mediated set).
2160
- if ::Leptris::XML::Native.respond_to?(:bind_consumer_contract)
2161
- ::Leptris::XML::Native.bind_consumer_contract(
2162
- hot_el, Moxml::NodeSet,
2163
- Moxml::Adapter::Leptris::LaneAttribute
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 their
2171
- # own, or the C visit mint yields nil for their entries
2172
- # (the root-level XPath gather truncated at depth >= 2
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moxml
4
- VERSION = "0.6.10"
4
+ VERSION = "0.6.12"
5
5
  end
@@ -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.410.0 (raised 2026-09-20, 2026-10-30, and 2026-11-10; enforced at load)" do
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.410.0")
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.10
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-14 00:00:00.000000000 Z
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