Check URL format in ruby gem