Locale/localeapp — pull request #13 by rmehner (2011-12-09 17:51:27+00:00)
Title: Fix a problem when the log file exists but is empty

This fixes a problem with an empty log file that leads to all kind of exceptions as the result of YAML.load_file will be false, but the code needs to operate on a hash.

We ran into this problem when a wild logrotate script rotated our log file and replaced it with an empty one during the rotation.

I think this should be handled within the localeapp gem (the code change itself is very small), so I made this small patch.