Difflib.rb is a project mainly written in ..., it's free.
Port of Python's difflib library to Ruby