Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

disable_stdout didn't work with mingw setup #26

Merged
merged 1 commit into from

2 participants

@mrcktz

small change, but directing STDOUT to /dev/null on windows made it fail,
so i included a check for mingw.

@sandipransing sandipransing merged commit 9d44803 into preston:master
@sandipransing
Collaborator

@mrcktz merged into master, Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 31, 2012
  1. @mrcktz
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/railroady/app_diagram.rb
View
2  lib/railroady/app_diagram.rb
@@ -66,7 +66,7 @@ def load_environment
# Prevents Rails application from writing to STDOUT
def disable_stdout
@old_stdout = STDOUT.dup
- STDOUT.reopen(::RUBY_PLATFORM =~ /mswin/ ? "NUL" : "/dev/null")
+ STDOUT.reopen(::RUBY_PLATFORM.downcase =~ /(mswin|mingw)/ ? "NUL" : "/dev/null")
end
# Restore STDOUT
Something went wrong with that request. Please try again.