aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-11-28 23:29:29 -0800
committerCharlie Sharpsteen2011-11-28 23:29:29 -0800
commit98989560476db26165eef947b96e49d508240b97 (patch)
treef2339cb7c3906be4f9dc8ee837c5e1992367243b /Library
parent093974f200d27c5f396e582b6cbb33d55929024a (diff)
downloadbrew-98989560476db26165eef947b96e49d508240b97.tar.bz2
uses.rb: Pass a block to map instead of a Proc
Passing a `Proc` doesn't work in Ruby 1.8.6 which causes `brew uses` to fail on Leopard.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/uses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/uses.rb b/Library/Homebrew/cmd/uses.rb
index a94dc469e..f0654f65d 100644
--- a/Library/Homebrew/cmd/uses.rb
+++ b/Library/Homebrew/cmd/uses.rb
@@ -20,6 +20,6 @@ module Homebrew extend self
keg.directory? and not keg.subdirs.empty?
end
end
- puts_columns uses.map(&:to_s).sort
+ puts_columns uses.map{|f| f.to_s}.sort
end
end