Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/nom/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ def get key
raise "Unknown configuration option '#{key}'"
end

if key == "rate" and @config["rate"] < 0.1
puts "Warning: rates smaller than 0.1 are not supported, capping to 0.1"
0.1
end

if @defaults[key][2] == Float
v.to_f
elsif @defaults[key][2] == Date
Expand Down