mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
de01011da3
commit
890a6b432c
3 changed files with 7 additions and 14 deletions
|
|
@ -1300,6 +1300,13 @@ Also, a list:
|
|||
Gem.instance_variable_set :@ruby, orig_ruby
|
||||
end
|
||||
|
||||
def silence_warnings
|
||||
old_verbose, $VERBOSE = $VERBOSE, false
|
||||
yield
|
||||
ensure
|
||||
$VERBOSE = old_verbose
|
||||
end
|
||||
|
||||
class << self
|
||||
# :nodoc:
|
||||
##
|
||||
|
|
|
|||
|
|
@ -3745,11 +3745,4 @@ end
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def silence_warnings
|
||||
old_verbose, $VERBOSE = $VERBOSE, false
|
||||
yield
|
||||
ensure
|
||||
$VERBOSE = old_verbose
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -700,13 +700,6 @@ class TestGemRequire < Gem::TestCase
|
|||
!ENV["GEM_COMMAND"].nil?
|
||||
end
|
||||
|
||||
def silence_warnings
|
||||
old_verbose, $VERBOSE = $VERBOSE, false
|
||||
yield
|
||||
ensure
|
||||
$VERBOSE = old_verbose
|
||||
end
|
||||
|
||||
def util_install_extension_file(name)
|
||||
spec = quick_gem name
|
||||
util_build_gem spec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue