From: samuel@... Date: 2016-06-23T03:52:41+00:00 Subject: [ruby-core:76112] [Ruby trunk Bug#6408] DelegateClass#eql? and <=> don't work as expected Issue #6408 has been updated by Samuel Williams. I was bitten by something similar, expecting equal? to work correctly between non-delegate and delegate instances. Where are we at with this patch? ---------------------------------------- Bug #6408: DelegateClass#eql? and <=> don't work as expected https://bugs.ruby-lang.org/issues/6408#change-59317 * Author: Aaron Patterson * Status: Assigned * Priority: Normal * Assignee: Aaron Patterson * ruby -v: ruby 2.0.0dev (2012-05-06 trunk 35548) [x86_64-darwin11.3.0] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- It seems these two methods aren't delegating to the delegate object when compared against itself. I've attached a patch with tests and a fix. It seems nobody is the maintainer for delegate.rb (according to the wiki), so if nobody objects, I will apply this patch. ---Files-------------------------------- fix.patch (1.45 KB) noname (500 Bytes) noname (500 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: