Skip to content

Fix kwargs deprecation warnings for Ruby 2.7.2

Peter Leitzen requested to merge pl-ruby27-kwargs-deprecations-warnings into master

This MR upgrades to Ruby 2.7.2, enables deprecation warnings for specs, ignores .bundle directory, and fixes kwargs deprecation warnings.

Please see individual commit messages for more details.

Contributes to gitlab-org/gitlab#257438 (closed).

Screenshots

Before After
Screenshot_from_2020-12-01_21-40-34 Screenshot_from_2020-12-01_22-00-14

The remaining deprecation warning

/home/peter/.dotfiles/asdf/installs/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/rspec-mocks-3.10.0/lib/rspec/mocks/message_expectation.rb:101: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/home/peter/devel/gitlab/labkit-ruby/lib/labkit/tracing/tracing_utils.rb:11: warning: The called method `with_tracing' is defined here

stems from https://github.com/rspec/rspec-mocks/issues/1306.

Edited by Peter Leitzen

Merge request reports