From 7bd38510a8f6522ef3c070da716a1b7a9d8ef529 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 18 Feb 2006 15:38:56 +0000 Subject: [PATCH] * lib/tracer.rb (Tracer::Tracer.add_filter): turn on tracer mode only when caller() level size is one. [ruby-core:07389] * lib/rdoc/parsers/parse_rb.rb: need not to require "tracer". [ruby-core:07389] * sample/rtags.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++++ lib/rdoc/parsers/parse_rb.rb | 1 - lib/tracer.rb | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 81ee2f6b5c..c056ad1ed8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Sat Feb 18 23:58:26 2006 Yukihiro Matsumoto + + * lib/tracer.rb (Tracer::Tracer.add_filter): turn on tracer mode + only when caller() level size is one. [ruby-core:07389] + + * lib/rdoc/parsers/parse_rb.rb: need not to require "tracer". + [ruby-core:07389] + + * sample/rtags.rb: ditto. + Sat Feb 18 21:16:27 2006 Yukihiro Matsumoto * eval.c (rb_obj_instance_eval): RDoc description updated. a diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 17b87dcd1f..d894125730 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -13,7 +13,6 @@ # by Keiju ISHITSUKA (Nippon Rational Inc.) # -require "tracer" require "e2mmap" require "irb/slex" diff --git a/lib/tracer.rb b/lib/tracer.rb index 893a9d5827..71aa49c306 100644 --- a/lib/tracer.rb +++ b/lib/tracer.rb @@ -162,6 +162,6 @@ if $0 == __FILE__ ARGV.shift Tracer.on require $0 -else +elsif caller(0).size == 1 Tracer.on end