Skip to content

Commit

Permalink
adding docs
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Jun 28, 2009
1 parent 7a11532 commit c3a7bb9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
14 changes: 14 additions & 0 deletions README.rdoc
@@ -0,0 +1,14 @@
= Ruby / Asynchronous PubSubHubBub Client

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

Full Spec: http://code.google.com/p/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}" }
}
7 changes: 5 additions & 2 deletions lib/pubsubhubbub/client.rb
@@ -1,5 +1,8 @@
# TODO: need header stuffs
# ....
# #--
# Copyright (C)2009 Ilya Grigorik
#
# You can redistribute this under the terms of the Ruby
# #--

module EventMachine
class PubSubHubBub
Expand Down
Empty file added pubsubhubbub.gemspec
Empty file.

0 comments on commit c3a7bb9

Please sign in to comment.