[前][次][番号順一覧][スレッド一覧]

ruby-changes:35118

From: nobu <ko1@a...>
Date: Sat, 16 Aug 2014 12:56:27 +0900 (JST)
Subject: [ruby-changes:35118] nobu:r47200 (trunk): rake/backtrace.rb: exclude mere prefix

nobu	2014-08-16 12:56:17 +0900 (Sat, 16 Aug 2014)

  New Revision: 47200

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47200

  Log:
    rake/backtrace.rb: exclude mere prefix
    
    * lib/rake/backtrace.rb (Rake::Backtrace): exclude mere prefix and
      exec_prefix, which match too much.

  Modified files:
    trunk/lib/rake/backtrace.rb
    trunk/test/rake/test_rake_backtrace.rb
Index: lib/rake/backtrace.rb
===================================================================
--- lib/rake/backtrace.rb	(revision 47199)
+++ lib/rake/backtrace.rb	(revision 47200)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/rake/backtrace.rb#L1
 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__), "..") ]
 
Index: test/rake/test_rake_backtrace.rb
===================================================================
--- test/rake/test_rake_backtrace.rb	(revision 47199)
+++ test/rake/test_rake_backtrace.rb	(revision 47200)
@@ -42,7 +42,7 @@ class TestRakeBacktrace < Rake::TestCase https://github.com/ruby/ruby/blob/trunk/test/rake/test_rake_backtrace.rb#L42
     super
 
     skip 'tmpdir is suppressed in backtrace' if
-      Dir.pwd =~ Rake::Backtrace::SUPPRESS_PATTERN
+      Rake::Backtrace::SUPPRESS_PATTERN =~ Dir.pwd
   end
 
   def invoke(*args)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]