aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/cmd/brew-ls-taps.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-22 16:51:08 -0500
committerJack Nagel2013-06-22 21:34:02 -0500
commit083b3c84d08571dda76e4d9ec553492ca60b8db3 (patch)
tree3f6b9dd8f3d128116a503a42e220ab664d39911c /Library/Contributions/cmd/brew-ls-taps.rb
parentc4272a25cc1e8cd85acadb52db551cad2a5824cb (diff)
downloadbrew-083b3c84d08571dda76e4d9ec553492ca60b8db3.tar.bz2
Add Utils::JSON to wrap the JSON implementation
Diffstat (limited to 'Library/Contributions/cmd/brew-ls-taps.rb')
-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}"