This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install cardmagic-simple-rss
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Jul 15 15:34:48 -0700 2008 | [cardmagic] |
| |
LICENSE | Thu Feb 02 08:29:17 -0800 2006 | [cardmagic] |
| |
README | Thu Feb 02 08:29:17 -0800 2006 | [cardmagic] |
| |
Rakefile | Thu Feb 02 08:29:17 -0800 2006 | [cardmagic] |
| |
install.rb | Thu Feb 02 08:29:17 -0800 2006 | [cardmagic] |
| |
lib/ | Fri Mar 24 00:37:31 -0800 2006 | [cardmagic] |
| |
simple-rss.gemspec | Tue Jul 15 15:39:13 -0700 2008 | [cardmagic] |
| |
test/ | Thu Feb 02 08:29:17 -0800 2006 | [cardmagic] |
README
== Welcome to Simple RSS Simple RSS is a simple, flexible, extensible, and liberal RSS and Atom reader for Ruby. It is designed to be backwards compatible with the standard RSS parser, but will never do RSS generation. == Download * gem install simple-rss * http://rubyforge.org/projects/simple-rss * svn co http://rufy.com/svn/simple-rss/trunk === Usage The API is similar to Ruby's standard RSS parser: require 'rubygems' require 'simple-rss' require 'open-uri' rss = SimpleRSS.parse open('http://slashdot.org/index.rdf') rss.channel.title # => "Slashdot" rss.channel.link # => "http://slashdot.org/" rss.items.first.link # => "http://books.slashdot.org/article.pl?sid=05/08/29/1319236&from=rss" But since the parser can read Atom feeds as easily as RSS feeds, there are optional aliases that allow more atom like reading: rss.feed.title # => "Slashdot" rss.feed.link # => "http://slashdot.org/" rss.entries.first.link # => "http://books.slashdot.org/article.pl?sid=05/08/29/1319236&from=rss" The parser does not care about the correctness of the XML as it does not use an XML library to read the information. Thus it is flexible and allows for easy extending via: SimpleRSS.feed_tags << :some_new_tag == Authors * Lucas Carlson (mailto:lucas@rufy.com) Inspired by Blagg (http://www.raelity.org/lang/perl/blagg) from Rael Dornfest. This library is released under the terms of the GNU LGPL.




