Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Correctly clean backtraces from vendor/gems and alternate gem installation directories

#2141

Improvement on the idea in #1497 New default backtrace filter for Gems.

The current Rails::BacktraceCleaner only handles gems installed in Gem.default_dir, not any of the alternative locations (~/.gem) or in vendor/gems.

The attached patch handles those cases exactly as the default_dir case, by generating a backtrace entry in the format suggested here and already used in the code. There is a minor additon for vendored gems, which get a "[v]" after the version number.

The patch also includes tests for the formatting!

Reported by Matt Jones · March 5th, 2009 @ 09:15 PM

State: committed
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. DHH
    DHH
    • State changed from new to committed

    March 9th, 2009 @ 11:10 AM