зеркало из https://github.com/github/ruby.git
rake/backtrace.rb: exclude mere prefix
* lib/rake/backtrace.rb (Rake::Backtrace): exclude mere prefix and exec_prefix, which match too much. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
04408eae54
Коммит
d0f71e5072
|
@ -1,6 +1,6 @@
|
|||
module Rake
|
||||
module Backtrace # :nodoc: all
|
||||
SYS_KEYS = RbConfig::CONFIG.keys.grep(/(?:prefix|libdir)\z/)
|
||||
SYS_KEYS = RbConfig::CONFIG.keys.grep(/(?:[a-z]prefix|libdir)\z/)
|
||||
SYS_PATHS = RbConfig::CONFIG.values_at(*SYS_KEYS).uniq +
|
||||
[ File.join(File.dirname(__FILE__), "..") ]
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class TestRakeBacktrace < Rake::TestCase
|
|||
super
|
||||
|
||||
skip 'tmpdir is suppressed in backtrace' if
|
||||
Dir.pwd =~ Rake::Backtrace::SUPPRESS_PATTERN
|
||||
Rake::Backtrace::SUPPRESS_PATTERN =~ Dir.pwd
|
||||
end
|
||||
|
||||
def invoke(*args)
|
||||
|
|
Загрузка…
Ссылка в новой задаче