Iwork_autosave is a project mainly written in Ruby, it's free.
Ruby script to auto-save in the three Apple iWork programs, as well as auto commit to a Git repository.