lib/how_is/pulse.rb in how_is-10.0.0 vs lib/how_is/pulse.rb in how_is-11.0.0

- old
+ new

@@ -12,11 +12,19 @@ def text_summary raise NotImplementedError end def html_summary - @pulse_page_response.body - .split('<div class="section diffstat-summary">').last + parts = + @pulse_page_response.body + .split('<div class="section diffstat-summary">') + + if parts.length == 1 + return "There hasn't been any activity on #{@repository} in the last month." + end + + parts + .last .split('</div>').first .gsub('<a href="/', '<a href="https://github.com/') .strip end