summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/tracer.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ff309cc55d..f9afb43680 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jun 28 23:46:08 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
+
+ * lib/tracer.rb: count only non-internal libraries in stack trace,
+ ignoring custom_require.
+
Tue Jun 28 21:44:58 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/ruby-lex.rb: recognize '\char' in ruby statement.
diff --git a/lib/tracer.rb b/lib/tracer.rb
index a9e5d253d5..b1f08f3f68 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: