canon 0.3.52 → 0.3.53
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/diff/node_serializer.rb +4 -2
- data/lib/canon/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: 6f9c6ba9a065bf2695019dc0a43595144a12233a9e37441ae3509a937fb43d2c
|
|
4
|
+
data.tar.gz: c7a8258f5f73a778c0f7b7d4104e02b0f7848e27892f1f63897b237675013d07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36afd9035a4078563855537f9af8aab3e0e53e22515a9d5f85ca47ffc5f3e564ab0507bd0013e45c234b5fe02d589d50f2e0a6e2a76df86b0d8fbeb33a37e105
|
|
7
|
+
data.tar.gz: 6341a23681ca3afc20ea888b440e0ccd01037979d6815dbdd2b010ed856bb03891c79c494698a5ddef7512da9613e5f480d3028dc9a9669fa356c23650f2600d
|
|
@@ -62,12 +62,14 @@ module Canon
|
|
|
62
62
|
# @param element [Canon::Xml::Nodes::ElementNode] Element to serialize
|
|
63
63
|
# @return [String] Serialized element
|
|
64
64
|
def self.serialize_element_node(element)
|
|
65
|
-
#
|
|
65
|
+
# Mutating build: no intermediate per attribute (one child
|
|
66
|
+
# string per element via map+join below is the remaining
|
|
67
|
+
# necessary product).
|
|
66
68
|
tag = "<#{element.name}"
|
|
67
69
|
|
|
68
70
|
# Add attributes
|
|
69
71
|
element.sorted_attribute_nodes.each do |attr|
|
|
70
|
-
tag
|
|
72
|
+
tag << " " << attr.name << '="' << attr.value << '"'
|
|
71
73
|
end
|
|
72
74
|
|
|
73
75
|
# Check if element has children
|
data/lib/canon/version.rb
CHANGED