Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/http/form_data/composite_io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def read(length = nil, outbuf = nil)
# @api public
# @return [Integer]
def size
@size ||= @ios.sum(&:size)
@size ||= @ios.sum(&:size) # steep:ignore
end

# Rewinds all IO objects and resets cursor
Expand Down
4 changes: 2 additions & 2 deletions lib/http/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def include?(name)
# @return [Hash]
# @api public
def to_h
keys.to_h { |k| [k, self[k]] }
keys.to_h { |k| [k, self[k]] } # steep:ignore
end
# @!method to_hash
# @see #to_h
Expand All @@ -200,7 +200,7 @@ def to_h
# @return [Hash{Symbol => Object}]
# @api public
def deconstruct_keys(keys)
hash = @pile.map { |_, k, _| k }.to_h { |k| [k.tr("A-Z-", "a-z_").to_sym, self[k]] }
hash = @pile.map { |_, k, _| k }.to_h { |k| [k.tr("A-Z-", "a-z_").to_sym, self[k]] } # steep:ignore
keys ? hash.slice(*keys) : hash
end

Expand Down
4 changes: 2 additions & 2 deletions lib/http/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class << self
def new(options = nil, **kwargs)
return options if options.is_a?(self)

super(**(options || kwargs)) # steep:ignore
super(**(options || kwargs))
end

# Returns list of defined option names
Expand Down Expand Up @@ -181,7 +181,7 @@ def merge(other)
# @api public
# @return [Hash]
def to_hash
self.class.defined_options.to_h { |opt_name| [opt_name, public_send(opt_name)] }
self.class.defined_options.to_h { |opt_name| [opt_name, public_send(opt_name)] } # steep:ignore
end

# Duplicates the options object
Expand Down
2 changes: 1 addition & 1 deletion lib/http/options/definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def features=(features)
unless (feature = self.class.available_features[name])
argument_error! "Unsupported feature: #{name}"
end
feature.new(**opts_or_feature) # steep:ignore
feature.new(**opts_or_feature)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/http/response/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def symbolize(str)
# SYMBOL_CODES[:im_a_teapot] # => 418
#
# @return [Hash<Symbol => Fixnum>]
SYMBOL_CODES = SYMBOLS.to_h { |k, v| [v, k] }.freeze
SYMBOL_CODES = SYMBOLS.invert.freeze

# The numeric status code
#
Expand Down
2 changes: 1 addition & 1 deletion lib/http/timeout/per_operation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Timeout
# Timeout handler with separate timeouts for connect, read, and write
class PerOperation < Null
# Mapping of shorthand option keys to their full forms
KEYS = %i[read write connect].to_h { |k| [k, :"#{k}_timeout"] }.freeze
KEYS = { read: :read_timeout, write: :write_timeout, connect: :connect_timeout }.freeze

# Normalize and validate timeout options
#
Expand Down