canon 0.3.41 → 0.3.42
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/canon/version.rb +1 -1
- data/lib/canon/xml/c14n.rb +14 -7
- 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: 0a54063c501419f65316ce159b9ff85c7179d49afc6a0c7d3d17f5adef2981a0
|
|
4
|
+
data.tar.gz: f535a9131aed98326fe7c8fa13c70fe39f2913451b39a83a82d2df6ab636219c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82f5cb1c13b63065112deb746b569e9abf902322c8cff3e94568a05db86f605872f739aa15ca0f82ccab425f92494dd5fcfc9f83ee2b99b4a8309c4c34533474
|
|
7
|
+
data.tar.gz: 72002e2e958716c54fa353ffd6fffda94b98e7eeac8e05510af5fa92f4c576fe37c2f5c06fa9d44feae84ba8e9a698ededd8405504b49f28620cc29418f21f22
|
data/lib/canon/version.rb
CHANGED
data/lib/canon/xml/c14n.rb
CHANGED
|
@@ -22,13 +22,20 @@ module Canon
|
|
|
22
22
|
processor.process(root_node)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
# leptris' C-side C14N 1.1 —
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
# prefix
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
25
|
+
# leptris' C-side C14N 1.1 — 23x faster than the Ruby processor
|
|
26
|
+
# through canon's own API (1MB document). libleptris 1.9.164
|
|
27
|
+
# closed four of the five leptris#1015 families (attribute
|
|
28
|
+
# ordering, prefix loss and rebinding, `>` and TAB escaping —
|
|
29
|
+
# unpinned in the parity spec since gem 1.9.174.0). A local
|
|
30
|
+
# default-flip attempt surfaced three MORE divergences the
|
|
31
|
+
# edge corpus did not cover, so the lane stays opt-in
|
|
32
|
+
# (CANON_C14N_BACKEND=leptris) until they close (leptris#1096):
|
|
33
|
+
# redundant namespace redeclarations are kept (Ruby removes
|
|
34
|
+
# them), xmlns:xml with the standard URI is kept (Ruby omits
|
|
35
|
+
# it), and document-level processing instructions are dropped.
|
|
36
|
+
# The Ruby lane additionally validates relative namespace URIs
|
|
37
|
+
# at parse time — a future flip must carry that check into the
|
|
38
|
+
# native wrapper. Comments mode keeps the Ruby path regardless.
|
|
32
39
|
def self.native_canonicalize(xml, with_comments)
|
|
33
40
|
return nil if with_comments
|
|
34
41
|
return nil if RUBY_ENGINE == "opal"
|