xmlmapper 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48d07b0e82984cb8eea828585a89d9d6da39b431
4
- data.tar.gz: b8d4aef06a034b52f8804ab3e4e72424769c099e
3
+ metadata.gz: ff5913ddcbb7bd218e51eecf4e95d55adb3a6732
4
+ data.tar.gz: 4dbfabb63c5aec4d20c70e8ee9b53b3c62ec937a
5
5
  SHA512:
6
- metadata.gz: fdfc4c870c5571a51b31c6adecaca860f8004831b997ebe3ec2a81d86c43795e49c5c756c62afc1ed8da2e60c2927134dee23b4e63ec0b0b8dbb64f324ce3782
7
- data.tar.gz: 07ee9420fc9dbef23383e6419ed9d7ed3f85f1211de329c97e785e9dcad9537afb37041e7512dee591744e6170848fa849374bc90bea06a6e94fad2f37ad2908
6
+ metadata.gz: 613d7894bdb569918065c880db696f04609e418e291758144048b76da9a9506e0dffa2679565b4b28c1220dbcf6d0b211153f2fb55fab803c65868a7b6b89ce4
7
+ data.tar.gz: 02aadefa211022eba3a410a7f40744ef27864dba8df2301e468e54cc4086d93302229212e1abe4bc8773d601af5e9923f8466ed89b4a0335fa8525870b9a9c03
@@ -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
@@ -1,3 +1,3 @@
1
1
  module XmlMapper
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlmapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Le Berrigaud