just change
stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
into
stream.reopen('NUL:')
this because when you type in the console
ruby --version
gives
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
in the
C:\Ruby\lib\ruby\gems\1.8\gems\activesupport-2.3.5\lib\active_support\core_ext\kernel\reporting.rb
it checks
stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
so the i386-mingw32 does contains mswin so it always use '/dev/null' but
it should use 'NUL:' in windows to just change
stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
into
stream.reopen('NUL:')
and it will works
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.