aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-03-27 04:15:41 -0700
committerwycats <wycats@gmail.com>2010-03-27 04:15:41 -0700
commitbc4cdae3d9b8667a24b24ad4bc17ee623e84feb9 (patch)
tree731a1aa4532a48c94491896b415751b157d1cf34 /activesupport/lib/active_support
parentc428fbdb1d4773b177247e0648c933ad9cc92a44 (diff)
downloadrails-bc4cdae3d9b8667a24b24ad4bc17ee623e84feb9.tar.gz
rails-bc4cdae3d9b8667a24b24ad4bc17ee623e84feb9.tar.bz2
rails-bc4cdae3d9b8667a24b24ad4bc17ee623e84feb9.zip
Don't write to /dev/null on mingw. [#3921 state:resolved] (ht: Patrick Daryll Glandien)
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/core_ext/kernel/reporting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/kernel/reporting.rb b/activesupport/lib/active_support/core_ext/kernel/reporting.rb
index d9b84e6543..ac35db6ab6 100644
--- a/activesupport/lib/active_support/core_ext/kernel/reporting.rb
+++ b/activesupport/lib/active_support/core_ext/kernel/reporting.rb
@@ -37,7 +37,7 @@ module Kernel
# puts 'But this will'
def silence_stream(stream)
old_stream = stream.dup
- stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
+ stream.reopen(RUBY_PLATFORM =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
stream.sync = true
yield
ensure