title: Creating temp file in Ruby?
body: <p>I am using Ruby 1.8.7 (2010-12-23 patchlevel 330) [x86_64-linux].</p>
  
  <p>When trying to creating a temp file using the tempfile gem, it's getting stuck, and I can't exit from it:</p>
  
  <pre><code>1.8.7 :003 &gt; require 'rubygems'
  1.8.7 :004 &gt;  require 'tempfile'
  1.8.7 :005 &gt; tmp_file = Tempfile.new("new_file")
  </code></pre>
  
  <p>After the last line, it's stuck and not responsive.</p>
  
  <p>I think it works with newer Ruby versions, but does anyone know what can cause this issue? </p>