Skip to content

Ruby 2.7 kwargs deprecation warnings for repository.rb

Gary Holtz requested to merge 257438-ruby-2-7-kwargs-deprecation-warnings into master

What does this MR do?

In Ruby 3.0, positional arguments and keyword arguments will be separated. In Ruby 2.7, deprecation warnings related to keyword arguments show up.

This adds a double splat to specify args as keyword arguments in the repository.rb file

Related to #257438 (closed).

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Gary Holtz

Merge request reports