Explicitly handle booleans in ruby gem