Isn't it possible with some ruby magic to have the original file and keep the changes the we need in a separate file?