xmlmapper 0.6.4 → 0.6.5

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: aea3dda65fdafd3c12870eacc78890d4993ad617
4
- data.tar.gz: d94226dbaec2baaed938a1f23fa75f5ddfe7e707
3
+ metadata.gz: 0a9c9b8291f769a98bbb4ce82a1eaf63640da2d1
4
+ data.tar.gz: c9afa447428142ffbb8c0b78346519db9992cb10
5
5
  SHA512:
6
- metadata.gz: 358742eb7a91718561e1777ec0e4443283371298ae6b358ebc5804b00e51148e3bde0db9d2f247cee2765fecd09b964bf206ef9ab43abbc703fa9f488c4c9f0c
7
- data.tar.gz: e644717544aac89be2e67b7d6568822f31e24e98397ea801de53eb109f639b714ff103e7e264d9b76adaf183c54fa22e15099b3e84a45085e24033bf4c28504c
6
+ metadata.gz: 93744d292d3781a9741a1eb0a4c35380b7aa2b5c0b74e2e54b2b287b2c97a87f7b6aef24f60aa8b3f17fc1960dcbfb21366ef5f3475c6cc6a5d4167e75c19a22
7
+ data.tar.gz: bcf235fcd49214c823fd04425ec851c34f6a4a11d762e21aab32d70d6cb072431ca219c6a2fcda4a8e442eef86611ca7593b691f3feefd51ec25c5049d471d42
@@ -1,3 +1,3 @@
1
1
  module XmlMapper
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
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 | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
439
+ obj.xml_value = n.canonicalize(Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0, n.namespaces.keys.map { |name| name.split(":").last })
440
440
  end
441
441
 
442
442
  if obj.respond_to?('xml_node=')
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.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Le Berrigaud
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.4.6
132
+ rubygems_version: 2.5.1
133
133
  signing_key:
134
134
  specification_version: 3
135
135
  summary: Provides a simple way to map XML to Ruby Objects and back again.