moxml 0.5.53 → 0.5.54
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/lib/moxml/adapter/leptris.rb +8 -2
- data/lib/moxml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba51d35ca414232eb04fafd976a2f5d24b2f43fff1b0e4c4a69147162da324c7
|
|
4
|
+
data.tar.gz: 73df7c7f9da2ff33e4ab2d06f3b56b29b0a09e4784c78eb9907d3ec15f82c234
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c30f3bef444d6a6da7416e5ee5493c5656a6bbca1f28c9d504c9405b3be54b083eb5bf9a218ed1e0ac1cb94b3551678c028adadf667fcc7b15b50a2e403341ab
|
|
7
|
+
data.tar.gz: cef805979f7168ec08ce5dc80624e74a2bef27225233d1389862d84b6d4d9cea56806b50a6231e078a626ba488ce90668e0fd8b40ad6cf11a650a3b154c24041
|
|
@@ -973,7 +973,12 @@ module Moxml
|
|
|
973
973
|
end
|
|
974
974
|
|
|
975
975
|
def children(node, entity_bearing: false)
|
|
976
|
-
|
|
976
|
+
# NATIVE_READ_LAYER gates the whole keep-path: it consults
|
|
977
|
+
# NN_DOCUMENT (defined only with the native layer), and
|
|
978
|
+
# native-less installs answer through the binding case
|
|
979
|
+
# branch below, whose children already carry first-class
|
|
980
|
+
# EntityReference nodes (issue #240).
|
|
981
|
+
if NATIVE_READ_LAYER && NATIVE_ENTITY_REFS &&
|
|
977
982
|
native_keep_entity_refs?(node)
|
|
978
983
|
return to_binding(node).children.to_a
|
|
979
984
|
end
|
|
@@ -1041,7 +1046,8 @@ module Moxml
|
|
|
1041
1046
|
end
|
|
1042
1047
|
|
|
1043
1048
|
def native_keep_entity_refs?(node)
|
|
1044
|
-
return false unless
|
|
1049
|
+
return false unless NATIVE_READ_LAYER &&
|
|
1050
|
+
node.is_a?(::Leptris::XML::NativeNode)
|
|
1045
1051
|
|
|
1046
1052
|
doc = NN_DOCUMENT.bind_call(node)
|
|
1047
1053
|
attachments.get(doc, :keep_entity_refs) == true
|
data/lib/moxml/version.rb
CHANGED