19 lines
		
	
	
		
			406 B
		
	
	
	
		
			Ruby
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			406 B
		
	
	
	
		
			Ruby
		
	
	
		
			Executable File
		
	
	
	
	
| require 'open-uri'
 | |
| require 'vendor/multi_json'
 | |
| 
 | |
| begin
 | |
|   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
 | |
| rescue
 | |
|   nil
 | |
| end
 | 
