lib/protest/utils/backtrace_filter.rb
def filter_backtrace(backtrace, prefix=nil)
        paths = ESCAPE_PATHS + [prefix].compact
        backtrace.reject do |line|
          file = line.split(":").first
          paths.any? {|path| File.expand_path(file) =~ path }
        end
      end
# Filter the backtrace, removing any reference to files located in
# BASE_PATH.
Filter the backtrace, removing any reference to files located in
BASE_PATH.
Filter the backtrace removing any reference to files located in BASE_PATH .
def filter_backtrace(backtrace, prefix=nil)
        paths = ESCAPE_PATHS + [prefix].compact
        backtrace.reject do |line|
          file = line.split(":").first
          paths.any? {|path| File.expand_path(file) =~ path }
        end
      end
def filter_backtrace ( backtrace , prefix = nil ) paths = ESCAPE_PATHS + [ prefix ] . compact backtrace . reject do | line | file = line . split ( ":" ) . first paths . any? { | path | File . expand_path ( file ) =~ path } end end
Filter the backtrace, removing any reference to files located in
BASE_PATH.
Filter the backtrace removing any reference to files located in BASE_PATH .
backtrace
prefix