Permalink
Browse files

rename Twitterer to just Twitter

  • Loading branch information...
mojombo committed Nov 14, 2008
1 parent 030a9fe commit 73f433914ecc4e0ff01bacd3e40e6a4705befc6f
Showing with 7 additions and 7 deletions.
  1. +1 −1 lib/god.rb
  2. +6 −6 lib/god/contacts/{twitterer.rb → twitter.rb}
View
@@ -54,7 +54,7 @@
require 'god/contact'
require 'god/contacts/email'
begin
- require 'god/contacts/twitterer'
+ require 'god/contacts/twitter'
rescue LoadError
end
begin
@@ -3,9 +3,9 @@
#
# Configure your watches like this:
#
-# God::Contacts::Twitterer.settings = { :username => 'sender@example.com',
+# God::Contacts::Twitter.settings = { :username => 'sender@example.com',
# :password => 'secret' }
-# God.contact(:twitterer) do |c|
+# God.contact(:twitter) do |c|
# c.name = 'Tester'
# c.group = 'developers'
# end
@@ -15,7 +15,7 @@
module God
module Contacts
- class Twitterer < Contact
+ class Twitter < Contact
class << self
attr_accessor :settings
end
@@ -26,10 +26,10 @@ def valid?
def notify(message, time, priority, category, host)
begin
- Twitter::Base.new(Twitterer.settings[:username],
- Twitterer.settings[:password]).update(message)
+ ::Twitter::Base.new(Twitter.settings[:username],
+ Twitter.settings[:password]).update(message)
- self.info = "sent twitter update as #{Twitterer.settings[:username]}"
+ self.info = "sent twitter update as #{Twitter.settings[:username]}"
rescue => e
self.info = "failed to send twitter update from #{self.twitter_id}: #{e.message}"
end

0 comments on commit 73f4339

Please sign in to comment.