Don't check issues on Ruby 1.8.6

The system certs are too old to be able to read from Github, so
don't try to use the Github API on 1.8.6 either.
This commit is contained in:
Misty De Meo 2014-03-17 11:52:11 -07:00
parent d3c8e2f9cb
commit ab4f9e57ae

View File

@ -219,7 +219,7 @@ class BuildError < Homebrew::InstallationError
end end
end end
puts puts
unless RUBY_VERSION < "1.8.6" || issues.empty? unless RUBY_VERSION < "1.8.7" || issues.empty?
puts "These open issues may also help:" puts "These open issues may also help:"
puts issues.map{ |i| "#{i['title']} (#{i['html_url']})" }.join("\n") puts issues.map{ |i| "#{i['title']} (#{i['html_url']})" }.join("\n")
end end