-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
74 lines (47 loc) · 2.14 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
= superfeedr-blather
superfeedr-blather implements a Superfeedr[http://superfeedr.com] PubSub XMPP client in Ruby using the Blather gem.
Starting up a connection and echoing new notifications is as easy as this:
setup YOUR_SUPERFEEDR_USERNAME, YOUR_SUPERFEEDR_PASSWORD
pubsub_event do |e|
e.items.each do |i|
puts "New post from #{i.entry.title}:"
puts i.entry.content
end
end
== About
You get some patches for Blather and some classes that wrap the stuff
you want from Superfeedr (entries, authors etc.).
Under-the-hood, Blather uses EventMachine and Nokogiri so it's fast
and convenient. If you want to daemonize your client, daemon-kit[https://github.com/kennethkalmer/daemon-kit/] comes
ready with a {blather template}[https://github.com/kennethkalmer/daemon-kit/blob/master/lib/daemon_kit/xmpp.rb].
You might want to compare Superfeedr's own
superfeedr-ruby[https://github.com/superfeedr/superfeedr-ruby] which
is based on a different XMPP lib, Skates.
== Tips
Take a look in <tt>/examples</tt> for examples of handling notifications,
(un)subscribing, and fetching the list of subscriptions.
When you're playing around, subscribe to Superfeedr's <tt>dummy.xml</tt> feed and use the button on
http://www.superfeedr.com/users/kapoq/feeds/xmpp_console to generate a
new notification on demand ("show console" displays the button).
== Install
Rubygems:
gem install superfeedr-blather
From source:
git clone git://github.com/kapoq/superfeedr-blather.git
== Source and latest version
superfeedr-blather lives at
https://github.com/kapoq/superfeedr-blather.
Stop by and say hi some time (contribs welcome).
== Author
Dave Nolan / Kapoq Ltd / kapoq.com[http://kapoq.com]
== TODO
* apply patches upstream to blather
* loading filename conflicts using bundler
* multiple namespaces
* append to existing handlers (e.g. DaemonKit::XMPP stomps over client#when_ready)
* improve type-casting
* implement superfeedr-specific handlers
* swap out default client so there's no attempt to load roster on connect
* implement Superfeedr notifications extensions:
* stripped
* chunks (No mention in the Superfeedr schema docs but is used elsewhere)