Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change Config that is deprecated on 1.8.8 and 1.9.3 to RbConfig on thor

  • Loading branch information...
commit 336638c6cccb0423440d014240b96e001adf9a93 1 parent 3d14678
@spastorino spastorino authored
View
2  lib/bundler/vendor/thor/shell.rb
@@ -8,7 +8,7 @@ module Base
def self.shell
@shell ||= if ENV['THOR_SHELL'] && ENV['THOR_SHELL'].size > 0
Thor::Shell.const_get(ENV['THOR_SHELL'])
- elsif Config::CONFIG['host_os'] =~ /mswin|mingw/
+ elsif RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
Thor::Shell::Basic
else
Thor::Shell::Color
View
4 lib/bundler/vendor/thor/util.rb
@@ -216,8 +216,8 @@ def self.globs_for(path)
#
def self.ruby_command
@ruby_command ||= begin
- ruby = File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name'])
- ruby << Config::CONFIG['EXEEXT']
+ ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
+ ruby << RbConfig::CONFIG['EXEEXT']
# escape string in case path to ruby executable contain spaces.
ruby.sub!(/.*\s.*/m, '"\&"')
Please sign in to comment.
Something went wrong with that request. Please try again.