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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b6b20be57ccf2e78b519c7168b1ce03539983ca90edee377df0ef46df1e6efb
4
- data.tar.gz: 48f2555a86a10a878ec48dbd2eb9d5b5cdea614d9c8d64e1a96a750eaa9d0543
3
+ metadata.gz: 8e369c5e99d5fbc0625e52c52e3e91255f4feb3e4a7a7c8cc89c4b1f9becebc3
4
+ data.tar.gz: 57d3d1e6d68cc3e453f07ae531c3c84ef860a1d51236f75a085dbbd32444bea3
5
5
  SHA512:
6
- metadata.gz: 66ab836be3474f70a2be81130dd1c502a6eb84b6eab030978c826358197a8b2bf31b28a88d3f4bbe60907dba775342eed4937c4cda14a3c08f5675fc2719fc7f
7
- data.tar.gz: dfbec33b0177a877f11d3360e1bd5d94e62f3f967bd44217c3599025397ceadec68545dec21ac8c486d7cbd586886554a7130d5a8cf158b3cc9115b003da3234
6
+ metadata.gz: 5d3780b5fcfe831b44b5cf9cb1429b5c025781dfba8ce4e035512905e29f9a76a4285136975f28e8f8860d35076f7d069c646aead70c36abaec3178880387df7
7
+ data.tar.gz: 4e08b2bdfa70d08ee69e65047cc4c4e664734ba49c356f79a768e5c48d1579fae3e289398556f5a5f413dc6c52012fbd22de5c7c3be90a05cbb38a939701cd03
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
+ # source 'https://gems.ruby-china.com'
2
3
 
3
4
  # Specify your gem's dependencies in trace_tree.gemspec
4
5
  gemspec
@@ -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
- Interfaces.each do |i|
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
@@ -1,3 +1,3 @@
1
1
  class TraceTree
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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", "~> 10.0"
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.0
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: '10.0'
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: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement