diff options
| author | Jack Nagel | 2013-12-09 13:44:45 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-09 13:44:45 -0600 |
| commit | 109e9dc58bb71d9b17c10c28d434556b56c08b1c (patch) | |
| tree | 1769c553361f70c02bda0de66599b66d19e8b2ff /Library | |
| parent | 08ff164edd5fa33f8cfa93a83dbc5bdad9975275 (diff) | |
| download | brew-109e9dc58bb71d9b17c10c28d434556b56c08b1c.tar.bz2 | |
Silence some Ruby 2.1 warnings
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 6e0ee2ac3..c180db643 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -98,7 +98,7 @@ class Step @status = success ? :passed : :failed puts_result - return unless File.exists?(log_file_path) + return unless File.exist?(log_file_path) @output = IO.read(log_file_path) if has_output? and (not success or @puts_output_on_success) puts @output diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 569f44d73..15922275d 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -521,7 +521,7 @@ def check_user_path_3 end def check_user_curlrc - if %w[CURL_HOME HOME].any?{|key| ENV[key] and File.exists? "#{ENV[key]}/.curlrc" } then <<-EOS.undent + if %w[CURL_HOME HOME].any?{|key| ENV[key] and File.exist? "#{ENV[key]}/.curlrc" } then <<-EOS.undent You have a curlrc file If you have trouble downloading packages with Homebrew, then maybe this is the problem? If the following command doesn't work, then try removing |
