appmap 0.99.0 → 0.99.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/appmap/minitest.rb +1 -8
- data/lib/appmap/rspec.rb +1 -8
- data/lib/appmap/util.rb +9 -0
- data/lib/appmap/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: ff070f04eeeb2d79a08d4f93462a84e277dfad345bffd1d6b87bd063a63b8f00
|
4
|
+
data.tar.gz: 27e47f4e5a85fce938cbd259bf76cce952490851cfee98315fddf6d6b1c798d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97db1ff69373241c3e2ca4633fcca4c800d72b60734bde3b32aae2d3765e86f484e490a4148b98c9e90c40b3fa68cc9b734e56ce9175d1e26ec9bfc767b9707e
|
7
|
+
data.tar.gz: 074b036daecfc348fbe13510ab7c6cca46fe8d2d630bd81e28808ef4f05e15b47dedda31e9d3a2e423f426ba0980ea04e50439b3533b8b7690c9047be199a1a9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.99.1](https://github.com/getappmap/appmap-ruby/compare/v0.99.0...v0.99.1) (2023-04-24)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* backtrace_locations may be nil ([7f3890a](https://github.com/getappmap/appmap-ruby/commit/7f3890a00d5f4425fac273c72e5576cf7752eeaf)), closes [#324](https://github.com/getappmap/appmap-ruby/issues/324)
|
7
|
+
|
1
8
|
# [0.99.0](https://github.com/getappmap/appmap-ruby/compare/v0.98.1...v0.99.0) (2023-04-13)
|
2
9
|
|
3
10
|
|
data/lib/appmap/minitest.rb
CHANGED
@@ -38,14 +38,7 @@ module AppMap
|
|
38
38
|
if failed
|
39
39
|
failure_exception = failures.first || exception
|
40
40
|
warn "Failure exception: #{failure_exception}" if AppMap::Minitest::LOG
|
41
|
-
|
42
|
-
first_location = failure_exception.backtrace_locations.find { |location| !Pathname.new(Util.normalize_path(location.absolute_path)).absolute? }
|
43
|
-
failure_location = [ Util.normalize_path(first_location.path), first_location.lineno ].join(':') if first_location
|
44
|
-
|
45
|
-
test_failure = {
|
46
|
-
message: failure_exception.message,
|
47
|
-
location: failure_location,
|
48
|
-
}
|
41
|
+
test_failure = Util.extract_test_failure(failure_exception)
|
49
42
|
end
|
50
43
|
|
51
44
|
events = []
|
data/lib/appmap/rspec.rb
CHANGED
@@ -104,14 +104,7 @@ module AppMap
|
|
104
104
|
if failed
|
105
105
|
failure_exception = failure || exception
|
106
106
|
warn "Failure exception: #{failure_exception}" if AppMap::RSpec::LOG
|
107
|
-
|
108
|
-
first_location = failure_exception.backtrace_locations.find { |location| !Pathname.new(Util.normalize_path(location.absolute_path)).absolute? }
|
109
|
-
failure_location = [ Util.normalize_path(first_location.path), first_location.lineno ].join(':') if first_location
|
110
|
-
|
111
|
-
test_failure = {
|
112
|
-
message: failure_exception.message.strip,
|
113
|
-
location: failure_location,
|
114
|
-
}
|
107
|
+
test_failure = Util.extract_test_failure(failure_exception)
|
115
108
|
end
|
116
109
|
|
117
110
|
events = []
|
data/lib/appmap/util.rb
CHANGED
@@ -157,6 +157,15 @@ module AppMap
|
|
157
157
|
}
|
158
158
|
end
|
159
159
|
|
160
|
+
def extract_test_failure(exception)
|
161
|
+
return unless exception
|
162
|
+
|
163
|
+
{ message: exception.message }.tap do |test_failure|
|
164
|
+
first_location = exception.backtrace_locations&.find { |location| !Pathname.new(normalize_path(location.absolute_path)).absolute? }
|
165
|
+
test_failure[:location] = [ normalize_path(first_location.path), first_location.lineno ].join(':') if first_location
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
160
169
|
# Convert a Rails-style path from /org/:org_id(.:format)
|
161
170
|
# to Swagger-style paths like /org/{org_id}
|
162
171
|
def swaggerize_path(path)
|
data/lib/appmap/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.99.
|
4
|
+
version: 0.99.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: method_source
|