Class: Gemometer::Notifiers::Hipchat

Inherits:
Base
  • Object
show all
Defined in:
lib/gemometer/notifiers/hipchat.rb

Instance Attribute Summary

Attributes inherited from Base

#gems, #url

Instance Method Summary collapse

Methods inherited from Base

#initialize, #notify

Constructor Details

This class inherits a constructor from Gemometer::Notifiers::Base

Instance Method Details

#messageObject



5
6
7
8
9
10
11
# File 'lib/gemometer/notifiers/hipchat.rb', line 5

def message
  html = '<p>Outdated gems:</p><ul>'
  gems.each do |g|
    html += "<li><a href='https://rubygems.org/gems/#{g[:name]}'>#{g[:name]}</a> (newest #{g[:newest]}, installed #{g[:installed]})</li>"
  end
  html += '</ul>'
end