From bc4cdae3d9b8667a24b24ad4bc17ee623e84feb9 Mon Sep 17 00:00:00 2001 From: wycats Date: Sat, 27 Mar 2010 04:15:41 -0700 Subject: =?UTF-8?q?Don't=20write=20to=20/dev/null=20on=20mingw.=20[#3921?= =?UTF-8?q?=C2=A0state:resolved]=20(ht:=20Patrick=20Daryll=20Glandien)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- activesupport/lib/active_support/core_ext/kernel/reporting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/core_ext/kernel') 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 -- cgit v1.2.3