Method: WtCommit.fetch_message

Defined in:
lib/wt-commit.rb

.fetch_messageObject



5
6
7
8
# File 'lib/wt-commit.rb', line 5

def self.fetch_message
  response = Hpricot(HTTParty.get('http://whatthecommit.com/').body)
  WtCommit::sanitize((response/"div[@id='content']/p").inner_html)
end