aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2015-04-02 20:22:12 -0400
committerJack Nagel2015-04-02 20:22:12 -0400
commit27092cabc4bda0904e1616bb2e5d4d949dbd3178 (patch)
tree16304967d4773c1942db4dec9e7a98f5ce941a17 /Library/Homebrew/cmd
parent1b5fc1fb02691f0868f855443f1393568fe2b465 (diff)
downloadbrew-27092cabc4bda0904e1616bb2e5d4d949dbd3178.tar.bz2
Switch PkgVersion to use composition
Comparing PkgVersion and Version objects can produce nonsensical results. For example, equality is not symmetric: irb(main):002:0> PkgVersion.new("1.0", 0) == Version.new("1.0") => false irb(main):003:0> Version.new("1.0") == PkgVersion.new("1.0", 0) => true Rather than attempt to deal with subclass-superclass equality, let's use composition and punt on the problem altogether.
Diffstat (limited to 'Library/Homebrew/cmd')
0 files changed, 0 insertions, 0 deletions