lib/rspeckled/plugins/faraday.rb in rspeckled-0.0.14 vs lib/rspeckled/plugins/faraday.rb in rspeckled-0.0.15
- old
+ new
@@ -11,11 +11,10 @@
require 'logger'
::Logger.new(STDOUT)
end
- # :reek:ControlParameter
def initialize(app, logger = nil, program_name = nil)
super(app)
@logger = logger || self.class.default_logger
@program_name = program_name
@@ -31,11 +30,9 @@
@logger.info(@program_name) { curl_output('response', "HTTP #{env[:status]}", env[:response_headers], env[:body]) }
end
private
- # :reek:ControlParameter
- # :reek:UtilityFunction
def curl_output(direction, summary, headers, body)
directional_arrow = direction == 'request' ? '>' : '<'
color_code = direction == 'request' ? 32 : 33
curl_formatted_headers = headers.map { |name, value|