appmap 0.42.0 → 0.42.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/appmap/hook.rb +17 -2
- data/lib/appmap/rspec.rb +1 -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: c70b96dcf283fa03ea3acc787a78ecf3a732a78808834ba0acf09d4e398172c6
|
4
|
+
data.tar.gz: ec83f4e0eb8908e971bc67e27696e5b37252289a50b848b85bd54e56520d3a75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e19e607c94eee4cfebf6646f1802e27446330807a1dd252bbd94d823def31ed9abf59668f3d0672a6bfac9261e076338fe13d27a0dbea81e83da80ff726cf7c
|
7
|
+
data.tar.gz: 3221cdfb7c164efecbe022f89829c4e80568b3fa5a7343c2850c8e1d4387f807e5ebcba0d04345bd5641ab3ee9a32d92faba3337dfe5f4bbe5f254fd9320d4a4
|
data/CHANGELOG.md
CHANGED
data/lib/appmap/hook.rb
CHANGED
@@ -46,7 +46,16 @@ module AppMap
|
|
46
46
|
cls = trace_point.self
|
47
47
|
|
48
48
|
instance_methods = cls.public_instance_methods(false) - OBJECT_INSTANCE_METHODS
|
49
|
-
|
49
|
+
# NoMethodError: private method `singleton_class' called for Rack::MiniProfiler:Class
|
50
|
+
class_methods = begin
|
51
|
+
if cls.respond_to?(:singleton_class)
|
52
|
+
cls.singleton_class.public_instance_methods(false) - instance_methods - OBJECT_STATIC_METHODS
|
53
|
+
else
|
54
|
+
[]
|
55
|
+
end
|
56
|
+
rescue NameError
|
57
|
+
[]
|
58
|
+
end
|
50
59
|
|
51
60
|
hook = lambda do |hook_cls|
|
52
61
|
lambda do |method_id|
|
@@ -80,7 +89,13 @@ module AppMap
|
|
80
89
|
end
|
81
90
|
|
82
91
|
instance_methods.each(&hook.(cls))
|
83
|
-
|
92
|
+
# NoMethodError: private method `singleton_class' called for Rack::MiniProfiler:Class
|
93
|
+
begin
|
94
|
+
class_methods.each(&hook.(cls.singleton_class)) if cls.respond_to?(:singleton_class)
|
95
|
+
rescue NameError
|
96
|
+
# NameError:
|
97
|
+
# uninitialized constant Faraday::Connection
|
98
|
+
end
|
84
99
|
end
|
85
100
|
|
86
101
|
tp.enable(&block)
|
data/lib/appmap/rspec.rb
CHANGED
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.42.
|
4
|
+
version: 0.42.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: 2021-03-
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|