From 2e4a454b6b93db1a99c511aa875dad6b8f573291 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Thu, 28 May 2015 08:44:53 -0400 Subject: [PATCH] Swtich from removed `Config` to `RbConfig` If you wanted to support older versions of Ruby you could test if `RbConfig` was defined and use `Config` if it was not. But `Config` has been deprecated for a while so not sure if it's really necessary to support it anymore so going with the simpler patch. This fixes #143. --- lib/taps/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/taps/utils.rb b/lib/taps/utils.rb index a70962a..96aa707 100644 --- a/lib/taps/utils.rb +++ b/lib/taps/utils.rb @@ -14,7 +14,7 @@ module Utils def windows? return @windows if defined?(@windows) require 'rbconfig' - @windows = !!(::Config::CONFIG['host_os'] =~ /mswin|mingw/) + @windows = !!(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/) end def bin(cmd)