File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- require_relative "deprecate"
4-
53##
64# This module contains various utility methods as module methods.
75
@@ -56,26 +54,6 @@ def self.popen(*command)
5654 IO . popen command , &:read
5755 end
5856
59- ##
60- # Invokes system, but silences all output.
61-
62- def self . silent_system ( *command )
63- opt = { out : IO ::NULL , err : [ :child , :out ] }
64- if Hash === command . last
65- opt . update ( command . last )
66- cmds = command [ 0 ...-1 ]
67- else
68- cmds = command . dup
69- end
70- system ( *( cmds << opt ) )
71- end
72-
73- class << self
74- extend Gem ::Deprecate
75-
76- rubygems_deprecate :silent_system
77- end
78-
7957 ##
8058 # Enumerates the parents of +directory+.
8159
Original file line number Diff line number Diff line change @@ -13,17 +13,6 @@ def test_class_popen
1313 end
1414 end
1515
16- def test_silent_system
17- pend if Gem . java_platform?
18- Gem ::Deprecate . skip_during do
19- out , err = capture_output do
20- Gem ::Util . silent_system ( *ruby_with_rubygems_in_load_path , "-e" , 'puts "hello"; warn "hello"' )
21- end
22- assert_empty out
23- assert_empty err
24- end
25- end
26-
2716 def test_traverse_parents
2817 FileUtils . mkdir_p "a/b/c"
2918
You can’t perform that action at this time.
0 commit comments