Skip to content

Commit

Permalink
Swtich from removed Config to RbConfig
Browse files Browse the repository at this point in the history
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 ricardochimal#143.
  • Loading branch information
eric1234 authored and tomtt committed Jun 4, 2015
1 parent abf0c87 commit 2ef9632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/taps/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ef9632

Please sign in to comment.