Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A revised and expanded feed detector based on code from Dominiek's post (http://dominiek.com/articles/2007/6/22/detecting-atom-rss-feeds-in-ruby) on detecting feeds.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
feed_detector.rb
feed_detector_test.rb

README

Modification of the feed detector done by http://dominiek.com/articles/2007/6/22/detecting-atom-rss-feeds-in-ruby.

Basically it returns all the feeds that it find not just one...

Usage:

FeedDetector.fetch_feed_urls('http://www.rubycorner.com')

returns:

["http://www.rubycorner.com/feeds/updated/atom10", "http://www.rubycorner.com/feeds/updated/rss20"]

TODO:
* Decouple parsing and retrieving data.
* Tests should not depend on data retrieved from the web taking a particular form.
Something went wrong with that request. Please try again.