trace_tree 0.3.5 → 0.3.6

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: bd2acac6d571e0747380b7a119f10ceae8b047677da86922aacf86d61f230e1e
4
- data.tar.gz: 9f99a54c748d8e36b92e11dba833e7059da16ee5fa486412e5c70c35c2186ffc
3
+ metadata.gz: 2e25619d4cd4911fa6248e38af2f84091885e7cd7d9093904bc2867ebabf9ddc
4
+ data.tar.gz: 0d86d05a65e21f29445a4592551fa4c796e2b05d080c51524323792be673e82b
5
5
  SHA512:
6
- metadata.gz: 7597b9d86bf09817082dbdec9dd31a7a18f80afda328b437d7b7d023ff8e77983e09399e53e2d7f6e8026f13100aac29a48feecfd98ad1fc1319389ffeda7eb9
7
- data.tar.gz: a69bef456553b83d05d749973c8e923080708bd27a3793b2639b13869f44932fbb85589a52c0695790ff9661043c7bfa55de9db0cc211521cebef7a7fbf6804a
6
+ metadata.gz: 3ca5976e6b6008403116961966cf257a36fcb8ff23bddbd240dbacd1096c39da42f5cdc4bb247d3cdc7c6468147b2bf010668de943f856e73e55f7305e48e8b9
7
+ data.tar.gz: f145a4f9bc64aa48c7d75ddc1f61178dbe548b5e14815fd460de4d113cd72ec182f0a067122893284049412a0f4f8d7fb9a3d9fcbb333d2205fbbcbc97d7c81c
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
@@ -9,4 +8,5 @@
9
8
  /tmp/
10
9
  *.swp
11
10
  *.gem
11
+ .ruby-version
12
12
  .tool-versions
data/Gemfile.lock ADDED
@@ -0,0 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ trace_tree (0.3.5)
5
+ binding_of_callers (~> 0.2.3)
6
+ tree_graph (~> 0.2.4)
7
+ tree_html (~> 0.1.10)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ binding_of_caller (1.0.0)
13
+ debug_inspector (>= 0.0.1)
14
+ binding_of_callers (0.2.3)
15
+ binding_of_caller (~> 1.0)
16
+ pry (>= 0.10.0)
17
+ coderay (1.1.3)
18
+ debug_inspector (1.1.0)
19
+ method_source (1.0.0)
20
+ minitest (5.17.0)
21
+ pry (0.14.2)
22
+ coderay (~> 1.1)
23
+ method_source (~> 1.0)
24
+ rake (13.0.6)
25
+ tree_graph (0.2.4)
26
+ tree_html (0.1.10)
27
+
28
+ PLATFORMS
29
+ ruby
30
+
31
+ DEPENDENCIES
32
+ bundler (~> 2.4.0)
33
+ minitest (~> 5.0)
34
+ pry
35
+ rake (>= 12.3.3)
36
+ trace_tree!
37
+
38
+ BUNDLED WITH
39
+ 2.4.1
@@ -1,3 +1,3 @@
1
1
  class TraceTree
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
data/lib/trace_tree.rb CHANGED
@@ -23,6 +23,7 @@ class Binding
23
23
  end
24
24
 
25
25
  class TraceTree
26
+ RB_VER = RUBY_VERSION.split('.')[0..1].join('.').to_f
26
27
 
27
28
  MainFile = __FILE__
28
29
 
@@ -215,9 +216,9 @@ class TraceTree
215
216
 
216
217
  # binding.pry
217
218
 
218
- stacks[trace_points.first.thread][0].
219
- callees[0].
220
- callees[0]
219
+ thread_stack = stacks[trace_points.first.thread]
220
+ frame = thread_stack[0].callees[0].callees[0]
221
+ RB_VER >= 2.7 ? frame : frame.callees[0]
221
222
  end
222
223
 
223
224
  def trace_points_array
data/trace_tree.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_development_dependency "bundler", "> 1.14"
23
+ spec.add_development_dependency "bundler", "~> 2.4.0"
24
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"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trace_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ken
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">"
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
19
+ version: 2.4.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">"
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.14'
26
+ version: 2.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.1.10
111
- description:
111
+ description:
112
112
  email:
113
113
  - block24block@gmail.com
114
114
  executables: []
@@ -119,6 +119,7 @@ files:
119
119
  - ".travis.yml"
120
120
  - CODE_OF_CONDUCT.md
121
121
  - Gemfile
122
+ - Gemfile.lock
122
123
  - LICENSE.txt
123
124
  - README.md
124
125
  - Rakefile
@@ -162,7 +163,7 @@ homepage: https://github.com/turnon/trace_tree
162
163
  licenses:
163
164
  - MIT
164
165
  metadata: {}
165
- post_install_message:
166
+ post_install_message:
166
167
  rdoc_options: []
167
168
  require_paths:
168
169
  - lib
@@ -177,8 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
178
  - !ruby/object:Gem::Version
178
179
  version: '0'
179
180
  requirements: []
180
- rubygems_version: 3.1.6
181
- signing_key:
181
+ rubygems_version: 3.4.1
182
+ signing_key:
182
183
  specification_version: 4
183
184
  summary: Print TracePoint(:b_call, :b_return, :c_call, :c_return, :call, :return,
184
185
  :class, :end, :thread_begin, :thread_end) in tree view, to console or html