minitest-heat 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/minitest/heat/location.rb +1 -5
- data/lib/minitest/heat/output.rb +4 -4
- data/lib/minitest/heat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01c04bc05d2d9aa703e552fcb104c8e7124f78ced8b65cda3f40810818877108
|
4
|
+
data.tar.gz: f9326507abcea6e99582a1ed4436b728efbab9f6121b254a17977f41db1f3152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df96aed9406de7bbe7905c1e994f418dad556b06651b6bf173977a771ca03f29aad5a91696b6f27bbc1dfdc854e7fbd69636294187214df152ba68d902525f81
|
7
|
+
data.tar.gz: 4d7fbe78fed79d9c2bda3be2ed6d1cc92d8b8758196cc940634aec9912db5e04156a6a50e4bdf69777176803b9ddab9a2838f84829758f6bc63b874ee01cfec6
|
data/Gemfile.lock
CHANGED
@@ -48,14 +48,10 @@ module Minitest
|
|
48
48
|
backtrace.final_project_location.number
|
49
49
|
end
|
50
50
|
|
51
|
-
def project_directory_name
|
52
|
-
Dir.pwd.split('/').last
|
53
|
-
end
|
54
|
-
|
55
51
|
private
|
56
52
|
|
57
53
|
def reduced_path(path)
|
58
|
-
|
54
|
+
path.delete_prefix(Dir.pwd)
|
59
55
|
end
|
60
56
|
end
|
61
57
|
end
|
data/lib/minitest/heat/output.rb
CHANGED
@@ -209,12 +209,12 @@ module Minitest
|
|
209
209
|
end
|
210
210
|
|
211
211
|
def backtrace_summary(issue)
|
212
|
-
|
212
|
+
backtrace_lines = issue.backtrace.project
|
213
213
|
|
214
|
-
|
215
|
-
filename = "#{
|
214
|
+
backtrace_line = backtrace_lines.first
|
215
|
+
filename = "#{backtrace_line.path.delete_prefix(Dir.pwd)}/#{backtrace_line.file}"
|
216
216
|
|
217
|
-
|
217
|
+
backtrace_lines.take(3).each do |line|
|
218
218
|
source = Minitest::Heat::Source.new(filename, line_number: line.number, max_line_count: 1)
|
219
219
|
|
220
220
|
text(:muted, " #{line.path.delete_prefix("#{Dir.pwd}/")}/")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-heat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garrett Dimon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|