lib/dionysus/configuration.rb in dionysus-0.4.0 vs lib/dionysus/configuration.rb in dionysus-1.0.0
- old
+ new
@@ -152,10 +152,10 @@
##
# Normalize the keys and keys from the defaults hash into the hard keys
# array.
def _normalize_hard_keys( defaults, keys )
- returning [] do |keys_|
+ [].tap do |keys_|
(keys + defaults.keys).uniq.collect {|key_| key_.to_s}.sort.each do |key|
raise ArgumentError, "Invalid key: '#{key}'" unless valid_key?(key)
keys_ << _normalize_key(key)
end
end.freeze