mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove backtrace cleaner specific to Bundler. Bundler just uses Gem.dir and Gem.path now.
This commit is contained in:
parent
2a2d1872e4
commit
eea28b07cf
1 changed files with 0 additions and 11 deletions
|
@ -12,7 +12,6 @@ module Rails
|
|||
add_filter { |line| line.sub('./', '/') } # for tests
|
||||
|
||||
add_gem_filters
|
||||
add_bundler_filters
|
||||
|
||||
add_silencer { |line| !APP_DIRS.any? { |dir| line =~ /^#{dir}/ } }
|
||||
end
|
||||
|
@ -27,16 +26,6 @@ module Rails
|
|||
}
|
||||
end
|
||||
end
|
||||
|
||||
def add_bundler_filters
|
||||
return unless defined? Bundler
|
||||
add_filter { |line|
|
||||
line.sub(%r{vendor/gems/[^/]+/[^/]+/gems/([^/]+)-([0-9.]+)/(.*)}, '\1 (\2) \3')
|
||||
}
|
||||
add_filter { |line|
|
||||
line.sub(%r{vendor/gems/[^/]+/[^/]+/dirs/([^/]+)/(.*)}, '\1 \2')
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
# For installing the BacktraceCleaner in the test/unit
|
||||
|
|
Loading…
Reference in a new issue