moxml 0.5.85 → 0.5.87

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: 0e2ec5341779cd310306935433ce87caceacbf8662ea449582afe042841957a6
4
- data.tar.gz: 9425324aad5a99169a737a72d8f3fe73c82cd97112faf66fdbdbc016dccba910
3
+ metadata.gz: 22bb7c49cd05d3432ccc90eab997ec45ecd00e8677678e8868a40c1ce087f0bf
4
+ data.tar.gz: 69bf26fa41c2049edb4b46de37af54fd9dc2946cb0580b8127e9cda9d3b7f588
5
5
  SHA512:
6
- metadata.gz: 55f4eca7d59c175151bc8cd5217ab238323af351ff4a4dc6caf35fe83847905acaf28c1c2d2906811315282d497fbea0f2e6f241260c9c4cf375e63b26a8d2ed
7
- data.tar.gz: 0e90df291ceb7d1eb093ea4c204e6e8df0fc8f4d8db2233cc8fd74d7f5f119562aa8e2c14b3239cfbc057c0ed0e0f5f81d505f716951122fd6381c97146b893e
6
+ metadata.gz: ffe7b307857e13577d14c770af45e8792236703083e286109bdc024690cf937b5ff828e1f39cad29ec5f16ba5c3343d07969f3e47647f2a14342e561b317854a
7
+ data.tar.gz: 488175d437d83b3d9ee66c62e7c6cb09f79dcc8aec87fa596df82d7a4817d4ad4a71a12a67281670be01ea2590a08bfc34256d701c3436a1e5553935230c1272
data/README.adoc CHANGED
@@ -102,8 +102,13 @@ entity references (`entity_mode: :keep`), 1.9.193.4+ native plan rows
102
102
  (`Moxml::Plan`), 1.9.194.1+ hot-read aliases, 1.9.201.1+ the C struct
103
103
  executor (`Moxml::StructPlan`; the floor is the varargs-mint fix),
104
104
  1.9.204+ native document-level parts (created DOCTYPEs as native
105
- nodes, document-PI removal, declaration clear). Current
106
- recommendation: 1.9.228+ (the #318 text-set fix train; carries
105
+ nodes, document-PI removal, declaration clear), 1.9.240+ the bulk
106
+ SAX record drain (`Handler#on_sax_records`) — and 1.9.242+ is
107
+ REQUIRED for that drain to be CORRECT: 1.9.240/241 drain documents
108
+ containing duplicate attributes without surfacing the fatal error
109
+ (moxml#281), so the drain arms only on 1.9.242+, where such
110
+ documents fall back to the callback path and the error fires.
111
+ Current recommendation: 1.9.242+ (the record-drain train; carries
107
112
  the plan-ABI surface — bound plan rows, typed scalars, fused
108
113
  Descriptor#materialize — plus the 1.9.217+ borrowed-text-run and
109
114
  1.9.221+ memory wins).
@@ -132,12 +132,15 @@ module Moxml
132
132
 
133
133
  # Bulk SAX record drain (leptris#1298): leptris_sax_records_parse
134
134
  # + Leptris::XML::SAX::Records — one crossing per document,
135
- # handlers replay or walk the table. Ships in the binding ride
136
- # 1.9.240.0 (1.9.239.0 predates the walker — the gate must name
137
- # the carrying release, not the engine surface). Dev floor pins
138
- # ~> 1.9.238; older bindings take the callback Parser below.
135
+ # handlers replay or walk the table. Ships in binding 1.9.242.0:
136
+ # 1.9.240/241 carry the drain WITHOUT the duplicate-attribute
137
+ # bail (moxml#281 — the record table has no error channel, so a
138
+ # fatal dup-attr document parses with on_error never firing),
139
+ # so the gate names the first release where the drain is
140
+ # CORRECT, not merely present. Dev floor pins ~> 1.9.238;
141
+ # older bindings take the callback Parser below.
139
142
  NATIVE_SAX_RECORDS =
140
- Gem::Version.new(::Leptris::VERSION) >= Gem::Version.new("1.9.240")
143
+ Gem::Version.new(::Leptris::VERSION) >= Gem::Version.new("1.9.242")
141
144
 
142
145
  # Defined unconditionally: the body self-guards, and call
143
146
  # sites must never depend on the layer having loaded
data/lib/moxml/cdata.rb CHANGED
@@ -13,8 +13,6 @@ module Moxml
13
13
  end
14
14
 
15
15
  # See Moxml::Text#text — Node#text's base is "" for non-elements.
16
- def text
17
- content
18
- end
16
+ alias_method :text, :content
19
17
  end
20
18
  end
data/lib/moxml/comment.rb CHANGED
@@ -15,8 +15,6 @@ module Moxml
15
15
  end
16
16
 
17
17
  # See Moxml::Text#text — Node#text's base is "" for non-elements.
18
- def text
19
- content
20
- end
18
+ alias_method :text, :content
21
19
  end
22
20
  end
data/lib/moxml/text.rb CHANGED
@@ -25,9 +25,8 @@ module Moxml
25
25
  # Node#text's base returns "" for non-element nodes; a text
26
26
  # node's text IS its content (leptris's Reads layer already
27
27
  # answered content here — the wrapper contract now matches on
28
- # every adapter).
29
- def text
30
- content
31
- end
28
+ # every adapter). Aliased, not delegated: text rides the
29
+ # walk-hot read path (moxml#336) and pays one frame, not two.
30
+ alias_method :text, :content
32
31
  end
33
32
  end
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.5.85"
4
+ VERSION = "0.5.87"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moxml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.85
4
+ version: 0.5.87
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.