1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add gem filter for default gem path since it maybe different than the set of gem paths

This commit is contained in:
Joshua Peek 2009-09-26 11:04:08 -05:00
parent 5eeed9f00a
commit 79a4d505fa
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ module Rails
private
def add_gem_filters
Gem.path.each do |path|
(Gem.path + [Gem.default_dir]).uniq.each do |path|
# http://gist.github.com/30430
add_filter { |line| line.sub(/(#{path})\/gems\/([a-z]+)-([0-9.]+)\/(.*)/, '\2 (\3) \4')}
end