Class: Gemometer::Notifiers::Hipchat

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

Instance Attribute Summary

Attributes inherited from Base

#gems, #key, #url, #username

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize, #notify

Constructor Details

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

Class Method Details

.mandatory_optionsObject



11
12
13
# File 'lib/gemometer/notifiers/hipchat.rb', line 11

def self.mandatory_options
  [:url]
end

Instance Method Details

#messageObject



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

def message
  msg = '<p>Outdated gems:</p><ul>'
  gems.each { |g| msg += "<li>#{ruby_gems_link(g.name)} #{g.message_line}</li>" }
  msg += '</ul>'
end