Implement <=> for Dependency
Fixes Homebrew/homebrew#11587. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
0452be43ac
commit
15d7e89f0e
@ -74,6 +74,10 @@ class Dependency
|
|||||||
@name == other_dep.to_s
|
@name == other_dep.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def <=>(other_dep)
|
||||||
|
@name <=> other_dep.to_s
|
||||||
|
end
|
||||||
|
|
||||||
def options
|
def options
|
||||||
@tags.select{|p|p.start_with? '--'}
|
@tags.select{|p|p.start_with? '--'}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user