CraigWilliams/Tobacco — pull request #2 by CraigWilliams (2012-10-07 21:23:29+00:00)
Title: Refactor

Extract classes for:

1. ContentReader
2. ContentValidator
3. Callback
4. Backup

Changes:

1. All files are backed up to a temp file and restored if an error occurs during writing.
2. The :before_write modification method is now called after reading but before validation.