itamae 1.0.0.beta14 → 1.0.0.beta15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/itamae/resource/base.rb +1 -1
- data/lib/itamae/version.txt +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: a4657957d6fb115404c29918274a42bcc7e5d7f8
|
|
4
|
+
data.tar.gz: 2b65a054f3b5392fc4e7b45fd671674db2165c7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 969f3e764a9b68af434f0107e05afbd4c60627fccb63bf1bab8489c53d459607c9a67eb9950be781240f577d30c0a4c96f42af8cdd8e90b68ea5892259954bdf
|
|
7
|
+
data.tar.gz: 95bb689a0f74296b960699dc2e644489528658b8d7e81a8bbbdf9f7da9194f3ec00945f46408cba4c887f18f6e399d1fe933fa49203102e613196e6877c322e3
|
data/lib/itamae/resource/base.rb
CHANGED
|
@@ -156,7 +156,7 @@ module Itamae
|
|
|
156
156
|
def process_attributes
|
|
157
157
|
self.class.defined_attributes.each_pair do |key, details|
|
|
158
158
|
@attributes[key] ||= @resource_name if details[:default_name]
|
|
159
|
-
@attributes[key] ||= details[:default]
|
|
159
|
+
@attributes[key] ||= details[:default] if details[:default]
|
|
160
160
|
|
|
161
161
|
if details[:required] && !@attributes[key]
|
|
162
162
|
raise Resource::AttributeMissingError, "'#{key}' attribute is required but it is not set."
|
data/lib/itamae/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.0.
|
|
1
|
+
1.0.0.beta15
|