Description: Ruby 1.9.x deprecated Config in favour of RbConfig
 Check if it uses a new Ruby version and use RbConfig then, remain with Config
 otherwise.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
Bug-Debian: http://bugs.debian.org/676333
Last-Update: <2012-06-06>
---

--- whatweb-0.4.8~git20120606.orig/whatweb
+++ whatweb-0.4.8~git20120606/whatweb
@@ -832,7 +832,8 @@ rescue StandardError, GetoptLong::Error
 end
 
 # sanity check # Disable colours in Windows environments
-if Config::CONFIG['host_os'] =~ /mswin|mingw/
+require 'rbconfig'
+if Object.const_get(defined?(RbConfig) ? :RbConfig : :Config)::CONFIG['host_os'] =~ /mswin|mingw/
 	$use_colour = false
 end
 
