appmap 0.59.1 → 0.59.2
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/config-schema.yml +57 -0
- data/lib/appmap/event.rb +1 -1
- data/lib/appmap/util.rb +9 -0
- data/lib/appmap/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93b0a392f69c9de659a086819d29b2b4c94c4b704d04ac2d57f99cafe56f4f80
|
|
4
|
+
data.tar.gz: 4f42ab168f8bb4f1c8500f6f98682d7c048119125ba34aa0ddd80f9a521c7d02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95538abb1fc5ba05793bba2efc1731a823c324515956aa7b388b04d8b43953f3885d45ca1937d684c0b6e2415fc7fb6d1f591da02ffa0dbc06883c7298d3eb0b
|
|
7
|
+
data.tar.gz: 48d7105b1ced68d2ddd9229b2811b0d157ca60b879b8d781e014cf02ca512147c33a95b4a52e49216e5fbf47b3fc7fafa19fa25d00a57506872ab1a3ef71651f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.59.2](https://github.com/applandinc/appmap-ruby/compare/v0.59.1...v0.59.2) (2021-07-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Remove improper reliance on Rails 'try' ([c6b5b16](https://github.com/applandinc/appmap-ruby/commit/c6b5b16a6963988e20bab5f88b99401e25691f3c))
|
|
7
|
+
|
|
1
8
|
## [0.59.1](https://github.com/applandinc/appmap-ruby/compare/v0.59.0...v0.59.1) (2021-07-08)
|
|
2
9
|
|
|
3
10
|
|
data/config-schema.yml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
type: object
|
|
2
|
+
additionalProperties: false
|
|
3
|
+
required:
|
|
4
|
+
- name
|
|
5
|
+
properties:
|
|
6
|
+
name:
|
|
7
|
+
type: string
|
|
8
|
+
packages:
|
|
9
|
+
type: array
|
|
10
|
+
items:
|
|
11
|
+
anyOf:
|
|
12
|
+
- type: object
|
|
13
|
+
additionalProperties: false
|
|
14
|
+
required:
|
|
15
|
+
- path
|
|
16
|
+
properties:
|
|
17
|
+
path:
|
|
18
|
+
type: string
|
|
19
|
+
shallow:
|
|
20
|
+
type: boolean
|
|
21
|
+
exclude:
|
|
22
|
+
type: array
|
|
23
|
+
items:
|
|
24
|
+
type: string
|
|
25
|
+
- type: object
|
|
26
|
+
additionalProperties: false
|
|
27
|
+
required:
|
|
28
|
+
- gem
|
|
29
|
+
properties:
|
|
30
|
+
gem:
|
|
31
|
+
type: string
|
|
32
|
+
shallow:
|
|
33
|
+
type: boolean
|
|
34
|
+
exclude:
|
|
35
|
+
type: array
|
|
36
|
+
items:
|
|
37
|
+
type: string
|
|
38
|
+
exclude:
|
|
39
|
+
type: array
|
|
40
|
+
items:
|
|
41
|
+
type: string
|
|
42
|
+
functions:
|
|
43
|
+
type: array
|
|
44
|
+
items:
|
|
45
|
+
type: object
|
|
46
|
+
additionalProperties: false
|
|
47
|
+
properties:
|
|
48
|
+
package:
|
|
49
|
+
type: string
|
|
50
|
+
class:
|
|
51
|
+
type: string
|
|
52
|
+
function:
|
|
53
|
+
type: string
|
|
54
|
+
labels:
|
|
55
|
+
type: array
|
|
56
|
+
items:
|
|
57
|
+
type: string
|
data/lib/appmap/event.rb
CHANGED
|
@@ -248,7 +248,7 @@ module AppMap
|
|
|
248
248
|
next_exception = exception
|
|
249
249
|
exceptions = []
|
|
250
250
|
while next_exception
|
|
251
|
-
exception_backtrace = next_exception.backtrace_locations
|
|
251
|
+
exception_backtrace = AppMap::Util.try(next_exception.backtrace_locations, :[], 0)
|
|
252
252
|
exceptions << {
|
|
253
253
|
class: best_class_name(next_exception),
|
|
254
254
|
message: display_string(next_exception.message),
|
data/lib/appmap/util.rb
CHANGED
|
@@ -183,6 +183,15 @@ module AppMap
|
|
|
183
183
|
false
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
+
# https://github.com/rails/rails/blob/8cd143900978902ed9bbba10b34099a3140de5c6/activesupport/lib/active_support/core_ext/object/try.rb
|
|
187
|
+
def try(obj, *methods)
|
|
188
|
+
return nil if methods.empty?
|
|
189
|
+
|
|
190
|
+
return nil unless obj.respond_to?(methods.first)
|
|
191
|
+
|
|
192
|
+
obj.public_send(*methods)
|
|
193
|
+
end
|
|
194
|
+
|
|
186
195
|
def startup_message(msg)
|
|
187
196
|
if defined?(::Rails) && defined?(::Rails.logger) && ::Rails.logger
|
|
188
197
|
::Rails.logger.info msg
|
data/lib/appmap/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: appmap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.59.
|
|
4
|
+
version: 0.59.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Gilpin
|
|
@@ -317,6 +317,7 @@ files:
|
|
|
317
317
|
- Rakefile
|
|
318
318
|
- appmap.gemspec
|
|
319
319
|
- appmap.yml
|
|
320
|
+
- config-schema.yml
|
|
320
321
|
- examples/install.rb
|
|
321
322
|
- examples/mock_webapp/Gemfile
|
|
322
323
|
- examples/mock_webapp/appmap.yml
|