xmlmapper 0.6.0 → 0.6.1

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: 01d484e73f2c9225912fdd49addedaa71ff18f4a
4
- data.tar.gz: 274e89894d6e53f0abb8fa269e4878c2f4b3f771
3
+ metadata.gz: 48d07b0e82984cb8eea828585a89d9d6da39b431
4
+ data.tar.gz: b8d4aef06a034b52f8804ab3e4e72424769c099e
5
5
  SHA512:
6
- metadata.gz: 5b44469677e336a95c4f8abb685f535079f1f0deb57aec5d5fd7c77fce2142a8c19538986e1cdfff6107663d40d5ad2b41168c2b82278d92a760218fbbdf54b2
7
- data.tar.gz: 38cad28864fd8dbc93c3f208ba15a428c4fbff82e0dccaead78a0b5b0a3c5f407dd48bfa9dc85551a94bb3c1e31f6be5900ee8d1c21f256c453111dd5c186985
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
@@ -1,3 +1,3 @@
1
1
  module XmlMapper
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
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.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Le Berrigaud