I would like to report a ruby1.9 bug. I tried to create a new ticket in redmine. After registration(wonderix) I tried to login, but I didn't succeed. After 4 password resets I gave up.

So here is my description:

a.rb:
test = Class.new(Object)
test.class_eval(File.read("b.rb"),"b.rb",1)
test.run

b.rb:
p caller
def self.run()
p caller
end

When I run a.rb I got:
["a.rb:2:in `class_eval'", "a.rb:2:in `<main>'"]
["a.rb:3:in `<main>'"]

Should be:
["b.rb:1:in `class_eval'", "a.rb:2:in `<main>'"]
["b.rb:3:in `<main>'"]

ruby -v:
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]



Mit freundlichen GrŘ▀en | best regards,

Ulrich Kramer
Senior Developer
-------------------------------------------------------------------------------
Crossgate Technologies AG
Groner Landstr. 23/25
D-37081 Goettingen
Tel.:	+49-6227 7 43975
Fax:	+49 551 69339-99
Mobil:  +49-172-8585 797

Ulrich.Kramer / crossgate.com
www.crossgate.com

Crossgate Technologies AG
Sitz der Gesellschaft: G÷˘tingen | Vorstand: Michael Morsch | AR-Vorsitzender: Stefan Tittel
Amtsgericht G÷˘tingen HRB 3234 |UST-Ident-Nr. DE 202 110 265

Registered office: G÷˘tingen | Management Board: Michael Morsch | Board of directors: Stefan Tittel (Chairman)
County court G÷˘tingen; Company Reg. No. 3234 |Sales tax identification number: DE 202 110 265