Avoid object_id warning when using andand in Ruby 1.9?

andand, ruby

Solution

You're in luck - it was just patched with a fix for this issue.

Unfortunately, as of 2011-03, the gem has not been published with this patch in place. However, there is a fork which sole purpose is to have that patch: ryansch-andand

Good news! Version v1.3.3 was pushed to RubyGems on 2012-03-28, and includes this fix.

Problem

When I load andand in Ruby 1.9 I get the warning ``` andand.rb:111: warning: undefining 'object_id' may cause serious problem ``` Does anyone know a way, other than modifying andand to not remove object_id, to avoid this warning? Thanks!

Original source