xmlmapper 0.6.1 → 0.6.2
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 +5 -0
- 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: ff5913ddcbb7bd218e51eecf4e95d55adb3a6732
|
4
|
+
data.tar.gz: 4dbfabb63c5aec4d20c70e8ee9b53b3c62ec937a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 613d7894bdb569918065c880db696f04609e418e291758144048b76da9a9506e0dffa2679565b4b28c1220dbcf6d0b211153f2fb55fab803c65868a7b6b89ce4
|
7
|
+
data.tar.gz: 02aadefa211022eba3a410a7f40744ef27864dba8df2301e468e54cc4086d93302229212e1abe4bc8773d601af5e9923f8466ed89b4a0335fa8525870b9a9c03
|
data/lib/xmlmapper.rb
CHANGED
@@ -439,6 +439,11 @@ module XmlMapper
|
|
439
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
|
+
if obj.respond_to?('xml_node=')
|
443
|
+
n.namespaces.each {|name,path| n[name] = path }
|
444
|
+
obj.xml_node = n
|
445
|
+
end
|
446
|
+
|
442
447
|
# If the XmlMapper class has the method #xml_content=,
|
443
448
|
# attr_write :xml_content, or attr_accessor :xml_content then we want to
|
444
449
|
# assign the child xml that we just parsed to the xml_content
|
data/lib/xmlmapper/version.rb
CHANGED