secure_yaml 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/secure_yaml/version.rb +1 -1
- data/lib/secure_yaml/yaml_decrypter.rb +1 -1
- metadata +1 -1
data/lib/secure_yaml/version.rb
CHANGED
@@ -13,7 +13,7 @@ module SecureYaml
|
|
13
13
|
def decrypt(yaml)
|
14
14
|
case yaml
|
15
15
|
when Hash
|
16
|
-
yaml.
|
16
|
+
yaml.inject({}) {|new_hash, (key, value)| new_hash[key] = decrypt(value); new_hash}
|
17
17
|
when String
|
18
18
|
yaml.gsub(/^#{ENCRYPTED_PROPERTY_WRAPPER_ID}\((.*)\)$/) {@cipher.decrypt(@secret_key, $1)}
|
19
19
|
else
|