Update to Ruby 3.1.5
This matches the version used in Cloud Native GitLab (gitlab-org/build/CNG!1825 (merged)) and GitLab Omnibus (omnibus-gitlab!7591 (merged)).
A patch for libffi < 3.2 is needed for almalinux_8arm64
and amazonlinux_2_arm64
.
Edited by Stan Hu