diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ed35ad7396a..ba696fb5bc8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 100` -# on 2024-03-04 14:13:59 UTC using RuboCop version 1.61.0. +# on 2024-03-26 08:59:27 UTC using RuboCop version 1.62.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -24,12 +24,6 @@ Lint/AssignmentInCondition: Exclude: - 'dist/clouduploader.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Lint/DeprecatedClassMethods: - Exclude: - - 'dist/t/spec/support/capybara.rb' - # Offense count: 2 Lint/RescueException: Exclude: diff --git a/dist/t/spec/support/capybara.rb b/dist/t/spec/support/capybara.rb index 24b8ebc3882..729a96c0eaf 100644 --- a/dist/t/spec/support/capybara.rb +++ b/dist/t/spec/support/capybara.rb @@ -24,7 +24,7 @@ # Set hostname begin - hostname = Socket.gethostbyname(Socket.gethostname).first + hostname = Addrinfo.getaddrinfo(Socket.gethostname, 443, nil, :STREAM).first.getnameinfo[0] rescue SocketError hostname = '' end