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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 949b2b45d4b42493bc74bc98571eefbbde523ef18a70077cc32bf944e30cc172
4
- data.tar.gz: e716f191d2053ed286ed8e342e0578fe9bc97ad818d4ca89dbf199003d6b64d0
3
+ metadata.gz: 01c04bc05d2d9aa703e552fcb104c8e7124f78ced8b65cda3f40810818877108
4
+ data.tar.gz: f9326507abcea6e99582a1ed4436b728efbab9f6121b254a17977f41db1f3152
5
5
  SHA512:
6
- metadata.gz: f662e4944204010df9e2f29ab49959b978f7b0c54e5beb9ece51e80bf8830d7c6cf988f5834dbfc3b44037f6303ac5a82817132810a508ff1fa7064e19800a74
7
- data.tar.gz: 292ecef2bd8473f74937356d8c68171801d4eb50e67849d76160fb24c9ee61838183c3c385240425ad1587c4cedf7375e292f806d593706915175cd489702520
6
+ metadata.gz: df96aed9406de7bbe7905c1e994f418dad556b06651b6bf173977a771ca03f29aad5a91696b6f27bbc1dfdc854e7fbd69636294187214df152ba68d902525f81
7
+ data.tar.gz: 4d7fbe78fed79d9c2bda3be2ed6d1cc92d8b8758196cc940634aec9912db5e04156a6a50e4bdf69777176803b9ddab9a2838f84829758f6bc63b874ee01cfec6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minitest-heat (0.0.1)
4
+ minitest-heat (0.0.2)
5
5
  minitest
6
6
 
7
7
  GEM
@@ -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
- "/#{path.split("/#{project_directory_name}/").last}"
54
+ path.delete_prefix(Dir.pwd)
59
55
  end
60
56
  end
61
57
  end
@@ -209,12 +209,12 @@ module Minitest
209
209
  end
210
210
 
211
211
  def backtrace_summary(issue)
212
- lines = issue.backtrace.project
212
+ backtrace_lines = issue.backtrace.project
213
213
 
214
- line = lines.first
215
- filename = "#{line.path.delete_prefix(Dir.pwd)}/#{line.file}"
214
+ backtrace_line = backtrace_lines.first
215
+ filename = "#{backtrace_line.path.delete_prefix(Dir.pwd)}/#{backtrace_line.file}"
216
216
 
217
- lines.take(3).each do |line|
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}/")}/")
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Heat
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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-26 00:00:00.000000000 Z
11
+ date: 2021-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest