* gem_prelude.rb: disables debug and verbose flags to suppress failure

messages.  interpolation does not occur inside single quotes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-10-26 10:18:39 +00:00
Родитель b98a6b7ac0
Коммит 945faf92e6
2 изменённых файлов: 22 добавлений и 13 удалений

Просмотреть файл

@ -1,4 +1,4 @@
Sun Oct 26 18:42:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
Sun Oct 26 19:18:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (blocking_region_{begin,end}): declared as inline.
@ -11,6 +11,9 @@ Sun Oct 26 18:42:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/io/wait/{extconf.rb,wait.c}: needs sys/ioctl.h for fcntl on
cygwin.
* gem_prelude.rb: disables debug and verbose flags to suppress failure
messages. interpolation does not occur inside single quotes.
* test/ruby/envutil.rb (assert_in_out_err): disables builtin rubygems
to get rid of the interference.

Просмотреть файл

@ -80,18 +80,24 @@ if defined?(Gem) then
GEM_PRELUDE_METHODS = Gem.methods(false)
require 'rubygems/defaults'
begin
require 'rubygems/defaults/operating_system'
rescue LoadError
end
verbose, debug = $VERBOSE, $DEBUG
$VERBOSE = $DEBUG = nil
require 'rubygems/defaults'
if defined?(RUBY_ENGINE) then
begin
require 'rubygems/defaults/#{RUBY_ENGINE}'
require 'rubygems/defaults/operating_system'
rescue LoadError
end
if defined?(RUBY_ENGINE) then
begin
require "rubygems/defaults/#{RUBY_ENGINE}"
rescue LoadError
end
end
ensure
$VERBOSE, $DEBUG = verbose, debug
end
module QuickLoader
@ -183,12 +189,12 @@ if defined?(Gem) then
require_paths = []
GemPaths.values.each do |path|
if File.exist?(File.join(path, ".require_paths"))
require_paths.concat(File.read(File.join(path, ".require_paths")).split.map {|require_path| File.join(path, require_path)})
GemPaths.each_value do |path|
if File.exist?(file = File.join(path, ".require_paths"))
require_paths.concat(File.read(file).split.map {|require_path| File.join(path, require_path)})
else
require_paths << File.join(path, "bin") if File.exist?(File.join(path, "bin"))
require_paths << File.join(path, "lib") if File.exist?(File.join(path, "lib"))
require_paths << file if File.exist?(file = File.join(path, "bin"))
require_paths << file if File.exist?(file = File.join(path, "lib"))
end
end