puppetlabs/puppet — pull request #927 by joshcooper (2012-07-13 07:18:18+00:00)
Title: (#14964) Unlink Tempfiles consistently across different ruby versions

Calling `Tempfile.close!` or `Tempfile.close(true)` instead of `Tempfile.close` followed by `Tempfile.unlink` has different semantics for ruby 1.8 and 1.9 in cases where unlinking the Tempfile raises `Errno::EACCES`. So use the latter to be consistent.