aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Tambellini <atambellini@gmail.com>2013-08-02 18:02:38 -0400
committerAlex Tambellini <atambellini@gmail.com>2013-08-02 18:02:38 -0400
commitae50fd61c61b373dff0e58b826036c89441df059 (patch)
treeda32a934dc206dd5512f94f5c6e3b15688786f5c
parentfd20f2e3c056cbac64690b2c0a33dac90c3aed3f (diff)
downloadrails-ae50fd61c61b373dff0e58b826036c89441df059.tar.gz
rails-ae50fd61c61b373dff0e58b826036c89441df059.tar.bz2
rails-ae50fd61c61b373dff0e58b826036c89441df059.zip
Fix jruby warning when capture calls unlink on an open tempfile
Jruby cannot unlink a tempfile unless it is closed first.
-rw-r--r--activesupport/lib/active_support/core_ext/kernel/reporting.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/reporting.rb b/activesupport/lib/active_support/core_ext/kernel/reporting.rb
index 79d3303b41..36ab836457 100644
--- a/activesupport/lib/active_support/core_ext/kernel/reporting.rb
+++ b/activesupport/lib/active_support/core_ext/kernel/reporting.rb
@@ -91,6 +91,7 @@ module Kernel
stream_io.rewind
return captured_stream.read
ensure
+ captured_stream.close
captured_stream.unlink
stream_io.reopen(origin_stream)
end