commit a9ee88a372ec6b670e495cda670a8d6f9dfac04b
parent 8eeffc4aaf932110e196667e303254fb0889b972
Author: Whyme Lyu <callme5long@gmail.com>
Date: Tue, 23 Apr 2013 00:09:02 +0800
s/Config/RbConfig for less warnings
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/sup b/bin/sup
@@ -119,7 +119,7 @@ end
require 'dl/import'
module LibC
extend DL.const_defined?(:Importer) ? DL::Importer : DL::Importable
- setlocale_lib = case Config::CONFIG['arch']
+ setlocale_lib = case RbConfig::CONFIG['arch']
when /darwin/; "libc.dylib"
when /cygwin/; "cygwin1.dll"
else; "libc.so.6"
@@ -134,7 +134,7 @@ module LibC
rescue RuntimeError => e
warn "cannot dlload setlocale(); ncurses wide character support probably broken."
warn "dlload error was #{e.class}: #{e.message}"
- if Config::CONFIG['arch'] =~ /bsd/
+ if RbConfig::CONFIG['arch'] =~ /bsd/
warn "BSD variant detected. You may have to install a compat6x package to acquire libc."
end
end
diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
@@ -146,7 +146,7 @@ EOS
def initial_state; :open end
def viewable?; @lines.nil? end
def view_default! path
- case Config::CONFIG['arch']
+ case RbConfig::CONFIG['arch']
when /darwin/
cmd = "open '#{path}'"
else