configfiles 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/configfiles.rb +3 -3
- metadata +2 -2
data/lib/configfiles.rb
CHANGED
@@ -7,7 +7,7 @@ require 'configfiles/extensions/enumerable'
|
|
7
7
|
|
8
8
|
module ConfigFiles
|
9
9
|
|
10
|
-
VERSION = '0.3.
|
10
|
+
VERSION = '0.3.1'
|
11
11
|
|
12
12
|
# You should write a read(io) method,
|
13
13
|
# taking an IO object and returnig a key-value hash, where keys
|
@@ -234,7 +234,7 @@ module ConfigFiles
|
|
234
234
|
end
|
235
235
|
end
|
236
236
|
|
237
|
-
if opt_h[:
|
237
|
+
if opt_h[:compute_defaults]
|
238
238
|
# assign default values to the remaining params
|
239
239
|
@@parameters.each_pair do |name, h|
|
240
240
|
if !@data[name] and @@parameters[name][:default]
|
@@ -243,7 +243,7 @@ module ConfigFiles
|
|
243
243
|
end
|
244
244
|
end
|
245
245
|
|
246
|
-
@data.merge! deferred_data if opt_h[:
|
246
|
+
@data.merge! deferred_data if opt_h[:compute_deferred]
|
247
247
|
|
248
248
|
validate if opt_h[:validate]
|
249
249
|
end
|