indented-tracer 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data.tar.gz.sig +2 -0
- data/lib/indented-tracer.rb +7 -4
- metadata +24 -3
- metadata.gz.sig +0 -0
data.tar.gz.sig
ADDED
data/lib/indented-tracer.rb
CHANGED
@@ -6,11 +6,13 @@ require 'tracer'
|
|
6
6
|
|
7
7
|
class IndentedTracer < Tracer
|
8
8
|
|
9
|
-
|
9
|
+
attr_accessor :classes
|
10
|
+
|
11
|
+
def initialize()
|
10
12
|
super
|
11
13
|
|
12
14
|
add_filter do |event, file, line, id, binding, klass, *rest|
|
13
|
-
if klass.to_s[/#{classes.join('|')}/] then
|
15
|
+
if klass.to_s[/#{@classes.join('|')}/] then
|
14
16
|
|
15
17
|
if event == 'call' then
|
16
18
|
|
@@ -20,7 +22,7 @@ class IndentedTracer < Tracer
|
|
20
22
|
|
21
23
|
end
|
22
24
|
|
23
|
-
@current << [id]
|
25
|
+
@current << [klass.to_s + '#' + id.to_s]
|
24
26
|
@grandparent = @parent
|
25
27
|
@parent = @current
|
26
28
|
@current = @current.last
|
@@ -37,7 +39,8 @@ class IndentedTracer < Tracer
|
|
37
39
|
end
|
38
40
|
|
39
41
|
def log()
|
40
|
-
|
42
|
+
"<?polyrex schema='session/entry[classname, methodname]' " + \
|
43
|
+
"delimiter='#'?>\n" + print_all(@a)
|
41
44
|
end
|
42
45
|
|
43
46
|
private
|
metadata
CHANGED
@@ -2,15 +2,36 @@
|
|
2
2
|
name: indented-tracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- James Robertson
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----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l8EqRUoLWDV6ETho0PdCD1MNgkR0Fg
|
29
|
+
jjXHd6yM3adtPj/Xn/wNSw+mu+Pp/Ym4rdJDw5CoLPsi3Yof0UEsqjWaOcqLmBSB
|
30
|
+
RJ3Q5Og/AttgRsBtcmdk0DUn4h/mxD7YpWZL3K1NjOUohVH2vz3zjjO5oV6eBAxR
|
31
|
+
21HSnuEQBMmgBuV8AZqJeJAvvPYGUObx
|
32
|
+
-----END CERTIFICATE-----
|
12
33
|
|
13
|
-
date: 2013-
|
34
|
+
date: 2013-02-06 00:00:00 Z
|
14
35
|
dependencies: []
|
15
36
|
|
16
37
|
description:
|
metadata.gz.sig
ADDED
Binary file
|