Update required and recommended Ruby versions

See rails/rails@ad7de78df958a43a909519bf601b78e5419394c3.