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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05ab92f2f09de0906d0e795a21f47e4267319d21
4
- data.tar.gz: 4c488aebe3862a891f362652913b3d160b3c6349
3
+ metadata.gz: 50ddf9633f258a82c6d5ec370628839ccddf66b5
4
+ data.tar.gz: 7b5f0e6140d3308c99b5d72a5db6c71ac7c464aa
5
5
  SHA512:
6
- metadata.gz: 362ab2a3e417513b8fe91caaef647dfd4544ff1b5df9d2a1d6bee3b20408c20887e74e6205433387e9182a5709ddb4546bc67faa94e30546c7c7172ce587ab2c
7
- data.tar.gz: 581c694d6d57228b27326aea7b27c4806d1cf5723d4616c70d8180f23b8602bdc84bcbf07661e9e7aa9469b412b07c15e940c5629477c070e05d95f08a9363d0
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
@@ -1,3 +1,3 @@
1
1
  module Tracing
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath