diff options
| author | Jack Nagel | 2013-06-22 16:51:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-22 21:34:02 -0500 |
| commit | 163067512bb15e0582ad9d59555697126b9aeac6 (patch) | |
| tree | f0128fb96018751be17281a59161fe3b72e8ad56 /Library/Contributions/cmd | |
| parent | e3f061d9900187e0082f17d4e857a55ff8fc4874 (diff) | |
| download | homebrew-163067512bb15e0582ad9d59555697126b9aeac6.tar.bz2 | |
Add Utils::JSON to wrap the JSON implementation
Diffstat (limited to 'Library/Contributions/cmd')
| -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}" |
