Upload
marcinbunsch
View
482
Download
0
Embed Size (px)
DESCRIPTION
Presentation of the Broadcast gem that I failed to present because there was not enough time at the lighting talks. Enjoy! If you have questions, hit me up on Twitter - @marcinbunsch
Citation preview
PUBLISHINGWITH BROADCAST
Marcin Bunsch@marcinbunsch
Sunday, May 29, 2011
Sunday, May 29, 2011
Your appYou
Sunday, May 29, 2011
Your appYou
Sunday, May 29, 2011
Example:
jabber
Sunday, May 29, 2011
Broadcast.setup do |config| config.jabber { |jabber| jabber.username = '[email protected]' jabber.password = 'mypass' jabber.recipients = '[email protected]' }end
Sunday, May 29, 2011
class Signup < Broadcast::Message medium :jabber
def body str = "A new signup has occurred! " str += "We now have #{User.count} users!" endend
Sunday, May 29, 2011
Signup.new.publish
Sunday, May 29, 2011
Signup.new.delay.publish
Sunday, May 29, 2011
class Signup < Broadcast::Message medium :jabber medium :yammer medium :email medium :campfire
def body str = "A new signup has occurred! " str += "We now have #{User.count} users!" endend
Sunday, May 29, 2011
Currently Supported:
JabberEmail
TwitterYammer
LogCampfire
IRC
Sunday, May 29, 2011
github.com/futuresimple/broadcast
Fork it!
Sunday, May 29, 2011