Upgrade Ruby version and gems