Permalink
Browse files

Better rake support for windows

  • Loading branch information...
lsegal committed May 27, 2010
1 parent 0194a82 commit acfba728837b86771e7685275b361a20c7023ff4
Showing with 2 additions and 1 deletion.
  1. +2 −1 Rakefile
View
@@ -1,6 +1,7 @@
require File.dirname(__FILE__) + '/lib/yard'
+require 'rbconfig'
-WINDOWS = (RUBY_PLATFORM =~ /win32|cygwin/ ? true : false) rescue false
+WINDOWS = (Config::CONFIG['host_os'] =~ /mingw|win32|cygwin/ ? true : false) rescue false
SUDO = WINDOWS ? '' : 'sudo'
task :default => :specs

0 comments on commit acfba72

Please sign in to comment.