lib/runger/auto_cast.rb in runger_config-4.0.0 vs lib/runger/auto_cast.rb in runger_config-5.0.0
- old
+ new
@@ -21,14 +21,14 @@
when /\A(false|f|no|n)\z/i
false
when /\A(nil|null)\z/i
nil
when /\A\d+\z/
- val.to_i
+ Integer(val, 10)
when /\A\d*\.\d+\z/
- val.to_f
+ Float(val)
when /\A['"].*['"]\z/
- val.gsub(/(\A['"]|['"]\z)/, "")
+ val.gsub(/(\A['"]|['"]\z)/, '')
else
val
end
end