Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix jruby warning when capture calls unlink on an open tempfile

Jruby cannot unlink a tempfile unless it is closed first.
  • Loading branch information...
commit ae50fd61c61b373dff0e58b826036c89441df059 1 parent fd20f2e
Alex Tambellini atambo authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  activesupport/lib/active_support/core_ext/kernel/reporting.rb
1  activesupport/lib/active_support/core_ext/kernel/reporting.rb
View
@@ -91,6 +91,7 @@ def capture(stream)
stream_io.rewind
return captured_stream.read
ensure
+ captured_stream.close
captured_stream.unlink
stream_io.reopen(origin_stream)
end
Please sign in to comment.
Something went wrong with that request. Please try again.