Use Tempfile.open to take a block

- Tempfile.new should either take a block or raise if it gets one,
  silently ignoring the block is poor form.