trace_tree 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/lib/trace_tree/point.rb +2 -3
- data/lib/trace_tree/version.rb +1 -1
- data/trace_tree.gemspec +1 -1
- 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: 8e369c5e99d5fbc0625e52c52e3e91255f4feb3e4a7a7c8cc89c4b1f9becebc3
|
4
|
+
data.tar.gz: 57d3d1e6d68cc3e453f07ae531c3c84ef860a1d51236f75a085dbbd32444bea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d3780b5fcfe831b44b5cf9cb1429b5c025781dfba8ce4e035512905e29f9a76a4285136975f28e8f8860d35076f7d069c646aead70c36abaec3178880387df7
|
7
|
+
data.tar.gz: 4e08b2bdfa70d08ee69e65047cc4c4e664734ba49c356f79a768e5c48d1579fae3e289398556f5a5f413dc6c52012fbd22de5c7c3be90a05cbb38a939701cd03
|
data/Gemfile
CHANGED
data/lib/trace_tree/point.rb
CHANGED
@@ -12,6 +12,7 @@ class TraceTree
|
|
12
12
|
|
13
13
|
Interfaces = [:event, :defined_class, :method_id, :path, :lineno]
|
14
14
|
attr_reader(*Interfaces)
|
15
|
+
class_eval 'def assign_trace_point_values(tp);' + Interfaces.map{ |i| "@#{i} = tp.#{i}" }.join(';') + ';end'
|
15
16
|
|
16
17
|
class << self
|
17
18
|
def inherited base
|
@@ -68,9 +69,7 @@ EOM
|
|
68
69
|
end
|
69
70
|
|
70
71
|
def initialize trace_point
|
71
|
-
|
72
|
-
instance_variable_set "@#{i}", trace_point.send(i)
|
73
|
-
end
|
72
|
+
assign_trace_point_values(trace_point)
|
74
73
|
|
75
74
|
@return_value = trace_point.return_value if x_return?
|
76
75
|
@thread = Thread.current
|
data/lib/trace_tree/version.rb
CHANGED
data/trace_tree.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "> 1.14"
|
24
|
-
spec.add_development_dependency "rake", "
|
24
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
25
25
|
spec.add_development_dependency "minitest", "~> 5.0"
|
26
26
|
spec.add_development_dependency "pry"
|
27
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trace_tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ken
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|