Skip to content

Preparations for upgrade to Ruby 3.2.1

Steve Abrams requested to merge ruby-3 into master

What does this MR do and why?

Adds some updates in preparation for upgrading to Ruby 3. These are updating object hash/keyword arguments as described here: https://docs.gitlab.com/ee/development/ruby3_gotchas.html#rspec-with-argument-matcher-fails-for-shorthand-hash-syntax. This is a small subset of these changes, other MRs will include additional changes to keep the MRs a reasonable size.

This also ensures that these changes are compatible with our current Ruby 2.7.7 before we make the upgrade.

Related to gitlab-com/gl-infra/delivery#2864 (closed).

Author Check-list

  • [-] Has documentation been updated?
Edited by Steve Abrams

Merge request reports