Switch to ruby gem