Skip to content

Commit

Permalink
Update rubocop → 1.60.1 (unknown) (#216)
Browse files Browse the repository at this point in the history
* Update rubocop to version 1.60.1

* Apply new rules

---------

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Munteanu <[email protected]>
  • Loading branch information
depfu[bot] and mkon authored Jan 22, 2024
1 parent 5cc5a92 commit 0bc5e58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api_valve.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rack-test', '~> 2.0'
s.add_development_dependency 'rackup'
s.add_development_dependency 'rspec', '~> 3.7'
s.add_development_dependency 'rubocop', '1.57.2'
s.add_development_dependency 'rubocop', '1.60.1'
s.add_development_dependency 'rubocop-rspec', '2.26.1'
s.add_development_dependency 'simplecov', '~> 0.16'
s.add_development_dependency 'timecop', '~> 0.9'
Expand Down
4 changes: 2 additions & 2 deletions lib/api_valve/forwarder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def build_response(original_request, original_response, options)
end

def request_options
(@options[:request] || {})
@options[:request] || {}
end

def response_options
(@options[:response] || {})
@options[:response] || {}
end

def run_request(request)
Expand Down
2 changes: 1 addition & 1 deletion lib/api_valve/middleware/logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def log_request
logger.info INCOMING % [
env['REQUEST_METHOD'],
[env['PATH_INFO'], env['QUERY_STRING'].presence].compact.join('?'),
(env['HTTP_X_FORWARDED_FOR'] || env['REMOTE_ADDR']),
env['HTTP_X_FORWARDED_FOR'] || env['REMOTE_ADDR'],
began_at.strftime('%Y-%m-%d %H:%M:%S %z')
]
end
Expand Down

0 comments on commit 0bc5e58

Please sign in to comment.