Bugs: Browse | Submit New | Admin

[#25641] 0.6.1 breaks with Ruby 1.8.7 on the "__method__" method

Date:
2009-04-24 01:23
Priority:
3
Submitted By:
Thiago Jackiw (tjackiw)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
0.6.1 breaks with Ruby 1.8.7 on the "__method__" method

Detailed description
The gem is breaking on the "__method__" method under the Kernel module on line 130 of the extensions.rb file.

The current declaration (which breaks) is:

def __method__(depth = 0)
  caller[depth][/`([^']+)'/, 1]
end if RUBY_VERSION < '1.8.7'

and when changing RUBY_VERSION < '1.8.7' to RUBY_VERSION <= '1.8.7' it works fine and all tests pass.

Before:
146 tests, 314 assertions, 9 failures, 39 errors

After:
146 tests, 441 assertions, 0 failures, 0 errors

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item