sus 0.23.0 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9e2b0cb3a0b9f4a5c3f32729a13f5f29935108f5a3606afe3a6189d1c58e2ed
4
- data.tar.gz: a7a637715ff6a75f6bb6d1bd1bf2e536c1211c5eb304c7ea045797d68ab9d90b
3
+ metadata.gz: a51f0e1c8e4e567fdaad568ceb90509c9d22cde5025111108bff22b7ec78c950
4
+ data.tar.gz: abc2b6d94d889d9ac77e03482d4227300bfc4aaa6e4bb939bc6189da8d7903d8
5
5
  SHA512:
6
- metadata.gz: a7ba7d839d58bd10e22cb331685f5c5d3428227f36151d19a0c40a80362f5b7e71d3a063d80258df5bb6e7cb3f21755e43ebfca7c455541a73deb83172a35590
7
- data.tar.gz: 3c77ddc24a627492904209fe84b4b4ca93c03c368b63607306fe4d9a58c8e41b99dabf580579dbbac31e61afcaec8f5cc91f834aa26bc4f15e80bf5ba08e92a5
6
+ metadata.gz: ffb608732ad61832453bc3636eb637d80cfff8a99179ecb85ca558d6c57fa65b1e145e6665f06d7fb97843adfbb7cbd36045627ca8d90e904d6f236f1cec6ad8
7
+ data.tar.gz: 670b5dfaf1450209395a0913bdd19ec07861eccdca455932d09839b1a70fd7787d9001fe57976d21e09faa2e284d9e4a1d747a6e59c24c8a4c9926c32fe8bf75
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/sus/file.rb CHANGED
@@ -51,7 +51,7 @@ module Sus
51
51
  end
52
52
 
53
53
  def print(output)
54
- output.write("file ", :path, self.identity)
54
+ output.write("file ", :path, self.identity, :reset)
55
55
  end
56
56
  end
57
57
 
@@ -15,7 +15,21 @@ module Sus
15
15
  def self.for(exception, identity = nil)
16
16
  # I've disabled the root filter here, because partial backtraces are not very useful.
17
17
  # We might want to do something to improve presentation of the backtrace based on the root instead.
18
- self.new(exception.backtrace_locations, identity&.path)
18
+ self.new(extract_stack(exception), identity&.path)
19
+ end
20
+
21
+ Location = Struct.new(:path, :lineno, :label)
22
+
23
+ def self.extract_stack(exception)
24
+ if stack = exception.backtrace_locations
25
+ return stack
26
+ elsif stack = exception.backtrace
27
+ return stack.map do |line|
28
+ Location.new(*line.split(":", 3))
29
+ end
30
+ else
31
+ []
32
+ end
19
33
  end
20
34
 
21
35
  def initialize(stack, root = nil, limit = nil)
data/lib/sus/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2021-2023, by Samuel Williams.
5
5
 
6
6
  module Sus
7
- VERSION = "0.23.0"
7
+ VERSION = "0.24.1"
8
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2023-08-22 00:00:00.000000000 Z
41
+ date: 2023-12-08 00:00:00.000000000 Z
42
42
  dependencies: []
43
43
  description:
44
44
  email:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.4.7
124
+ rubygems_version: 3.4.22
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: A fast and scalable test runner.
metadata.gz.sig CHANGED
Binary file