secure_data_bag 3.0.3 → 3.0.4

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: e19596df52fc0acba77867d44007e16f2f721b83
4
- data.tar.gz: adc998a5b846acea1ba2aafcc3907310d1c6db7b
3
+ metadata.gz: bf061c693288d22d3ec51494d4444ba95b3ef4be
4
+ data.tar.gz: 3378622f0ac889dd64e94825713692d524f8c0e9
5
5
  SHA512:
6
- metadata.gz: 6b783fc0045a7a346157ce9ac4fe81d5a56cd5e45d160d67d9f89c368b77feed2b62c0c9b4e9bc086ffc5b784c5070ea6049f8567b1b89db02f63a3d36a32879
7
- data.tar.gz: 22d4cc02726da502e60a1eb0ecd69efb0ce65e7fed5dfa9d13fd38a7f123a62d14505136d40de9ba611b9f8478c9b3c1fdd7bf23c72ed68eaa36dd2ed5e3d157
6
+ metadata.gz: 25916b24905313e61c7d46ba88c95c9bc4f1c2a858049d0cc00733ff467ccc084a5bb3fd8e7eaa928b9f54af80fe0abf1ed821f1291cccdaf6578a25b14a84be
7
+ data.tar.gz: 4a4b9d70db45a1ff2b391e31e7bea1ac8049da8431fefc111b4cb31e3af4aa5075d04004a28e8d6073a3389269d32aa5d4c72e7235bda5f3df8b101609d9fb12
@@ -230,8 +230,9 @@ module SecureDataBag
230
230
  encryptor.encrypt!
231
231
  encrypted_hash = encryptor.encrypted_hash
232
232
  # Ensure that protected fields are never encrypted
233
- encrypted_hash['data_bag'] = raw_data['data_bag']
234
- encrypted_hash['id'] = raw_data['id']
233
+ %w(data_bag id).each do |k|
234
+ encrypted_hash[k] = raw_data[k] if encrypted_hash.key?(k)
235
+ end
235
236
  encrypted_hash
236
237
  end
237
238
 
@@ -1,3 +1,3 @@
1
1
  module SecureDataBag
2
- VERSION = '3.0.3'.freeze
2
+ VERSION = '3.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secure_data_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Serafini