Add Ruby 3.1 and 3.2 support for gitlab-slim-ruby image
What does this MR do and why?
Describe in detail what your merge request does and why.
Checklist
-
(If applicable) Add patches if required for upgrading Ruby version in https://gitlab.com/gitlab-org/gitlab-build-images/-/tree/master/patches/ruby.