diff options
| author | Mike McQuaid | 2016-08-17 11:07:17 +0100 |
|---|---|---|
| committer | GitHub | 2016-08-17 11:07:17 +0100 |
| commit | cf71e30180d44219836ef129d5e5f00325210dfb (patch) | |
| tree | 220d3832242f35bb9944562b020261d2f4314695 /Library/Homebrew/utils | |
| parent | 5bbc3c21f2235c37be2c01b6d133abcbe2070fb3 (diff) | |
| parent | ed5e2ea3003acc858e0886cb1c4a944f44ba598e (diff) | |
| download | brew-cf71e30180d44219836ef129d5e5f00325210dfb.tar.bz2 | |
Merge pull request #724 from MikeMcQuaid/assume-ruby-two
Assume Ruby 2
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/curl.rb | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index db3534542..68474c976 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -21,14 +21,8 @@ end def curl_output(*args) curl_args = curl_args(args) - curl_args -= ["--fail"] - if RUBY_TWO - curl_args -= ["--silent"] - Open3.popen3(*curl_args) do |_, stdout, stderr, wait_thread| - [stdout.read, stderr.read, wait_thread.value] - end - else - output = Utils.popen_read_text(*curl_args) - [output, nil, $?] + curl_args -= ["--fail", "--silent"] + Open3.popen3(*curl_args) do |_, stdout, stderr, wait_thread| + [stdout.read, stderr.read, wait_thread.value] end end |
