Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Superfeedr API library written on top of Blather

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 superfeedr-rb.gemspec
README.md

Superfeedr rb

A ruby library based on Blather for Superfeedr.

This library is very opinionated. In fact there's really only one method feed.

Install

Gem is hosted on Gemcutter

sudo gem install superfeedr-rb

Example

require 'rubygems'
require 'superfeedr-rb'
require 'pp'

Superfeedr::Client.connect('demo@superfeedr.com', '*********').do |client|
  client.feed('http://superfeedr.com/dummy.xml') do |status, entries|
    pp({
      :status => {
        :feed => status.feed,
        :code => status.code,
        :http => status.http,
        :next_fetch => status.next_fetch
      },
      :entries => entries.map { |entry| {
        :id => entry.id,
        :chunks => entry.chunks,
        :chunk => entry.chunk,
        :title => entry.title,
        :published => entry.published,
        :content => entry.content,
        :summary => entry.summary,
        :categories => entry.categories,
        :links => entry.links.map { |link| {
          :href => link.href,
          :rel => link.rel,
          :type => link.type,
          :title => link.title
        }},
        :authors => entry.authors.map { |author| {
          :name => author.name,
          :email => author.email,
          :uri => author.uri
        }}
      }}
    })
  end

  client.feed('http://github.com/superfeedr.atom') do |notification|
    pp notification
  end
end

Copyright

Copyright (c) 2009 Jeff Smick. See LICENSE for details.

Something went wrong with that request. Please try again.