提交 eea28b07 编写于 作者: C Carl Lerche

Remove backtrace cleaner specific to Bundler. Bundler just uses Gem.dir and Gem.path now.

上级 2a2d1872
......@@ -12,7 +12,6 @@ def initialize
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 @@ def add_gem_filters
}
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册