This project is archived and is in readonly mode.

#2141 ✓committed
Matt Jones

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

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

Improvement on the idea in #1497.

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!

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages