Files
tigerbrew/Library/Contributions/cmd/brew-ls-taps.rb
T
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