Permalink
Browse files

Fix for plugin not getting installed on Windows environment [#4320 st…

…ate:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent a84e9b4 commit c69dc1afaa06c956624e20528adb2540fda0eb18 @anildigital anildigital committed with josevalim Apr 8, 2010
@@ -35,7 +35,7 @@ def silence_stderr #:nodoc:
# 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
@@ -18,7 +18,7 @@
opts.on("-h", "--help",
"Show this help message.") { $stderr.puts opts; exit }
- if RUBY_PLATFORM !~ /mswin/
+ if RUBY_PLATFORM !~ /(:?mswin|mingw)/
opts.separator ""
opts.separator "You can also use runner as a shebang line for your scripts like this:"
opts.separator "-------------------------------------------------------------"

0 comments on commit c69dc1a

Please sign in to comment.