Skip to content
This repository has been archived by the owner on Dec 2, 2018. It is now read-only.

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 committed May 28, 2015
1 parent 93bd272 commit 2e4a454
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 2e4a454

Please sign in to comment.