mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-11-03 12:56:15 +01:00
gems: update rubocop to version 0.88.0
Update rubocop to version 0.88.0 (#57) Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
This commit is contained in:
parent
b2d9b7745f
commit
950c985ad1
@ -39,6 +39,6 @@ Gem::Specification.new do |s|
|
||||
s.add_development_dependency 'rack-test'
|
||||
s.add_development_dependency 'rake'
|
||||
s.add_development_dependency 'rspec'
|
||||
s.add_development_dependency 'rubocop', '~> 0.82.0'
|
||||
s.add_development_dependency 'rubocop', '~> 0.88.0'
|
||||
s.add_development_dependency 'solargraph'
|
||||
end
|
||||
|
@ -27,9 +27,10 @@ module Dyndnsd
|
||||
# @param body [Array{String}]
|
||||
# @return [Array{Integer,Hash{String => String},Array{String}}]
|
||||
def decorate_dyndnsd_response(status_code, headers, body)
|
||||
if status_code == 200
|
||||
case status_code
|
||||
when 200
|
||||
[200, {'Content-Type' => 'text/plain'}, [get_success_body(body[0], body[1])]]
|
||||
elsif status_code == 422
|
||||
when 422
|
||||
error_response_map[headers['X-DynDNS-Response']]
|
||||
end
|
||||
end
|
||||
@ -39,9 +40,10 @@ module Dyndnsd
|
||||
# @param _body [Array{String}]
|
||||
# @return [Array{Integer,Hash{String => String},Array{String}}]
|
||||
def decorate_other_response(status_code, headers, _body)
|
||||
if status_code == 400
|
||||
case status_code
|
||||
when 400
|
||||
[status_code, headers, ['Bad Request']]
|
||||
elsif status_code == 401
|
||||
when 401
|
||||
[status_code, headers, ['badauth']]
|
||||
end
|
||||
end
|
||||
|
@ -27,9 +27,10 @@ module Dyndnsd
|
||||
# @param body [Array{String}]
|
||||
# @return [Array{Integer,Hash{String => String},Array{String}}]
|
||||
def decorate_dyndnsd_response(status_code, headers, body)
|
||||
if status_code == 200
|
||||
case status_code
|
||||
when 200
|
||||
[200, {'Content-Type' => 'text/plain'}, [get_success_body(body[0], body[1])]]
|
||||
elsif status_code == 422
|
||||
when 422
|
||||
error_response_map[headers['X-DynDNS-Response']]
|
||||
end
|
||||
end
|
||||
@ -39,9 +40,10 @@ module Dyndnsd
|
||||
# @param _body [Array{String}]
|
||||
# @return [Array{Integer,Hash{String => String},Array{String}}]
|
||||
def decorate_other_response(status_code, headers, _body)
|
||||
if status_code == 400
|
||||
case status_code
|
||||
when 400
|
||||
[status_code, headers, ['Bad Request']]
|
||||
elsif status_code == 401
|
||||
when 401
|
||||
[status_code, headers, ['Unauthorized']]
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user