Skip to content

Fix Ruby 2.7 deprecation warnings for RefreshService

Patrick Bajao requested to merge pb-refresh-service-kwargs 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.

Explicitly specify passing keyword arguments instead of a Hash object by using double splat operator.

Since Repository#create_file expects kwargs, updated the spec to pass options as keyword arguments.

Related to #257438 (closed)

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 Patrick Bajao

Merge request reports