University is a project mainly written in Ruby, it's free.
University projects
Distance Vector implementation