summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-28 14:46:57 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-28 14:46:57 +0000
commit58018f1f2d41ec28203439496537106e6b08c377 (patch)
treed4f47cfa0a9adebb4d3d1f88e43fbec3598c98b5 /lib
parente36395dce6fa7658e91e1f86d5f4f72c148b6a8c (diff)
* lib/tracer.rb: count only non-internal libraries in stack trace,
ignoring custom_require. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/tracer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tracer.rb b/lib/tracer.rb
index a9e5d25..b1f08f3 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -287,7 +287,7 @@ if $0 == __FILE__
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: