From 5545348a33d44c7eba452912bd9cd89c1c112134 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 11 Apr 2012 18:24:24 -0500 Subject: [PATCH] Implement <=> for Dependency Fixes #11587. Signed-off-by: Jack Nagel --- Library/Homebrew/dependencies.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb index 455b42e24cad..385d54845efa 100644 --- a/Library/Homebrew/dependencies.rb +++ b/Library/Homebrew/dependencies.rb @@ -74,6 +74,10 @@ def ==(other_dep) @name == other_dep.to_s end + def <=>(other_dep) + @name <=> other_dep.to_s + end + def options @tags.select{|p|p.start_with? '--'} end