Well, I just started using a very cool (albiet non ruby) wiki/blogging service called Infogami. The not so cool thing about it is that as far as I could tell, it only had Atom feeds. Since some of the syndication stuff I use is only compatible with RSS, this was almost a show stopper. Until I found out about FeedTools, of course.

The script below is now tied to a cronjob which runs every 20 minutes converting my atom feeds into rss feeds and mirroring them on my own host.

#!/usr/bin/env ruby
%w[rubygems feed_tools fileutils date].each { |l| require l }
URL = 'http://ruport.infogami.com/blog/atom.xml'
File.open("index.rss","w") do |f|
  f.puts FeedTools::Feed.open(URL).build_xml("rss")
end
`scp ~/index.rss deleted@stonecode.org:~/reporting.stonecode.org/blog/`
FileUtils.rm('index.rss')
puts "feed synced at #{Time.now}"

Just another example about how Ruby makes life easier all over the place :)