Special case "Homebrew" in brew-search

Again, "Homebrew" is changed to "homebrew" before rendering to the user.
This commit is contained in:
Max Howell 2012-03-18 01:51:36 +00:00
parent 3bfea440cb
commit aeb9440b90

View File

@ -49,6 +49,7 @@ module Homebrew extend self
results = []
open "http://github.com/api/v2/yaml/blob/all/#{user}/homebrew-#{repo}/master" do |f|
user.downcase! if user == "Homebrew" # special handling for the Homebrew organization
YAML::load(f.read)["blobs"].each do |file, _|
name = File.basename(file, '.rb')
if file =~ /\.rb$/ and name =~ rx