summaryrefslogtreecommitdiff
path: root/lib/rake
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 03:21:06 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 03:21:06 +0000
commit8137152e01dbeaf8504f3d7e2117e22dfdf6801f (patch)
treec1a8f2ab996a6803544f3ecd63d4043adf433503 /lib/rake
parent9e449748744cbb28ede16ecb3064e3fcb0899022 (diff)
* lib/rake/backtrace.rb: Removed duplication in
Rake::Backtrace::SUPPRESSED_PATHS * test/rake/test_rake_backtrace.rb: Skip tests when tmpdir is in the suppressed pattern. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rake')
-rw-r--r--lib/rake/backtrace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rake/backtrace.rb b/lib/rake/backtrace.rb
index 038ca57906..e67132f67a 100644
--- a/lib/rake/backtrace.rb
+++ b/lib/rake/backtrace.rb
@@ -2,7 +2,7 @@ module Rake
module Backtrace
SUPPRESSED_PATHS =
RbConfig::CONFIG.values_at(*RbConfig::CONFIG.
- keys.grep(/(prefix|libdir)/)) + [
+ keys.grep(/(prefix|libdir)/)).uniq + [
File.join(File.dirname(__FILE__), ".."),
].map { |f| Regexp.quote(File.expand_path(f)) }
SUPPRESSED_PATHS.reject! { |s| s.nil? || s =~ /^ *$/ }