Skip to content
Browse files

On ruby 1.8.7 a Tempfile can be unlinked only once

  • Loading branch information...
1 parent 8e46fc3 commit cf0f002c9ccefcb90a71c4adee14977b5f202851 @drbrain drbrain committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rubygems/ext/ext_conf_builder.rb
View
2 lib/rubygems/ext/ext_conf_builder.rb
@@ -55,7 +55,7 @@ def self.build(extension, directory, dest_path, results)
ENV["DESTDIR"] = destdir
end
end
- t.unlink if t
+ t.unlink if t and t.path
ensure
FileUtils.rm_rf tmp_dest if tmp_dest
end

0 comments on commit cf0f002

Please sign in to comment.
Something went wrong with that request. Please try again.