Sha256: 204f3f5e4a7cb59ef0eeec5d35630780e345a0340e3c6f88174921a76e418a4b
Contents?: true
Size: 557 Bytes
Versions: 3
Compression:
Stored size: 557 Bytes
Contents
module Rake module Backtrace SUPPRESSED_PATHS = RbConfig::CONFIG.values_at(*RbConfig::CONFIG. keys.grep(/(prefix|libdir)/)) + [ File.join(File.dirname(__FILE__), ".."), ].map { |f| Regexp.quote(File.expand_path(f)) } SUPPRESS_PATTERN = %r!(\A#{SUPPRESSED_PATHS.join('|')}|bin/rake:\d+)! def self.collapse(backtrace) pattern = Rake.application.options.suppress_backtrace_pattern || SUPPRESS_PATTERN backtrace.reject { |elem| elem =~ pattern } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rake-10.0.0.beta.2 | lib/rake/backtrace.rb |
rake-10.0.0.beta.1 | lib/rake/backtrace.rb |
rake-0.9.3.beta.3 | lib/rake/backtrace.rb |