From 008f861be021955ab4b4a4e1c0611e645a3cb087 Mon Sep 17 00:00:00 2001 From: liguang Date: Fri, 17 Feb 2012 15:07:19 +0800 Subject: [PATCH] remove deprecated Config message --- Rakefile | 2 +- lib/watchr.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index f63062e..77e6c2f 100644 --- a/Rakefile +++ b/Rakefile @@ -4,7 +4,7 @@ end def ruby require 'rbconfig' - File.join([Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']]) << Config::CONFIG['EXEEXT'] + File.join([RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']]) << RbConfig::CONFIG['EXEEXT'] end # -------------------------------------------------- diff --git a/lib/watchr.rb b/lib/watchr.rb index 3d0b4f4..f7c5ad3 100644 --- a/lib/watchr.rb +++ b/lib/watchr.rb @@ -91,10 +91,10 @@ def debug(msg) # # @example # - # Config::CONFIG['host_os'] #=> 'linux-gnu' + # RbConfig::CONFIG['host_os'] #=> 'linux-gnu' # Watchr.handler #=> Watchr::EventHandler::Unix # - # Config::CONFIG['host_os'] #=> 'cygwin' + # RbConfig::CONFIG['host_os'] #=> 'cygwin' # Watchr.handler #=> Watchr::EventHandler::Portable # # ENV['HANDLER'] #=> 'unix' @@ -108,7 +108,7 @@ def debug(msg) # def handler @handler ||= - case ENV['HANDLER'] || Config::CONFIG['host_os'] + case ENV['HANDLER'] || RbConfig::CONFIG['host_os'] when /darwin|mach|osx|fsevents?/i if Watchr::HAVE_FSE Watchr::EventHandler::Darwin