ruby-changes:20225
From: keiju <ko1@a...>
Date: Tue, 28 Jun 2011 23:47:03 +0900 (JST)
Subject: [ruby-changes:20225] keiju:r32273 (trunk): * lib/tracer.rb: count only non-internal libraries in stack trace,
keiju 2011-06-28 23:46:57 +0900 (Tue, 28 Jun 2011) New Revision: 32273 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32273 Log: * lib/tracer.rb: count only non-internal libraries in stack trace, ignoring custom_require. Modified files: trunk/ChangeLog trunk/lib/tracer.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 32272) +++ ChangeLog (revision 32273) @@ -1,3 +1,8 @@ +Tue Jun 28 23:46:08 2011 Keiju Ishitsuka <keiju@i...> + + * lib/tracer.rb: count only non-internal libraries in stack trace, + ignoring custom_require. + Tue Jun 28 21:44:58 2011 Keiju Ishitsuka <keiju@i...> * lib/irb/ruby-lex.rb: recognize '\char' in ruby statement. Index: lib/tracer.rb =================================================================== --- lib/tracer.rb (revision 32272) +++ lib/tracer.rb (revision 32273) @@ -287,7 +287,7 @@ ARGV.shift Tracer.on require $0 -elsif caller.count {|bt| /\A<internal:[^<>]+>:/ !~ bt} <= 1 +elsif caller.count {|bt| /\/rubygems\/custom_require.rb:/ !~ bt} <= 1 Tracer.on end # :startdoc: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/