xmlenc 0.2.0 → 0.2.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: a4f1124fa5bd31f8c364288d7d7f56e00bebab77
4
- data.tar.gz: 6f3aa991240dc4c96873ceb7e326f0b0b886f77d
3
+ metadata.gz: 43a28e1294fa06dd78706f950aa952f66e846e5a
4
+ data.tar.gz: 1a0ca77fe7935b3e60e2ec8ef32df91ef9c9717e
5
5
  SHA512:
6
- metadata.gz: 1b15580ce2af23aa3520dddb2fa143cf9a7575e191140102ef9463f2ca2b32c3f1d1ab053c3a6868c3caa6d6964898793ee57d086565f5fb398f367ba4f11a6b
7
- data.tar.gz: 4da800f73ab72328bc092f2941d26fb7aa0cac0736d9d2c27e7e8283b91bee996f1b09e09e91ad505785bf708e66602b7ef8455698483bca5973ce1a433582fb
6
+ metadata.gz: 425afdca319a8b8dfe4c39ef12002009f2943d3c9bf943b9d7dd7c1f0a6944e4610c0b6e7e2f81e695815842188e91ef4238f0b92a9d79c03479f4ab2b215b51
7
+ data.tar.gz: cee795932daba6734ce9c6d70dff6d7ebbdeb3e5f616514bea6aad36df415a4e1afaf7a296ac6e04e2c02ed7ecf4e78d4b2442af45ad8448e72f4a0ae9dcdf86
@@ -36,7 +36,7 @@ module Xmlenc
36
36
  def decrypt(key)
37
37
  decryptor = algorithm.setup(key)
38
38
  decrypted = decryptor.decrypt(Base64.decode64(cipher_value), :node => encryption_method)
39
- @node.replace(decrypted) unless @node == document.root
39
+ @node.replace(Nokogiri::XML::DocumentFragment.parse(decrypted)) unless @node == document.root
40
40
  decrypted
41
41
  end
42
42
 
@@ -1,3 +1,3 @@
1
1
  module Xmlenc
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlenc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-20 00:00:00.000000000 Z
11
+ date: 2015-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport