No commit activity in last 3 years
No release in over 3 years
Ruby / Asynchronous PubSubHubbub Client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Ruby / Asynchronous PubSubHubbub Client¶ ↑

EventMachine based / asynchronous PubSubHubbub client. Supports posting single or multiple URLs.

Full Spec: code.google.com/p/pubsubhubbub

HTTP PubSub: Webhooks & PubSubHubbub: www.igvita.com/2009/06/29/http-pubsub-webhooks-pubsubhubbub

Simple client example¶ ↑

EventMachine.run {
  pub = EventMachine::PubSubHubbub.new('http://pubsubhubbub.appspot.com/publish').publish "http://www.test.com/"

  pub.callback { puts "Successfully notified hub." }
  pub.errback  { puts "Uh oh, something broke: #{pub.response}" }
}

Posting multiple URL’s¶ ↑

EventMachine.run {
  feeds = ["http://www.test.com", "http://www.test.com/2"]
  pub = EventMachine::PubSubHubbub.new('http://pubsubhubbub.appspot.com/publish').publish feeds

  pub.callback { puts "Successfully notified hub." }
  pub.errback  { puts "Uh oh, something broke: #{pub.response}" }
}