From a487909e9a720135940c4fc63c94a9f7af93a2f5 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 28 Mar 2014 20:42:20 -0500 Subject: [PATCH] Don't rely on Dependency#to_s --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 50a6d1530a..3aca80febc 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -495,7 +495,7 @@ class Formula "installed" => [], "linked_keg" => (linked_keg.realpath.basename.to_s if linked_keg.exist?), "keg_only" => keg_only?, - "dependencies" => deps.map {|dep| dep.to_s}, + "dependencies" => deps.map(&:name), "conflicts_with" => conflicts.map(&:name), "options" => [], "caveats" => caveats