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.
@@ -1,5 +1,5 @@
1
1
  module SecureYaml
2
2
 
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
 
5
5
  end
@@ -13,7 +13,7 @@ module SecureYaml
13
13
  def decrypt(yaml)
14
14
  case yaml
15
15
  when Hash
16
- yaml.each_with_object({}) {|(key, value), new_hash| new_hash[key] = decrypt(value)}
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secure_yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: