xmlmapper 0.6.5 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xmlmapper.rb +3 -1
- data/lib/xmlmapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92105182b50fec5c2c9b4d00664c6807b2c51d01
|
4
|
+
data.tar.gz: 8721d8e5db3c52d269db18d592ad2742e72199e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d06c8b61063ca2234f4a720e7b19c14f4076a0befc7448f26b120647a3281aec2ed395f9f3a8e91fa221a13409ef3af1b15edc83fad407832d9929c0836ca84
|
7
|
+
data.tar.gz: b6a4763251048f38892b364579678e9367dc6dda150539b3f88f2c4fc064b4e0778bfad40c73d0aabca7a34408c7e1c1361b3e0be04898b12e21f233285dd4fe
|
data/CHANGELOG.md
CHANGED
data/lib/xmlmapper.rb
CHANGED
@@ -436,7 +436,9 @@ module XmlMapper
|
|
436
436
|
|
437
437
|
if obj.respond_to?('xml_value=')
|
438
438
|
# n.namespaces.each {|name,path| n[name] = path }
|
439
|
-
|
439
|
+
|
440
|
+
# obj.xml_value = n.canonicalize(Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0, n.document.collect_namespaces.keys.map { |name| name.split(":").last })
|
441
|
+
obj.xml_value = n.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
|
440
442
|
end
|
441
443
|
|
442
444
|
if obj.respond_to?('xml_node=')
|
data/lib/xmlmapper/version.rb
CHANGED