$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) module Bastard LogRoot = nil end Clarity::GrepRenderer.module_eval do require 'bastard/renderers/mail_file_log_renderer' def renderer @renderer ||= MailFileLogRenderer.new end end Clarity::Server.module_eval do def sanitize_file_location(path) parts = path.split('/') file = parts.pop parts.map! { |part| part.gsub('.', '') } parts << file parts.join('/') end def process_http_request_with_fetch return process_http_request_without_fetch unless path == '/fetch' return respond_with(404, "