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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50826fcf91733d3bb29aad0b6c77af2516ad08aa87557c3675d4be896f7790db
4
- data.tar.gz: 4e5ee3f431b68a69de5ff6b080eeae861f3f7de6fe952ea1e71b5c30d4777bc1
3
+ metadata.gz: c70b96dcf283fa03ea3acc787a78ecf3a732a78808834ba0acf09d4e398172c6
4
+ data.tar.gz: ec83f4e0eb8908e971bc67e27696e5b37252289a50b848b85bd54e56520d3a75
5
5
  SHA512:
6
- metadata.gz: fcd01c7d1a3d70c29e33d8890e8f1ea8d7dc5cd2fbca7724618fcc76190c2d0217b89ba69e4de5003eb80147d44c15335cfdff60e67cdaf3eeaa18655fdf2b4f
7
- data.tar.gz: 32c714968c8669f3a9dceb20543a0f09856948f4b4d6b8584ad06d6347cf10f28a4d0386e4f3af1aaccb1709ec2a88fefe88da88104ffbe18dfd0fd81fb5cb95
6
+ metadata.gz: 1e19e607c94eee4cfebf6646f1802e27446330807a1dd252bbd94d823def31ed9abf59668f3d0672a6bfac9261e076338fe13d27a0dbea81e83da80ff726cf7c
7
+ data.tar.gz: 3221cdfb7c164efecbe022f89829c4e80568b3fa5a7343c2850c8e1d4387f807e5ebcba0d04345bd5641ab3ee9a32d92faba3337dfe5f4bbe5f254fd9320d4a4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v0.42.1
2
+
3
+ * Add missing require `set`.
4
+ * Check `cls.respond_to?(:singleton_class)`, since it oddly, may not.
5
+
1
6
  # v0.42.0
2
7
 
3
8
  * Remove `feature_group` and `feature` metadata from minitest and RSpec AppMaps.
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
- class_methods = cls.singleton_class.public_instance_methods(false) - instance_methods - OBJECT_STATIC_METHODS
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
- class_methods.each(&hook.(cls.singleton_class))
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
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'appmap/util'
4
+ require 'set'
4
5
 
5
6
  module AppMap
6
7
  # Integration of AppMap with RSpec. When enabled with APPMAP=true, the AppMap tracer will
@@ -3,7 +3,7 @@
3
3
  module AppMap
4
4
  URL = 'https://github.com/applandinc/appmap-ruby'
5
5
 
6
- VERSION = '0.42.0'
6
+ VERSION = '0.42.1'
7
7
 
8
8
  APPMAP_FORMAT_VERSION = '1.4'
9
9
  end
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.0
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-25 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport