Properly load booleans from the API
This commit is contained in:
parent
8edf681175
commit
48f4769155
@ -334,8 +334,10 @@ module Cask
|
|||||||
from_h_hash_gsubs(value)
|
from_h_hash_gsubs(value)
|
||||||
elsif value.respond_to? :to_a
|
elsif value.respond_to? :to_a
|
||||||
from_h_array_gsubs(value)
|
from_h_array_gsubs(value)
|
||||||
|
elsif value.is_a? String
|
||||||
|
from_h_string_gsubs(value)
|
||||||
else
|
else
|
||||||
{ "true" => true, "false" => false }.fetch(value, from_h_string_gsubs(value))
|
value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user