visual_call_html 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/lib/html.rb +1 -1
- data/lib/tracer.rb +3 -2
- data/lib/visual_call_html.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84e84e85f85f91218502afb13d75d4ffc10f1c3fa93e18159d359f125692d55e
|
4
|
+
data.tar.gz: bb666f91822caf00d747522e852a0a0a7efa46a9b232e949802396bc8b25d2a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6429ec055f5531109624e23702150a195cd2048aad6057e72c8c5b2a1b964cd3db1d230c3a1c493e1051d6cdac90ef3892c10d8d8d8c77500369de010f81f18
|
7
|
+
data.tar.gz: 7c7c3de40d91b8736046000502a241f355b9e5b83885b4789372d9b208b3e6d1836936e49438b7e4906d4a4642c81baab201bdf8503e09e91d539a9a4e8c1021
|
data/lib/html.rb
CHANGED
data/lib/tracer.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
class Tracer
|
2
2
|
attr_reader :path, :data
|
3
3
|
|
4
|
-
def initialize
|
4
|
+
def initialize(options = {})
|
5
|
+
@options = options
|
5
6
|
@trace = build_tracer
|
6
7
|
@path = []
|
7
8
|
@data = []
|
@@ -27,7 +28,7 @@ class Tracer
|
|
27
28
|
|
28
29
|
case event.event
|
29
30
|
when :return
|
30
|
-
event.return_value && @data.push(
|
31
|
+
@options[:display_return_value] && event.return_value && @data.push(
|
31
32
|
key: uniq_key,
|
32
33
|
parent: @path.last,
|
33
34
|
text: "Return: #{event.return_value}"
|
data/lib/visual_call_html.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visual_call_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hungkieu
|
@@ -20,8 +20,9 @@ files:
|
|
20
20
|
- lib/html.rb
|
21
21
|
- lib/tracer.rb
|
22
22
|
- lib/visual_call_html.rb
|
23
|
-
homepage:
|
24
|
-
licenses:
|
23
|
+
homepage: https://github.com/muoihai-com/visual_call_html
|
24
|
+
licenses:
|
25
|
+
- MIT
|
25
26
|
metadata: {}
|
26
27
|
post_install_message:
|
27
28
|
rdoc_options: []
|
@@ -38,8 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
39
|
- !ruby/object:Gem::Version
|
39
40
|
version: '0'
|
40
41
|
requirements: []
|
41
|
-
|
42
|
-
rubygems_version: 2.7.6
|
42
|
+
rubygems_version: 3.2.2
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
45
|
summary: This gem helps you see all the other methods called by another method.
|