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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a6d9038e892afddaf4c8d5dceef61585c59c730
4
- data.tar.gz: 3529f616034dca772b32d629cecf7211e2b489de
3
+ metadata.gz: a4657957d6fb115404c29918274a42bcc7e5d7f8
4
+ data.tar.gz: 2b65a054f3b5392fc4e7b45fd671674db2165c7b
5
5
  SHA512:
6
- metadata.gz: 73d9230854aa0bcfe65d173b2a0bdbb4a7a9aa9ea000447bbdca0c30d768453b6e83d64f102d23cb68cc27c13e544e5cd583ba7a2644c943039c260cd18bb7b8
7
- data.tar.gz: f43d2bf1bc2d97d0cb7eab7130930f63d4edd1eba98ecbdeff8e62df071f4c95653fc0a3877a088cab8f3b2c3819681dcc44135e670a7cf616a5efbfadcecff7
6
+ metadata.gz: 969f3e764a9b68af434f0107e05afbd4c60627fccb63bf1bab8489c53d459607c9a67eb9950be781240f577d30c0a4c96f42af8cdd8e90b68ea5892259954bdf
7
+ data.tar.gz: 95bb689a0f74296b960699dc2e644489528658b8d7e81a8bbbdf9f7da9194f3ec00945f46408cba4c887f18f6e399d1fe933fa49203102e613196e6877c322e3
@@ -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."
@@ -1 +1 @@
1
- 1.0.0.beta14
1
+ 1.0.0.beta15
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta14
4
+ version: 1.0.0.beta15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai