aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-06-22 16:51:08 -0500
committerJack Nagel2013-06-22 21:34:02 -0500
commit163067512bb15e0582ad9d59555697126b9aeac6 (patch)
treef0128fb96018751be17281a59161fe3b72e8ad56 /Library/Contributions/cmd
parente3f061d9900187e0082f17d4e857a55ff8fc4874 (diff)
downloadhomebrew-163067512bb15e0582ad9d59555697126b9aeac6.tar.bz2
Add Utils::JSON to wrap the JSON implementation
Diffstat (limited to 'Library/Contributions/cmd')
-rwxr-xr-xLibrary/Contributions/cmd/brew-ls-taps.rb4
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}"