fixing rubocop for remaining ruby versions

This commit is contained in:
HoneyryderChuck 2020-11-07 16:55:23 +00:00
parent 930025a067
commit 24088decf3
4 changed files with 12 additions and 3 deletions

View File

@ -16,3 +16,6 @@ Layout/LineLength:
Exclude:
- 'test/resolver/native_test.rb'
Max: 140
Layout/RescueEnsureAlignment:
Enabled: false

View File

@ -5,3 +5,11 @@ Style/OptionalBooleanParameter:
Gemspec/RequiredRubyVersion:
Enabled: false
Lint/MissingSuper:
Exclude:
- 'lib/httpx/io/unix.rb'
Style/HashTransformValues:
Exclude:
- 'lib/httpx/plugins/digest_authentication.rb'

View File

@ -8,7 +8,6 @@ module HTTPX
def_delegator :@uri, :port, :scheme
# rubocop:disable Lint/MissingSuper
def initialize(uri, addresses, options)
@uri = uri
@addresses = addresses
@ -30,7 +29,6 @@ module HTTPX
end
@io ||= build_socket
end
# rubocop:enable Lint/MissingSuper
def hostname
@uri.host

View File

@ -81,7 +81,7 @@ module HTTPX
uri = request.path
params = Hash[auth_info.split(/ *, */) # rubocop:disable Style/HashTransformValues
params = Hash[auth_info.split(/ *, */)
.map { |val| val.split("=") }
.map { |k, v| [k, v.delete("\"")] }]
nonce = params["nonce"]