lib/railroady/app_diagram.rb in railroady-1.0.7 vs lib/railroady/app_diagram.rb in railroady-1.0.8
- old
+ new
@@ -64,10 +64,11 @@
end
# Prevents Rails application from writing to STDOUT
def disable_stdout
@old_stdout = STDOUT.dup
- STDOUT.reopen(::RUBY_PLATFORM =~ /mswin/ ? "NUL" : "/dev/null")
+ #via Tomas Matousek, http://www.ruby-forum.com/topic/205887
+ STDOUT.reopen(::RUBY_PLATFORM =~ /djgpp|(cyg|ms|bcc)win|mingw/? "NUL" : "/dev/null")
end
# Restore STDOUT
def enable_stdout
STDOUT.reopen(@old_stdout)