moxml 0.5.67 → 0.5.68
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/customized_leptris/declaration.rb +4 -4
- data/lib/moxml/adapter/customized_leptris/doctype.rb +5 -3
- data/lib/moxml/adapter/customized_leptris/document_pi.rb +2 -1
- data/lib/moxml/adapter/customized_leptris/entity_reference.rb +5 -3
- data/lib/moxml/adapter/leptris.rb +6 -3
- 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: c7ec66b00a34ed3918ab24c9b8bcc494e487927f99ad7557909ddf7e6701f8e3
|
|
4
|
+
data.tar.gz: f0ee8feffee4bbf33c403dd5e1f6d3b44c7b8dee5efa7410bab490d3de0157a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa0d67f8dec259694dae78abd1a009710beecf97b785297092bef801b53ebe14f9bf980d9ac671d3be0cd8f003773e8556bcfb8ba85eeb5830ff5fd779703042
|
|
7
|
+
data.tar.gz: 4e18e8625fae38b9b1857489b3e8d04649c6930b1ace17be78a3863c42a33e2402a329be95e78fb3804fb7d2207d1bbf6d4f22588b868e8291cf156337b87b5a
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
module Moxml
|
|
4
4
|
module Adapter
|
|
5
5
|
module CustomizedLeptris
|
|
6
|
-
# Wrapper for an XML declaration. libleptris
|
|
7
|
-
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
6
|
+
# Wrapper for an XML declaration. libleptris gained declaration
|
|
7
|
+
# setters (#1094) but has no first-class declaration node and no
|
|
8
|
+
# way to clear the state, so Moxml exposes this mutable,
|
|
9
|
+
# removable value object instead.
|
|
10
10
|
class Declaration
|
|
11
11
|
attr_accessor :version, :encoding, :standalone, :parent_doc
|
|
12
12
|
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module Moxml
|
|
4
4
|
module Adapter
|
|
5
5
|
module CustomizedLeptris
|
|
6
|
-
# Wrapper for a programmatic DOCTYPE. libleptris
|
|
7
|
-
#
|
|
8
|
-
#
|
|
6
|
+
# Wrapper for a programmatic DOCTYPE. libleptris can create
|
|
7
|
+
# one (Document#set_doctype, 1.9.176 / #212) but cannot unset
|
|
8
|
+
# it, and the facade contract makes DOCTYPEs removable nodes —
|
|
9
|
+
# so Moxml keeps this value object as the lifecycle record in
|
|
10
|
+
# the document's attachments.
|
|
9
11
|
class Doctype
|
|
10
12
|
attr_accessor :name, :external_id, :system_id, :parent_doc
|
|
11
13
|
|
|
@@ -9,7 +9,8 @@ module Moxml
|
|
|
9
9
|
# the root), reachable through Document#processing_instructions
|
|
10
10
|
# as [target, data] pairs. This pseudo-native gives the pairs a
|
|
11
11
|
# node identity so the moxml contract can list them as document
|
|
12
|
-
# children
|
|
12
|
+
# children (and answer mutations: creation routes native via
|
|
13
|
+
# add_pi; removal has no engine entry).
|
|
13
14
|
class DocumentPI
|
|
14
15
|
attr_accessor :target, :data, :parent_doc
|
|
15
16
|
alias content data
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module Moxml
|
|
4
4
|
module Adapter
|
|
5
5
|
module CustomizedLeptris
|
|
6
|
-
# libleptris expands the five built-in entities
|
|
7
|
-
# and has no custom ones
|
|
8
|
-
# as Moxml::Entity::Reference values over marker-bearing
|
|
6
|
+
# Parse-path face: libleptris expands the five built-in entities
|
|
7
|
+
# at parse time and has no custom ones, so parsed references are
|
|
8
|
+
# carried as Moxml::Entity::Reference values over marker-bearing
|
|
9
|
+
# text. Programmatic creation is native (NATIVE_ENTITY_REFS,
|
|
10
|
+
# binding >= 1.9.177).
|
|
9
11
|
EntityReference = ::Moxml::Entity::Reference
|
|
10
12
|
end
|
|
11
13
|
end
|
|
@@ -12,9 +12,12 @@ module Moxml
|
|
|
12
12
|
# Adapter over the leptris FFI binding (libleptris C library).
|
|
13
13
|
#
|
|
14
14
|
# libleptris provides DOM parsing, a native XPath 1.0 engine, SAX,
|
|
15
|
-
# and serialization.
|
|
16
|
-
#
|
|
17
|
-
#
|
|
15
|
+
# and serialization. Its document-level creation surfaces exist
|
|
16
|
+
# (set_doctype 1.9.176/#212, declaration setters #1094) but are
|
|
17
|
+
# SET-ONLY — no unset for declaration, DOCTYPE, or document PIs —
|
|
18
|
+
# while the moxml facade contract makes those parts removable
|
|
19
|
+
# nodes. CustomizedLeptris value objects therefore remain the
|
|
20
|
+
# lifecycle record, attached through NativeAttachment.
|
|
18
21
|
class Leptris < Base
|
|
19
22
|
# The binding floor (issue #149): 1.9.32 carried the traverse
|
|
20
23
|
# fix (leptris-ruby#89) and made built documents reflect their
|
data/lib/moxml/version.rb
CHANGED