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
Pull request Compare This branch is 4 commits behind gaustin:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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"]