Giter Club home page Giter Club logo

superfeedr-blather's Introduction

superfeedr-blather

superfeedr-blather implements a Superfeedr 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 comes ready with a blather template.

You might want to compare Superfeedr’s own superfeedr-ruby which is based on a different XMPP lib, Skates.

Tips

Take a look in /examples for examples of handling notifications, (un)subscribing, and fetching the list of subscriptions.

When you’re playing around, subscribe to Superfeedr’s dummy.xml feed and use the button on www.superfeedr.com/users/kapoq/feeds/xmpp_console to generate a new notification on demand (“show console” displays the button).

Install

git clone git://github.com/kapoq/superfeedr-blather.git

Source and latest version

superfeedr-blather lives at github.com/kapoq/superfeedr-blather.

Stop by and say hi some time (contribs welcome).

Author

Dave Nolan / Kapoq Ltd / kapoq.com

TODO

  • apply patches upstream to blather

    • loading filename conflicts using bundler

    • multiple namespaces

  • improve type-casting

  • implement Superfeedr notifications extensions:

    • stripped

    • chunks (No mention in the Superfeedr schema docs but is used elsewhere)

superfeedr-blather's People

Contributors

textgoeshere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.