mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 17:55:55 +02:00
Update doc generation
This commit is contained in:
parent
33a4d4b868
commit
58249742c1
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ module Epp
|
|||
|
||||
res = parse_response(server.send_request(data))
|
||||
if res
|
||||
log(data, res[:parsed])
|
||||
log(data, res[:raw])
|
||||
if validate_output && @xsd
|
||||
@xsd.validate(Nokogiri(res[:raw])).each do |error|
|
||||
fail Exception.new, error.to_s
|
||||
|
@ -364,7 +364,7 @@ module Epp
|
|||
def log(req, res)
|
||||
return unless ENV['EPP_DOC']
|
||||
puts "REQUEST:\n\n```xml\n#{Nokogiri(req)}```\n\n"
|
||||
puts "RESPONSE:\n\n```xml\n#{res}```\n\n"
|
||||
puts "RESPONSE:\n\n```xml\n#{Nokogiri(res)}```\n\n"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue