1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rake/backtrace.rb: remove wrong value

* lib/rake/backtrace.rb (Rake::Backtrace::SYS_KEYS): only names
  end with prefix or libdir, not just include them.  libdirname is
  not a key of path name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-08-16 03:48:21 +00:00
parent 3636e08858
commit 04408eae54

View file

@ -1,6 +1,6 @@
module Rake module Rake
module Backtrace # :nodoc: all module Backtrace # :nodoc: all
SYS_KEYS = RbConfig::CONFIG.keys.grep(/(prefix|libdir)/) SYS_KEYS = RbConfig::CONFIG.keys.grep(/(?:prefix|libdir)\z/)
SYS_PATHS = RbConfig::CONFIG.values_at(*SYS_KEYS).uniq + SYS_PATHS = RbConfig::CONFIG.values_at(*SYS_KEYS).uniq +
[ File.join(File.dirname(__FILE__), "..") ] [ File.join(File.dirname(__FILE__), "..") ]