secure_data_bag 1.1.2 → 1.1.3

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: 583140332d580fbe66602d16b80ff3f166f2b7e4
4
- data.tar.gz: 65e531eff585bbcbf15d10322002837ccde40e8f
3
+ metadata.gz: 00dd6f53ed498ae42f0d7d0eed25523add5c24d8
4
+ data.tar.gz: 36c3fcb28c5d55245e2c7bbc41d8e473016d4caf
5
5
  SHA512:
6
- metadata.gz: f44cbd458e3b187623c3909b2f4f3503c4fcdd66939f26a56d09fd49fa58ae63960c2c0fbd37047071f511e467289bd27de44c8cd8fa9284191a40a14780b9c6
7
- data.tar.gz: 673afe9b57d053394c753fc7d96cc992bfd7447db6e120bba479338a7d40b13da2704d819d9786211fc385312163a6f277428c010762ddf2aac589d366982ed5
6
+ metadata.gz: 65c0efb5dae67a1dbe192e1794052bc0e2143ec275910791ea43b6445694b77282854f2f474b454b8071f54d6f403301741c45751a20b3e0e19320f1e67367c3
7
+ data.tar.gz: e46b32b2a0b08df9aa77bf8dda567c77c3aa17c10a2e39866b92a4597c66196e23f3b6ce402e68ae50fc3a3977017f2a7362270e901a2ce1f580a53e0e0f7de7
@@ -27,13 +27,19 @@ class Chef
27
27
  default: Array.new
28
28
  end
29
29
  end
30
-
30
+
31
+ def encode_fields_to_array
32
+ unless config[:encode_fields].is_a?(Array)
33
+ config[:encode_fields] = config[:encode_fields].split(",")
34
+ end
35
+ end
36
+
31
37
  def use_encryption
32
38
  if use_secure_databag then false
33
39
  else
34
40
  if @raw_data["encrypted_data"] or
35
41
  @raw_data.reject { |k,v| k == "id" }.
36
- all? { |k,v| v.key? "encrypted_data" }
42
+ all? { |k,v| v.is_a?(Hash) and v.key? "encrypted_data" }
37
43
  then super
38
44
  else false
39
45
  end
@@ -1,5 +1,5 @@
1
1
 
2
2
  module SecureDataBag
3
- VERSION = "1.1.2"
3
+ VERSION = "1.1.3"
4
4
  end
5
5
 
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: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Serafini