4

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!

Alex
  • 4,122
  • 5
  • 34
  • 40
  • Do you mean you want to suppress the warning or avoid the serious problems it's warning come with undefining object_id? – Chuck Aug 24 '09 at 17:09
  • I really just want to suppress the warning. I'm comfortable with the module's functionality. – Alex Aug 24 '09 at 18:23

1 Answers1

5

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.

Chowlett
  • 45,935
  • 20
  • 116
  • 150
Sarah Mei
  • 18,154
  • 5
  • 45
  • 45