Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Matt Mower
eval warning [ reply ]  
2008-05-20 09:31
Hi.

Since, I think, upgrading to Ick 0.3 I am having a new warning in some code (a gem bin file for running a script) using Ick. The offending code is:

require 'rubygems'
require 'trollop'
require 'ick'

puts "G1"
Ick.sugarize
puts "G2"

pretty innocuous, but the output is:

G1
(eval):2: warning: method redefined; discarding old fork
G2

However I can't seem to duplicate this via irb, typing in the code by hand, nor single-stepping via rdebug (i just get the G1 and G2 markers). Nor can I find where this warning is defined.

Any hints would be appreciated.

Regards,

Matt