fix wrong removal of files which expired after the gone period
authorLunar <lunar@anargeek.net>
Fri, 31 Aug 2012 11:03:22 +0000 (13:03 +0200)
committerLunar <lunar@anargeek.net>
Thu, 14 Mar 2013 09:12:10 +0000 (10:12 +0100)
commit5ec15096bfcf56db789041f470dd6902a3043886
tree9ce3c4fa9a9c34ac0771a06d3f6c4ee309912656
parent4bacd92f65d0c1b30f074250dd1ff140bf459a39
fix wrong removal of files which expired after the gone period

When expiration period is longer than the gone period, the files are kept
unmodified longer than the actual gone period. Previously, this would
get them erased, a serious bug.

Now we properly skip files that have not yet been erased (and truncated to zero
size) when looking for files that have been kept longer than the gone period.
lib/coquelicot/depot.rb
spec/coquelicot/depot_spec.rb