buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1388925 - /buildr/trunk/lib/buildr/core/application.rb
Date Sat, 22 Sep 2012 23:35:48 GMT
Author: donaldp
Date: Sat Sep 22 23:35:48 2012
New Revision: 1388925

URL: http://svn.apache.org/viewvc?rev=1388925&view=rev
Log:
Use RbConfig instead of obsolete and deprecated Config.

Modified:
    buildr/trunk/lib/buildr/core/application.rb

Modified: buildr/trunk/lib/buildr/core/application.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/application.rb?rev=1388925&r1=1388924&r2=1388925&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/application.rb (original)
+++ buildr/trunk/lib/buildr/core/application.rb Sat Sep 22 23:35:48 2012
@@ -593,7 +593,7 @@ end
 HighLine.use_color = false
 if $stdout.isatty
   begin
-    require 'Win32/Console/ANSI' if Config::CONFIG['host_os'] =~ /mswin|win32|dos|cygwin|mingw/i
+    require 'Win32/Console/ANSI' if RbConfig::CONFIG['host_os'] =~ /mswin|win32|dos|cygwin|mingw/i
     HighLine.use_color = true
   rescue LoadError
   end



Mime
View raw message