diff options
| author | Jack Nagel | 2013-06-11 22:23:19 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-12 12:23:45 -0500 |
| commit | 13a2ceef5c83adcb03bd8958cdab356ac728b545 (patch) | |
| tree | 7f1c80b43f7cf4597268781cd781f50cd3cf3b56 /Library/Homebrew | |
| parent | d23ce833d7cfc13ed07c5f1edbc35b0c1e036755 (diff) | |
| download | brew-13a2ceef5c83adcb03bd8958cdab356ac728b545.tar.bz2 | |
Move require out of method
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 15262addb..ad443daf4 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -1,6 +1,7 @@ -require "formula" -require "blacklist" -require "utils" +require 'formula' +require 'blacklist' +require 'utils' +require 'vendor/multi_json' module Homebrew extend self def search @@ -62,7 +63,6 @@ module Homebrew extend self def search_tap user, repo, rx return [] if (HOMEBREW_LIBRARY/"Taps/#{user.downcase}-#{repo.downcase}").directory? - require 'vendor/multi_json' results = [] GitHub.open "https://api.github.com/repos/#{user}/homebrew-#{repo}/git/trees/HEAD?recursive=1" do |f| |
