tracing 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tracing.rb +5 -5
- data/lib/tracing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50ddf9633f258a82c6d5ec370628839ccddf66b5
|
4
|
+
data.tar.gz: 7b5f0e6140d3308c99b5d72a5db6c71ac7c464aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6a68a86e5c9b2e7ac8cbfbe9d0923bcc5fdd96ae71fcbd8db4706676a0e454f556cb4b64d245786ed960b20dca30b35573da74f2c3c86b84657699af22678d0
|
7
|
+
data.tar.gz: e0b29024743ba2278cf5ec8995a430bd57edd51ff1fac4af8ce83b012b640f4f946602d34a6762b760a97dbd6fb3e19ff0435dc41783bfb6f121c20ef0278091
|
data/lib/tracing.rb
CHANGED
@@ -49,7 +49,7 @@ module Tracing
|
|
49
49
|
end
|
50
50
|
|
51
51
|
class Tracer
|
52
|
-
attr_accessor :indent, :nested
|
52
|
+
attr_accessor :indent, :nested, :delayed
|
53
53
|
|
54
54
|
def initialize
|
55
55
|
reinitialize
|
@@ -69,11 +69,11 @@ module Tracing
|
|
69
69
|
|
70
70
|
def trace(*args, &block)
|
71
71
|
begin
|
72
|
-
old_indent, old_nested, enabled = @indent, @nested, show(*args)
|
72
|
+
old_indent, old_nested, old_delayed, enabled = @indent, @nested, @delayed, show(*args)
|
73
73
|
# This monstrosity reduces the steps when single-stepping:
|
74
74
|
block ? yield : (args.size == 0 ? self : enabled)
|
75
75
|
ensure
|
76
|
-
@indent, @nested = old_indent, old_nested
|
76
|
+
@indent, @nested, @delayed = old_indent, old_nested, old_delayed
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
@@ -285,11 +285,11 @@ class Object
|
|
285
285
|
begin
|
286
286
|
# This monstrosity reduces the steps when single-stepping:
|
287
287
|
tracer = (Tracing.tracer ||= Tracing::Tracer.new) and
|
288
|
-
(old_indent, old_nested, enabled = tracer.indent, tracer.nested, tracer.show(*args))
|
288
|
+
(old_indent, old_nested, old_delayed, enabled = tracer.indent, tracer.nested, tracer.delayed, tracer.show(*args))
|
289
289
|
|
290
290
|
block ? yield : (args.size == 0 ? tracer : enabled)
|
291
291
|
ensure
|
292
|
-
tracer.indent, tracer.nested = old_indent, old_nested
|
292
|
+
tracer.indent, tracer.nested, tracer.delayed = old_indent, old_nested, old_delayed
|
293
293
|
end
|
294
294
|
end
|
295
295
|
end
|
data/lib/tracing/version.rb
CHANGED