From 6d36c4daf28b9d1730d368ccbe184cef99dc92ce Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 15 Aug 2010 19:47:46 -0700 Subject: Fix brew server and document. --- Library/Contributions/examples/brew-server | 2 +- Library/Contributions/manpages/brew.1.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Contributions/examples/brew-server b/Library/Contributions/examples/brew-server index 15bd4dbb7..856baf241 100755 --- a/Library/Contributions/examples/brew-server +++ b/Library/Contributions/examples/brew-server @@ -144,7 +144,7 @@ get '/formula/:name' do end end - used_by = Formula.get_used_by()[klass.name] + used_by = Formula.all.select{|ff| ff.deps.include?(klass.name)}.map{|f| f.name}.flatten.uniq.sort unless used_by == nil s << <<-HTML
Used by diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index 1715752e1..613365dcf 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -175,6 +175,10 @@ Some external commands are shipped with Homebrew, and enabled by default. * `missing`: Checks all installed formuale for missing dependencies. + * `server`: + Starts a local webserver with an app that lets you browse available + formulae, similar to `gem server`. + * `test` : A few formulae provide a test method. `brew test ` runs this test method. There is no standard output or return code, but it should -- cgit v1.2.3