EPP doc in md

This commit is contained in:
Martin Lensment 2014-12-11 18:01:35 +02:00
parent 89c57d22b0
commit 2d3b17493d
3 changed files with 5750 additions and 18 deletions

5734
doc/epp-doc.md Normal file

File diff suppressed because it is too large Load diff

View file

@ -222,8 +222,8 @@ module Epp
def log(req, res)
return unless ENV['EPP_DOC']
puts "REQUEST:\n#{Nokogiri(req)}\n"
puts "RESPONSE:\n#{res}\n"
puts "REQUEST:\n\n```xml\n#{Nokogiri(req)}```\n\n"
puts "RESPONSE:\n\n```xml\n#{res}```\n\n"
end
end

View file

@ -5,32 +5,30 @@ class EppDoc
@output = output
end
def example_started(notification)
@output.puts '-' * 100
@output.puts notification.example.full_description
@output.puts '-' * 100
def start(example_count)
@output.puts '# EPP REQUEST - RESPONSE DOCUMENTATION'
@output.puts "GENERATED AT: #{Time.now} "
@output.puts "EXAMPLE COUNT: #{example_count.count} "
@output.puts '---'
end
def start(example_count)
@output.puts '-' * 100
@output.puts 'EPP REQUEST - RESPONSE DOCUMENTATION'
@output.puts "GENERATED AT: #{Time.now}"
@output.puts "EXAMPLE COUNT: #{example_count.count}"
def example_started(notification)
@output.puts "## #{notification.example.full_description}\n\n"
end
def example_passed(_example)
dash = '-' * 48
@output.puts "#{dash}PASS#{dash}\n\n"
# dash = '-' * 48
# @output.puts "#{dash}PASS#{dash}\n\n"
end
def example_failed(_example)
dash = '-' * 48
@output.puts "#{dash}FAIL#{dash}\n\n"
# dash = '-' * 48
# @output.puts "#{dash}FAIL#{dash}\n\n"
end
def example_pending(_example)
dash_1 = '-' * 47
dash_2 = '-' * 46
@output.puts "#{dash_1}PENDING#{dash_2}\n\n"
# dash_1 = '-' * 47
# dash_2 = '-' * 46
# @output.puts "#{dash_1}PENDING#{dash_2}\n\n"
end
end