2012-04-30 15:32:07 -05:00
|
|
|
require 'vendor/multi_json'
|
|
|
|
|
2013-05-14 10:42:46 -04:00
|
|
|
GitHub.open "https://api.github.com/legacy/repos/search/homebrew" do |f|
|
2013-05-18 08:34:28 -04:00
|
|
|
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
|
2012-04-30 15:32:07 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|