mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
fixing rubocop for remaining ruby versions
This commit is contained in:
parent
930025a067
commit
24088decf3
@ -16,3 +16,6 @@ Layout/LineLength:
|
||||
Exclude:
|
||||
- 'test/resolver/native_test.rb'
|
||||
Max: 140
|
||||
|
||||
Layout/RescueEnsureAlignment:
|
||||
Enabled: false
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user