update ruby snippet