This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.rdoc | Mon Jun 29 06:02:45 -0700 2009 | |
| |
Rakefile | Mon Oct 26 12:35:58 -0700 2009 | |
| |
VERSION | Mon Oct 26 12:33:39 -0700 2009 | |
| |
lib/ | Sun Jul 26 11:49:38 -0700 2009 | |
| |
test/ | Sun Jul 26 11:49:38 -0700 2009 |
README.rdoc
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}" }
}







