xmldsig 0.3.1 → 0.3.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: 3839ef55412ec63fe324ff4ff015e997ade606ac
4
- data.tar.gz: 2f34485c7c185f7f1e8aa25c0e08ed4532084d18
3
+ metadata.gz: 9a25ba1df705f0356c2b566cccfe488ed8349f15
4
+ data.tar.gz: 63b9cf765ae35c0a8ff18c7004034ced0be392b1
5
5
  SHA512:
6
- metadata.gz: 154d99fbeb8933bbfd89ca6a3d016b955ff3abc0abb71f741c8618f358c87d4dd4f61b99d248159b5b07e415f524236ea3782d761e5284b7ba00be061339f399
7
- data.tar.gz: d4cc3f3815fe83f4934a940515ecab57366cee2557eff17ed137f152f5d94827e127d5c0e82f2857d5cc51010edf3324460646e9af470d3b4b2afb3f6d39f16c
6
+ metadata.gz: 8a52954081fa6154227cbd7e68ee41c71c6044344e9ccd24b541f30437df13687ca23fb2a0efc4af5f3248b54ac2541e9d14d08016a18ab81557b00f775a6662
7
+ data.tar.gz: f7efae54cadb080a881b4b1be9266bed9d800181a4c2cbed41435c6cedeb7089e3cd4971ad1708879070566b2d5f8086c09710d16bed6f1adeba78100e6173b0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ v0.3.2 17-11-2015
4
+ - After signing return the XML the correct way
5
+
3
6
  v0.3.1 10-11-2015
4
7
  - Added the option to only sign the root signature with the `Xmldsig::SignedDocument#sign` method
5
8
 
@@ -21,7 +21,12 @@ module Xmldsig
21
21
  else
22
22
  signatures.reverse.each { |signature| signature.sign(private_key, &block) }
23
23
  end
24
- instruct ? @document.to_s : @document.root.to_s
24
+
25
+ if instruct
26
+ @document.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML)
27
+ else
28
+ @document.to_xml(save_with: Nokogiri::XML::Node::SaveOptions::AS_XML | Nokogiri::XML::Node::SaveOptions::NO_DECLARATION)
29
+ end
25
30
  end
26
31
 
27
32
  def signed_nodes
@@ -1,3 +1,3 @@
1
1
  module Xmldsig
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmldsig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - benoist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri