|
|
@ -172,7 +172,7 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
def process_response(response)
|
|
|
|
def process_response(response)
|
|
|
|
data = {}
|
|
|
|
data = {}
|
|
|
|
html, title = parse(response.body)
|
|
|
|
html, title = parse(response)
|
|
|
|
context = pipeline_context(response)
|
|
|
|
context = pipeline_context(response)
|
|
|
|
context[:html_title] = title
|
|
|
|
context[:html_title] = title
|
|
|
|
pipeline.call(html, context, data)
|
|
|
|
pipeline.call(html, context, data)
|
|
|
@ -183,8 +183,8 @@ module Docs
|
|
|
|
options.merge url: response.url
|
|
|
|
options.merge url: response.url
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def parse(string)
|
|
|
|
def parse(response)
|
|
|
|
parser = Parser.new(string)
|
|
|
|
parser = Parser.new(response.body)
|
|
|
|
[parser.html, parser.title]
|
|
|
|
[parser.html, parser.title]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|