xmlmapper 0.6.0 → 0.6.1
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/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: 48d07b0e82984cb8eea828585a89d9d6da39b431
|
4
|
+
data.tar.gz: b8d4aef06a034b52f8804ab3e4e72424769c099e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdfc4c870c5571a51b31c6adecaca860f8004831b997ebe3ec2a81d86c43795e49c5c756c62afc1ed8da2e60c2927134dee23b4e63ec0b0b8dbb64f324ce3782
|
7
|
+
data.tar.gz: 07ee9420fc9dbef23383e6419ed9d7ed3f85f1211de329c97e785e9dcad9537afb37041e7512dee591744e6170848fa849374bc90bea06a6e94fad2f37ad2908
|
data/lib/xmlmapper.rb
CHANGED
@@ -436,7 +436,7 @@ module XmlMapper
|
|
436
436
|
|
437
437
|
if obj.respond_to?('xml_value=')
|
438
438
|
n.namespaces.each {|name,path| n[name] = path }
|
439
|
-
obj.xml_value = n.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML)
|
439
|
+
obj.xml_value = n.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
|
440
440
|
end
|
441
441
|
|
442
442
|
# If the XmlMapper class has the method #xml_content=,
|
@@ -445,7 +445,7 @@ module XmlMapper
|
|
445
445
|
|
446
446
|
if obj.respond_to?('xml_content=')
|
447
447
|
n = n.children if n.respond_to?(:children)
|
448
|
-
obj.xml_content = n.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML)
|
448
|
+
obj.xml_content = n.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
|
449
449
|
end
|
450
450
|
|
451
451
|
# Call any registered after_parse callbacks for the object's class
|
data/lib/xmlmapper/version.rb
CHANGED