Ruby 3 support

We need to start building this project against Ruby 3. It currently uses a Ruby 2.7 image: https://gitlab.com/gitlab-org/gitlab-qa/-/blob/master/.gitlab-ci.yml#L8

Ruby 2 will reach end of life in March 2023.

Refs gitlab#356115 (closed)