sus 0.23.0 → 0.24.0

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: d9e2b0cb3a0b9f4a5c3f32729a13f5f29935108f5a3606afe3a6189d1c58e2ed
4
- data.tar.gz: a7a637715ff6a75f6bb6d1bd1bf2e536c1211c5eb304c7ea045797d68ab9d90b
3
+ metadata.gz: 7c2d41bca4906fd41229694de7d745d2801ab00eb528c4da69d7c8d7b3dfeb96
4
+ data.tar.gz: 9bcc82bf379b63ea46c8c15fcbc9528a391cc3cec60a960f2cc884e88ece4c20
5
5
  SHA512:
6
- metadata.gz: a7ba7d839d58bd10e22cb331685f5c5d3428227f36151d19a0c40a80362f5b7e71d3a063d80258df5bb6e7cb3f21755e43ebfca7c455541a73deb83172a35590
7
- data.tar.gz: 3c77ddc24a627492904209fe84b4b4ca93c03c368b63607306fe4d9a58c8e41b99dabf580579dbbac31e61afcaec8f5cc91f834aa26bc4f15e80bf5ba08e92a5
6
+ metadata.gz: 78f77fb2e30226a9c73714f46d79e3652fbd18826b54fef2a267c04eb31ecdb931372bc60a96f64711e5486e91ebc8b56a00fc292e554c2e7e3f3916d2a16037
7
+ data.tar.gz: 99626e222b997286b22a6a9ecf00960d86f5d991ee9b8f841720868b396234fa17319a31ede8990bdc381b398020927ac32ecc1769ce21c7fc9b78aa1586f456
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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.0"
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.0
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-11-30 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.10
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: A fast and scalable test runner.
metadata.gz.sig CHANGED
Binary file