Use URI.open instead Kernel#open
With Ruby 2.7, Kernel#open
was deprecated and URI.open
should be used.
Example:
$ bundle exec rspec -c -f d spec -t "${RSPEC_TAGS}"
[...]
/builds/gitlab/spec/gitlab_test_helper.rb:206: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
[...]
/builds/gitlab/spec/features/backups_spec.rb:72: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
[...]
Finished in 7 minutes 16 seconds (files took 1.71 seconds to load)
6 examples, 0 failures
https://gitlab.com/gitlab-org/charts/gitlab/-/jobs/1129536148