yaml_vault 1.0.0.beta2 → 1.0.0.beta3

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: 1433e19bf211ca836fc82aaae3a7c2214f95af13
4
- data.tar.gz: b6ad967e2059f22698d4511fa20adebdd123b87d
3
+ metadata.gz: 641188e122959d60bd72891ae20aef1d70b89774
4
+ data.tar.gz: b2d33ede10df492fb15f9617eb840bd9ebf728ff
5
5
  SHA512:
6
- metadata.gz: 3c939eb3523faa899fe2e3503273d3f6f076acb0e049f1fda2de28b26639885de71dd21f37a5196690b066dfce3b2b85afde5bab44ec3283ddedbadffc8cb1b1
7
- data.tar.gz: d9ba3380faec5428f0274ef1c0dc1597d91e940140694c4561a09b28a0ab59d7d971c01a41718bd7da98ad2fa62888ddf498c3a3c59d0d09a290c5bbd2125a6e
6
+ metadata.gz: 45928616ec6cf21f64f0febc557f1d94b0fb14b17b75d054f45043a61052201354b22d33ff46d39e2f11a9a6d6c993fef93bb9eeab142f71addee752e4fec136
7
+ data.tar.gz: 35b70114cc2f3d08513db891a87e6e765db62c46c54fa4f7c819f968b13d49a26e36c3105d4c7c0e71a59903ac575d367b2e24414c8cdd990f94ae95435dd1a5
@@ -7,7 +7,7 @@ module YamlVault
7
7
  secrets = ActiveSupport::OrderedOptions.new
8
8
  yaml = config.paths["config/secrets"].first
9
9
  if File.exist?(yaml)
10
- all_secrets = YamlVault::Main.from_content(IO.read(yaml), keys, cryptor_name, **options).decrypt
10
+ all_secrets = YamlVault::Main.from_content(IO.read(yaml), keys, cryptor_name, **options).decrypt_hash
11
11
  env_secrets = all_secrets[::Rails.env]
12
12
  secrets.merge!(env_secrets.symbolize_keys) if env_secrets
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module YamlVault
2
- VERSION = "1.0.0.beta2"
2
+ VERSION = "1.0.0.beta3"
3
3
  end
@@ -75,7 +75,7 @@ module YamlVault
75
75
  result.value = @cryptor.encrypt(value)
76
76
  end
77
77
  else
78
- decrypted_value = @cryptor.decrypt(value)
78
+ decrypted_value = @cryptor.decrypt(value).to_s
79
79
  if decrypted_value =~ /\A(!.*?)\s+(.*)\z/
80
80
  result.tag = $1
81
81
  result.plain = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta2
4
+ version: 1.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: 1.3.1
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 2.6.12
127
+ rubygems_version: 2.6.13
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: yaml encryption/decryption helper.