Fix remaining Ruby 3 issues

Even with version 5.5.22-3 uploaded today, puppet FTBFS in Ubuntu because of some changes needed to support Ruby 3. I pointed out those changes in the other MR which was already merged but I think they were forgotten. With the proposed changes here, it builds fine with Ruby 3 as the default.

With the proposed package, autopkgtest is happy:

autopkgtest [12:22:08]: @@@@@@@@@@@@@@@@@@@@ summary
command1             PASS
command2             PASS
command3             PASS
command4             PASS
command5             PASS

Merge request reports

Loading