require 'tessellator/fetcher' module HowIs # This entire class is a monstrous hack, because GitHub doesn't provide a good # API for Pulse. class Pulse def initialize(repository) @repository = repository @pulse_page_response = fetch_pulse!(repository) end def text_summary raise NotImplementedError end def html_summary @pulse_page_response.body .split('
').last .split('
').first .gsub('