[openSUSE/open-build-service] 417475: Fix some ruby 3.1 incompatibilities