Ignore ~ files
Port to ruby 1.9, removing rcov and fixing syntax