brew/Library/Contributions/cmd/brew-ls-taps.rb
Daniel Lee Harple 471502bc06 Remove unnecessary rescue-all exception handling
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-22 19:53:05 -05:00

14 lines
349 B
Ruby
Executable File

require 'vendor/multi_json'
GitHub.open "https://api.github.com/legacy/repos/search/homebrew" do |f|
MultiJson.decode(f.read)["repositories"].each do |repo|
if repo['name'] =~ /^homebrew-(\S+)$/
puts tap = if repo['username'] == "Homebrew"
"homebrew/#{$1}"
else
repo['username']+"/"+$1
end
end
end
end