Merge pull request #1538 from taf2/patch-1

Update util.rb to support float in yaml files
This commit is contained in:
Thomas Reynolds 2015-06-11 14:50:48 -07:00
commit c0ddf15add

View file

@ -122,7 +122,7 @@ module Middleman
Hamster::Set.new(res)
when Hamster::Vector, Hamster::Set, Hamster::SortedSet
obj.map { |element| recursively_enhance(element) }
when ::TrueClass, ::FalseClass, ::Fixnum, ::Symbol, ::NilClass
when ::TrueClass, ::FalseClass, ::Fixnum, ::Symbol, ::NilClass, ::Float
obj
else
obj.dup.freeze