appmap 0.93.2 → 0.93.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -0
- data/CHANGELOG.md +7 -0
- data/appmap.gemspec +9 -10
- data/lib/appmap/detect_enabled.rb +14 -5
- data/lib/appmap/version.rb +1 -1
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21061232aa6830335a8a3861f1f646cf30a1fc7b4817689dddcc95ff88fd9055
|
4
|
+
data.tar.gz: dfd9dd996ac35e5648f3d8b48610b3e0944e321128f533631d00a1e6bb2fff5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec3b00c06f9ecfc143c3deaa926e4740a1bd2b152dc4ab2b4d52802a0d420454281b34f10fad994c318a5b3013239337c238edfe3b4b29c2f912cb07db664eed
|
7
|
+
data.tar.gz: 546db9702fd815c56bb5da540eae30b20bbd67ade8b05b8a7c6aec1ee4e052ab2a596ba812bc2ebcf4d53ab1c3ebec35b78dc41edd870954c48ce510eeae66f9
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.93.3](https://github.com/getappmap/appmap-ruby/compare/v0.93.2...v0.93.3) (2022-10-11)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Record all tests by default ([9d52997](https://github.com/getappmap/appmap-ruby/commit/9d529974c474eaac79bf5b83bbae7a6f7909dcc6)), closes [#288](https://github.com/getappmap/appmap-ruby/issues/288)
|
7
|
+
|
1
8
|
## [0.93.2](https://github.com/getappmap/appmap-ruby/compare/v0.93.1...v0.93.2) (2022-10-07)
|
2
9
|
|
3
10
|
|
data/appmap.gemspec
CHANGED
@@ -7,26 +7,25 @@ require 'appmap/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
# ability to parameterize gem name is added intentionally,
|
9
9
|
# to support the possibility of unofficial releases, e.g. during CI tests
|
10
|
-
spec.name = (
|
10
|
+
spec.name = ENV.fetch('GEM_ALTERNATIVE_NAME', 'appmap')
|
11
11
|
spec.version = AppMap::VERSION
|
12
12
|
spec.authors = ['Kevin Gilpin']
|
13
13
|
spec.email = ['kgilpin@gmail.com']
|
14
14
|
|
15
15
|
spec.required_ruby_version = '>= 2.6.0'
|
16
16
|
|
17
|
-
spec.summary =
|
17
|
+
spec.summary = "Record the operation of a Ruby program, using the AppLand 'AppMap' format."
|
18
18
|
spec.homepage = AppMap::URL
|
19
19
|
spec.license = 'MIT'
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
-
spec.files = `git ls-files --no-deleted`.split("
|
24
|
-
").grep_v(/appmap\.json$/).grep_v(/^spec\//).grep_v(/^test\//)
|
23
|
+
spec.files = `git ls-files --no-deleted`.split("\n").grep_v(/appmap\.json$/).grep_v(%r{^(spec|test)/})
|
25
24
|
|
26
25
|
spec.bindir = 'exe'
|
27
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
27
|
|
29
|
-
spec.extensions <<
|
28
|
+
spec.extensions << 'ext/appmap/extconf.rb'
|
30
29
|
spec.require_paths = ['lib']
|
31
30
|
|
32
31
|
spec.add_dependency 'method_source'
|
@@ -39,19 +38,19 @@ Gem::Specification.new do |spec|
|
|
39
38
|
spec.add_development_dependency 'minitest', '~> 5.15'
|
40
39
|
spec.add_development_dependency 'pry-byebug'
|
41
40
|
spec.add_development_dependency 'rake', '>= 12.3.3'
|
42
|
-
spec.add_development_dependency 'rdoc'
|
43
|
-
spec.add_development_dependency 'rubocop'
|
44
41
|
spec.add_development_dependency 'rake-compiler'
|
42
|
+
spec.add_development_dependency 'rdoc'
|
43
|
+
spec.add_development_dependency 'rubocop', '~> 1.36'
|
45
44
|
|
46
45
|
# Testing
|
47
46
|
spec.add_development_dependency 'climate_control'
|
48
47
|
spec.add_development_dependency 'diffy'
|
48
|
+
spec.add_development_dependency 'hashie'
|
49
49
|
spec.add_development_dependency 'launchy'
|
50
|
+
spec.add_development_dependency 'random-port', '~> 0.5.1'
|
50
51
|
spec.add_development_dependency 'rspec'
|
51
52
|
spec.add_development_dependency 'selenium-webdriver'
|
52
|
-
spec.add_development_dependency 'webdrivers', '~> 4.0'
|
53
53
|
spec.add_development_dependency 'timecop'
|
54
|
-
spec.add_development_dependency '
|
55
|
-
spec.add_development_dependency 'random-port', '~> 0.5.1'
|
54
|
+
spec.add_development_dependency 'webdrivers', '~> 4.0'
|
56
55
|
spec.add_development_dependency 'webrick'
|
57
56
|
end
|
@@ -39,7 +39,14 @@ module AppMap
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def detect_enabled
|
42
|
-
detection_functions = %i[
|
42
|
+
detection_functions = %i[
|
43
|
+
globally_disabled?
|
44
|
+
recording_method_disabled?
|
45
|
+
enabled_by_testing?
|
46
|
+
enabled_by_app_env?
|
47
|
+
recording_method_enabled?
|
48
|
+
globally_enabled?
|
49
|
+
]
|
43
50
|
|
44
51
|
message, enabled = []
|
45
52
|
while enabled.nil? && !detection_functions.empty?
|
@@ -54,12 +61,14 @@ module AppMap
|
|
54
61
|
end
|
55
62
|
end
|
56
63
|
|
57
|
-
def
|
58
|
-
env_name, app_env = detect_app_env
|
64
|
+
def enabled_by_testing?
|
59
65
|
if %i[rspec minitest cucumber].member?(@recording_method)
|
60
|
-
|
66
|
+
[ "running tests with #{@recording_method}", true ]
|
61
67
|
end
|
68
|
+
end
|
62
69
|
|
70
|
+
def enabled_by_app_env?
|
71
|
+
env_name, app_env = detect_app_env
|
63
72
|
if @recording_method.nil?
|
64
73
|
return [ "#{env_name} is '#{app_env}'", true ] if %w[test development].member?(app_env)
|
65
74
|
end
|
@@ -104,7 +113,7 @@ module AppMap
|
|
104
113
|
|
105
114
|
def rails_env
|
106
115
|
return Rails.env if defined?(::Rails::Railtie)
|
107
|
-
|
116
|
+
|
108
117
|
return ENV['RAILS_ENV']
|
109
118
|
end
|
110
119
|
end
|
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.93.
|
4
|
+
version: 0.93.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: method_source
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 12.3.3
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rake-compiler
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rdoc
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -151,19 +151,19 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
159
|
+
version: '1.36'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
166
|
+
version: '1.36'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: climate_control
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,7 +193,7 @@ dependencies:
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: hashie
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
@@ -207,7 +207,7 @@ dependencies:
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: launchy
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
@@ -221,35 +221,35 @@ dependencies:
|
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: random-port
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- - "
|
227
|
+
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
229
|
+
version: 0.5.1
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- - "
|
234
|
+
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
236
|
+
version: 0.5.1
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
238
|
+
name: rspec
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
|
-
- - "
|
241
|
+
- - ">="
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: '
|
243
|
+
version: '0'
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
|
-
- - "
|
248
|
+
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: '
|
250
|
+
version: '0'
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
|
-
name:
|
252
|
+
name: selenium-webdriver
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
255
|
- - ">="
|
@@ -263,7 +263,7 @@ dependencies:
|
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
|
-
name:
|
266
|
+
name: timecop
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
269
|
- - ">="
|
@@ -277,19 +277,19 @@ dependencies:
|
|
277
277
|
- !ruby/object:Gem::Version
|
278
278
|
version: '0'
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
|
-
name:
|
280
|
+
name: webdrivers
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
282
282
|
requirements:
|
283
283
|
- - "~>"
|
284
284
|
- !ruby/object:Gem::Version
|
285
|
-
version: 0
|
285
|
+
version: '4.0'
|
286
286
|
type: :development
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
290
|
- - "~>"
|
291
291
|
- !ruby/object:Gem::Version
|
292
|
-
version: 0
|
292
|
+
version: '4.0'
|
293
293
|
- !ruby/object:Gem::Dependency
|
294
294
|
name: webrick
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|