xmlmapper 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xmlmapper.rb +2 -2
- 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: cb50a11700e4020d9084eda1c4cf15a4aafe660a
|
4
|
+
data.tar.gz: 97d7d192b1588615f37fe137cac1bbc80af791da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8a935ac03e952b23034bf5dde9069aad8752f9d85fcb782abe5d194b05535584dd508493c69c6d8edd7c3e989b4d9f2c318765210bb886f4dcbfda0153731cf
|
7
|
+
data.tar.gz: 49ff18e349ddca6aff4ec59aa9848ee6777bb4e192a249b18a12458e3373c6ffef00a418eca277b3ee4882603f20ad91747c577e9ae47fe16e5a511c76c08f54
|
data/lib/xmlmapper.rb
CHANGED
@@ -437,8 +437,8 @@ module XmlMapper
|
|
437
437
|
if obj.respond_to?('xml_value=')
|
438
438
|
# n.namespaces.each {|name,path| n[name] = path }
|
439
439
|
|
440
|
-
|
441
|
-
obj.xml_value = n.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
|
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)
|
442
442
|
end
|
443
443
|
|
444
444
|
if obj.respond_to?('xml_node=')
|
data/lib/xmlmapper/version.rb
CHANGED