xmlmapper 0.6.5 → 0.7.0

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: 0a9c9b8291f769a98bbb4ce82a1eaf63640da2d1
4
- data.tar.gz: c9afa447428142ffbb8c0b78346519db9992cb10
3
+ metadata.gz: 92105182b50fec5c2c9b4d00664c6807b2c51d01
4
+ data.tar.gz: 8721d8e5db3c52d269db18d592ad2742e72199e2
5
5
  SHA512:
6
- metadata.gz: 93744d292d3781a9741a1eb0a4c35380b7aa2b5c0b74e2e54b2b287b2c97a87f7b6aef24f60aa8b3f17fc1960dcbfb21366ef5f3475c6cc6a5d4167e75c19a22
7
- data.tar.gz: bcf235fcd49214c823fd04425ec851c34f6a4a11d762e21aab32d70d6cb072431ca219c6a2fcda4a8e442eef86611ca7593b691f3feefd51ec25c5049d471d42
6
+ metadata.gz: 8d06c8b61063ca2234f4a720e7b19c14f4076a0befc7448f26b120647a3281aec2ed395f9f3a8e91fa221a13409ef3af1b15edc83fad407832d9929c0836ca84
7
+ data.tar.gz: b6a4763251048f38892b364579678e9367dc6dda150539b3f88f2c4fc064b4e0778bfad40c73d0aabca7a34408c7e1c1361b3e0be04898b12e21f233285dd4fe
@@ -1,3 +1,7 @@
1
+ ## 0.7.0
2
+
3
+ * Set xml_value with a non canonicalized version
4
+
1
5
  ## 0.5.9 / 2014-02-18
2
6
 
3
7
  * Correctly output boolean element value 'false' (confusion)
@@ -436,7 +436,9 @@ 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.canonicalize(Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0, n.namespaces.keys.map { |name| name.split(":").last })
439
+
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)
440
442
  end
441
443
 
442
444
  if obj.respond_to?('xml_node=')
@@ -1,3 +1,3 @@
1
1
  module XmlMapper
2
- VERSION = "0.6.5"
2
+ VERSION = "0.7.0"
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.5
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Le Berrigaud