mirror of
https://github.com/internetee/registry.git
synced 2025-05-30 09:30:03 +02:00
fixed ruby 3 support errors
This commit is contained in:
parent
62d1ba45a2
commit
6eeba2b3ab
4 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM internetee/ruby:2.7-buster
|
FROM internetee/ruby:3.0-buster
|
||||||
|
|
||||||
RUN mkdir -p /opt/webapps/app/tmp/pids
|
RUN mkdir -p /opt/webapps/app/tmp/pids
|
||||||
WORKDIR /opt/webapps/app
|
WORKDIR /opt/webapps/app
|
||||||
|
|
|
@ -104,8 +104,8 @@ module Epp
|
||||||
render_epp_response '/epp/error'
|
render_epp_response '/epp/error'
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_epp_response(*args)
|
def render_epp_response(template)
|
||||||
@response = render_to_string(*args, formats: [:xml])
|
@response = render_to_string(template, formats: [:xml])
|
||||||
render xml: @response
|
render xml: @response
|
||||||
write_to_epp_log
|
write_to_epp_log
|
||||||
end
|
end
|
||||||
|
|
|
@ -58,7 +58,7 @@ module Repp
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
render_success(create_update_success_body)
|
render_success(**create_update_success_body)
|
||||||
end
|
end
|
||||||
|
|
||||||
api :DELETE, '/repp/v1/contacts/:contact_code'
|
api :DELETE, '/repp/v1/contacts/:contact_code'
|
||||||
|
|
|
@ -121,7 +121,7 @@ module EppErrors
|
||||||
err = { code: code, msg: t }
|
err = { code: code, msg: t }
|
||||||
val = check_for_status(code, obj, val)
|
val = check_for_status(code, obj, val)
|
||||||
err[:value] = { val: val, obj: obj } if val.present?
|
err[:value] = { val: val, obj: obj } if val.present?
|
||||||
self.errors.add(:epp_errors, err)
|
self.errors.add(:epp_errors, **err)
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_for_status(code, obj, val)
|
def check_for_status(code, obj, val)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue