diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-12 11:37:38 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-15 21:20:37 +0900 |
commit | 2b4abcff90a3c4c4d07e0929e1f99afbfeb57a4e (patch) | |
tree | b63dfe2f7ee6ad27159b607a127f844d9900986f /lib/rubygems/util.rb | |
parent | afce7eb39ec58f9ec65b3cf53059a4bc3bd58cbd (diff) | |
download | ruby-2b4abcff90a3c4c4d07e0929e1f99afbfeb57a4e.tar.gz |
Deprecate `Gem::Util.silent_system`
There's better tools for this job.
Diffstat (limited to 'lib/rubygems/util.rb')
-rw-r--r-- | lib/rubygems/util.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/rubygems/util.rb b/lib/rubygems/util.rb index dcd7fc2b47..814a4075fd 100644 --- a/lib/rubygems/util.rb +++ b/lib/rubygems/util.rb @@ -1,8 +1,11 @@ # frozen_string_literal: true +require 'rubygems/deprecate' + ## # This module contains various utility methods as module methods. module Gem::Util + ## # Zlib::GzipReader wrapper that unzips +data+. @@ -67,6 +70,14 @@ module Gem::Util system(*(cmds << opt)) end + class << self + + extend Gem::Deprecate + + rubygems_deprecate :silent_system + + end + ## # Enumerates the parents of +directory+. |