appmap 0.93.2 → 0.93.4

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: 44d648e81f7717cbf027f99687c3c69fb558f19540f5882d7098c163ff2968b1
4
- data.tar.gz: '063487dc2a84f0a0632baadef8133ec8a94f2fad36d0d438f7fa015b6fafec14'
3
+ metadata.gz: 61b703d48969c96f7967495b9719c47c2a391d8cbe612581480152614ff60cc5
4
+ data.tar.gz: 5fb1da8f5574f3d96db8216fdcc4710e83c2d1a72a66f9b942be9eeba7b2ea95
5
5
  SHA512:
6
- metadata.gz: d3c6cb7ee444b886b97fb5bbac3825b8aa76efa10f09ab8985e44b1cf421231bf783202d47db166c269a0f80a524d674df9d09a3b2004daf79bb21f31faad528
7
- data.tar.gz: 7ce3d2ae17406c01360a4cc4319e00b2f940c8a110d96d9bcdcb3418af93d65efb2bbd4fe94c059eb92896044da38a1d6f03293ad44c4a55892bcb77ccabba2e
6
+ metadata.gz: d040f5fda6f71885a66090e1f14e7d1c0bc815ae4bc59b2c99ef47cbe982b4143ba8af8f4eeb2d6ad032c324b66ee4a61731723b9a27b33a712f55cac7e66d37
7
+ data.tar.gz: e915ca689cece094856ad434241c5107dc78914967ab0b355586c512c36397a1055634e411145b604b9581b19a89afa8e7cea63e68741c35e03afe20ba1c627b
data/.rubocop.yml CHANGED
@@ -1,6 +1,13 @@
1
1
  AllCops:
2
2
  NewCops: enable
3
3
 
4
+ # The gem is automatically pushed by CI
5
+ Gemspec/RequireMFA:
6
+ Enabled: false
7
+
8
+ Layout/ArrayAlignment:
9
+ EnforcedStyle: with_fixed_indentation
10
+
4
11
  Layout/CaseIndentation:
5
12
  EnforcedStyle: end
6
13
 
data/.travis.yml CHANGED
@@ -10,15 +10,11 @@ rbenv:
10
10
  - 3.0
11
11
  - 3.1
12
12
 
13
+ node_js: lts/*
14
+
13
15
  services:
14
16
  - postgresql
15
17
 
16
- before_install:
17
- - |
18
- nvm install --lts \
19
- && nvm use --lts \
20
- && npm i -g yarn
21
-
22
18
  before_deploy:
23
19
  - |
24
20
  npm i -g \
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [0.93.4](https://github.com/getappmap/appmap-ruby/compare/v0.93.3...v0.93.4) (2022-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Use correct signature for Init_appmap() in appmap.c ([1157085](https://github.com/getappmap/appmap-ruby/commit/11570859a1fedd2e1cc7004d291ae8fecd23714a))
7
+
8
+ ## [0.93.3](https://github.com/getappmap/appmap-ruby/compare/v0.93.2...v0.93.3) (2022-10-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Record all tests by default ([9d52997](https://github.com/getappmap/appmap-ruby/commit/9d529974c474eaac79bf5b83bbae7a6f7909dcc6)), closes [#288](https://github.com/getappmap/appmap-ruby/issues/288)
14
+
1
15
  ## [0.93.2](https://github.com/getappmap/appmap-ruby/compare/v0.93.1...v0.93.2) (2022-10-07)
2
16
 
3
17
 
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 = (ENV['GEM_ALTERNATIVE_NAME'].to_s.empty? ? 'appmap' : ENV["GEM_ALTERNATIVE_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 = %q{Record the operation of a Ruby program, using the AppLand 'AppMap' format.}
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 << "ext/appmap/extconf.rb"
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 'hashie'
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
data/ext/appmap/appmap.c CHANGED
@@ -101,7 +101,7 @@ am_previous_bindings(VALUE self, VALUE level)
101
101
  return rb_debug_inspector_open(bindings_callback, (void *) level);
102
102
  }
103
103
 
104
- void Init_appmap() {
104
+ void Init_appmap(void) {
105
105
  VALUE appmap = rb_define_module("AppMap");
106
106
  am_AppMapHook = rb_define_class_under(appmap, "Hook", rb_cObject);
107
107
 
@@ -39,7 +39,14 @@ module AppMap
39
39
  end
40
40
 
41
41
  def detect_enabled
42
- detection_functions = %i[globally_disabled? recording_method_disabled? enabled_by_app_env? recording_method_enabled? globally_enabled?]
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 enabled_by_app_env?
58
- env_name, app_env = detect_app_env
64
+ def enabled_by_testing?
59
65
  if %i[rspec minitest cucumber].member?(@recording_method)
60
- return [ "#{env_name} is '#{app_env}'", true ] if app_env == 'test'
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
@@ -3,7 +3,7 @@
3
3
  module AppMap
4
4
  URL = 'https://github.com/applandinc/appmap-ruby'
5
5
 
6
- VERSION = '0.93.2'
6
+ VERSION = '0.93.4'
7
7
 
8
8
  APPMAP_FORMAT_VERSION = '1.9.0'
9
9
 
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.2
4
+ version: 0.93.4
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-07 00:00:00.000000000 Z
11
+ date: 2022-11-04 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: rdoc
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: rubocop
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: rake-compiler
154
+ name: rubocop
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '0'
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: '0'
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: launchy
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: rspec
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: selenium-webdriver
224
+ name: random-port
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ">="
227
+ - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '0'
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: '0'
236
+ version: 0.5.1
237
237
  - !ruby/object:Gem::Dependency
238
- name: webdrivers
238
+ name: rspec
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - "~>"
241
+ - - ">="
242
242
  - !ruby/object:Gem::Version
243
- version: '4.0'
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: '4.0'
250
+ version: '0'
251
251
  - !ruby/object:Gem::Dependency
252
- name: timecop
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: hashie
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: random-port
280
+ name: webdrivers
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
283
  - - "~>"
284
284
  - !ruby/object:Gem::Version
285
- version: 0.5.1
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.5.1
292
+ version: '4.0'
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: webrick
295
295
  requirement: !ruby/object:Gem::Requirement