Collect all deprecation warnings for Ruby 3
Ruby 3 and 3.2 has many breaking changes when it comes to Ruby 3 itself. To provide a smooth update, we need to collect all deprecations in our code base and resolve them one by one.
Run CI or all tests with env RUBYOPT="-W:deprecated to get all places with deprecations.
Adopting the workflow from GitLab gitlab#257438 (closed)
Edited by Vitaly Slobodin