Skip to content
Browse files

Making appropriate medium classes inherit after Broadcast::Medium not…

… Broadcast::Medium::Oauth. It was overlooked ans obviously worked, but is not consistent nor clean.
  • Loading branch information...
1 parent c1a36f6 commit 877f7bbdc258d7ceedec975bfaf4ccd911271221 Marcin Bunsch committed Jun 11, 2011
View
2 lib/broadcast/media/campfire.rb
@@ -1,6 +1,6 @@
require 'broach'
-class Broadcast::Medium::Campfire < Broadcast::Medium::Oauth
+class Broadcast::Medium::Campfire < Broadcast::Medium
def publish(message)
Broach.settings = { 'account' => options.subdomain, 'token' => options.token, 'use_ssl' => true }
View
4 lib/broadcast/media/email.rb
@@ -1,6 +1,6 @@
require 'mail'
-class Broadcast::Medium::Email < Broadcast::Medium::Oauth
+class Broadcast::Medium::Email < Broadcast::Medium
def publish(message)
recipients = options.recipients.is_a?(Array) ? options.recipients : [options.recipients]
@@ -18,5 +18,5 @@ def publish(message)
mail.deliver
end
end
-
+
end
View
2 lib/broadcast/media/facebook.rb
@@ -1,6 +1,6 @@
require 'koala'
-class Broadcast::Medium::Facebook < Broadcast::Medium::Oauth
+class Broadcast::Medium::Facebook < Broadcast::Medium
def publish(message)
# We do not rescue any Koala exceptions to make them crash the sendout
View
2 lib/broadcast/media/irc.rb
@@ -1,6 +1,6 @@
require 'shout-bot'
-class Broadcast::Medium::Irc < Broadcast::Medium::Oauth
+class Broadcast::Medium::Irc < Broadcast::Medium
def publish(message)
uri = "irc://#{options.username}"
View
2 lib/broadcast/media/jabber.rb
@@ -1,6 +1,6 @@
require 'xmpp4r'
-class Broadcast::Medium::Jabber < Broadcast::Medium::Oauth
+class Broadcast::Medium::Jabber < Broadcast::Medium
class Client

0 comments on commit 877f7bb

Please sign in to comment.
Something went wrong with that request. Please try again.