Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igrigorik/pubsubhubbub
Asynchronous PubSubHubbub Ruby Client
https://github.com/igrigorik/pubsubhubbub
Last synced: 4 days ago
JSON representation
Asynchronous PubSubHubbub Ruby Client
- Host: GitHub
- URL: https://github.com/igrigorik/pubsubhubbub
- Owner: igrigorik
- Created: 2009-06-29T01:45:21.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-03-10T03:40:50.000Z (almost 14 years ago)
- Last Synced: 2024-04-14T23:15:18.911Z (10 months ago)
- Language: Ruby
- Homepage:
- Size: 205 KB
- Stars: 175
- Watchers: 6
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
= Ruby / Asynchronous PubSubHubbub Client
EventMachine based / asynchronous PubSubHubbub client. Supports posting single or multiple URLs.
Full Spec: http://code.google.com/p/pubsubhubbub
HTTP PubSub: Webhooks & PubSubHubbub: http://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 feedspub.callback { puts "Successfully notified hub." }
pub.errback { puts "Uh oh, something broke: #{pub.response}" }
}