Permalink
Browse files

adding docs

  • Loading branch information...
igrigorik committed Jun 28, 2009
1 parent 7a11532 commit c3a7bb92074cbc78bb9f8731af73ce3556b0c7cc
Showing with 19 additions and 2 deletions.
  1. +14 −0 README.rdoc
  2. +5 −2 lib/pubsubhubbub/client.rb
  3. 0 pubsubhubbub.gemspec
View
@@ -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}" }
+ }
@@ -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
View
No changes.

0 comments on commit c3a7bb9

Please sign in to comment.