Skip to content
Browse files

Config is deprecated on 1.8.8 and 1.9.3 use RbConfig

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

0 comments on commit df9d22b

Please sign in to comment.
Something went wrong with that request. Please try again.