secure_data_bag 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/secure_data_bag/secure_data_bag_item.rb +3 -3
- data/lib/secure_data_bag/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58cc15167a192510c0c42c3670a62549c6facfce
|
4
|
+
data.tar.gz: bd97d80516b02d36df6df25ebbe517cf52ae894e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e72348c087efe51e3f2da4619cd8d53486fb1a8c3b9d0196ee0248b62f7a8a33bacab809856cf78eaff4ab45f1cfd9a6828668f4cb448dbc7d4a452479afaa77
|
7
|
+
data.tar.gz: 091e8e0c8c0c065f78666473b8347d34c98cc0e96367808fe51de3551461ddd9253380413e2046e62631626f3b9696e4c56a343ae36852a429638dc510d3d1de
|
@@ -82,7 +82,7 @@ module SecureDataBag
|
|
82
82
|
|
83
83
|
def self.load(data_bag, name, opts={})
|
84
84
|
data = super(data_bag, name)
|
85
|
-
new(data:data.to_hash
|
85
|
+
new(opts.merge(data:data.to_hash))
|
86
86
|
end
|
87
87
|
|
88
88
|
#
|
@@ -175,12 +175,12 @@ module SecureDataBag
|
|
175
175
|
#
|
176
176
|
|
177
177
|
def self.from_hash(h, opts={})
|
178
|
-
item = new(data:h
|
178
|
+
item = new(opts.merge(data:h))
|
179
179
|
item
|
180
180
|
end
|
181
181
|
|
182
182
|
def self.from_item(h, opts={})
|
183
|
-
item = self.from_hash(h.to_hash,
|
183
|
+
item = self.from_hash(h.to_hash, opts)
|
184
184
|
item.data_bag h.data_bag
|
185
185
|
item
|
186
186
|
end
|