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 +4 -4
- data/lib/xmlenc/encrypted_data.rb +1 -1
- data/lib/xmlenc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43a28e1294fa06dd78706f950aa952f66e846e5a
|
4
|
+
data.tar.gz: 1a0ca77fe7935b3e60e2ec8ef32df91ef9c9717e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/xmlenc/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|