rbtrace 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/bin/rbtrace +4 -4
- data/rbtrace.gemspec +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/bin/rbtrace
CHANGED
@@ -500,7 +500,7 @@ class RBTracer
|
|
500
500
|
parser = Trollop::Parser.new do
|
501
501
|
version <<-EOS
|
502
502
|
rbtrace: like strace, but for ruby code
|
503
|
-
version 0.3.
|
503
|
+
version 0.3.3
|
504
504
|
(c) 2011 Aman Gupta (tmm1)
|
505
505
|
http://github.com/tmm1/rbtrace
|
506
506
|
EOS
|
@@ -604,7 +604,7 @@ EOS
|
|
604
604
|
end
|
605
605
|
|
606
606
|
if out = opts[:output]
|
607
|
-
|
607
|
+
output = File.open(out, opts[:append] ? 'a+' : 'w')
|
608
608
|
end
|
609
609
|
|
610
610
|
slow = nil
|
@@ -663,8 +663,8 @@ EOS
|
|
663
663
|
tracer.add(methods)
|
664
664
|
end
|
665
665
|
|
666
|
-
if
|
667
|
-
tracer.out =
|
666
|
+
if output
|
667
|
+
tracer.out = output
|
668
668
|
end
|
669
669
|
|
670
670
|
tracer.prefix = ' ' * opts[:prefix]
|
data/rbtrace.gemspec
CHANGED
metadata
CHANGED