diff options
| author | Jack Nagel | 2013-06-22 16:51:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-22 21:34:02 -0500 |
| commit | 083b3c84d08571dda76e4d9ec553492ca60b8db3 (patch) | |
| tree | 3f6b9dd8f3d128116a503a42e220ab664d39911c /Library/Contributions/cmd/brew-ls-taps.rb | |
| parent | c4272a25cc1e8cd85acadb52db551cad2a5824cb (diff) | |
| download | brew-083b3c84d08571dda76e4d9ec553492ca60b8db3.tar.bz2 | |
Add Utils::JSON to wrap the JSON implementation
Diffstat (limited to 'Library/Contributions/cmd/brew-ls-taps.rb')
| -rwxr-xr-x | Library/Contributions/cmd/brew-ls-taps.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-ls-taps.rb b/Library/Contributions/cmd/brew-ls-taps.rb index 98c14dccf..40cf0cafe 100755 --- a/Library/Contributions/cmd/brew-ls-taps.rb +++ b/Library/Contributions/cmd/brew-ls-taps.rb @@ -1,7 +1,7 @@ -require 'vendor/multi_json' +require 'utils/json' GitHub.open "https://api.github.com/legacy/repos/search/homebrew" do |f| - MultiJson.decode(f.read)["repositories"].each do |repo| + Utils::JSON.load(f.read)["repositories"].each do |repo| if repo['name'] =~ /^homebrew-(\S+)$/ puts tap = if repo['username'] == "Homebrew" "homebrew/#{$1}" |
