add URLs to brew info

This commit is contained in:
Adam Vandenberg 2010-08-07 16:32:30 -07:00
parent c5a1171620
commit 1c3f0e43de

View File

@ -223,7 +223,7 @@ begin
else
puts `ls #{HOMEBREW_CELLAR} | wc -l`.strip+" kegs, "+HOMEBREW_CELLAR.abv
end
elsif ARGV[0][0..6] == 'http://'
elsif ARGV[0][0..6] == 'http://' or ARGV[0][0..7] == 'https://' or ARGV[0][0..5] == 'ftp://'
path = Pathname.new(ARGV.shift)
/(.*?)[-_.]?#{path.version}/.match path.basename
unless $1.to_s.empty?