Permalink
Browse files

Config is deprecated on 1.8.8 and 1.9.3 use RbConfig

  • Loading branch information...
spastorino authored and josevalim committed Aug 20, 2010
1 parent 14bcf81 commit 72b2d7d1ae4057f1750d7073eb893ff6b41d3f97
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/thor/shell.rb
  2. +2 −2 lib/thor/util.rb
View
@@ -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
@@ -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, '"\&"')

0 comments on commit 72b2d7d

Please sign in to comment.