appmap 0.31.0 → 0.34.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.rbenv-gemsets +1 -0
  4. data/CHANGELOG.md +22 -0
  5. data/README.md +38 -4
  6. data/Rakefile +10 -3
  7. data/appmap.gemspec +5 -0
  8. data/ext/appmap/appmap.c +26 -0
  9. data/ext/appmap/extconf.rb +6 -0
  10. data/lib/appmap.rb +23 -10
  11. data/lib/appmap/class_map.rb +13 -7
  12. data/lib/appmap/config.rb +54 -30
  13. data/lib/appmap/cucumber.rb +19 -2
  14. data/lib/appmap/event.rb +25 -16
  15. data/lib/appmap/hook.rb +52 -77
  16. data/lib/appmap/hook/method.rb +103 -0
  17. data/lib/appmap/open.rb +57 -0
  18. data/lib/appmap/rails/action_handler.rb +7 -7
  19. data/lib/appmap/rails/sql_handler.rb +10 -8
  20. data/lib/appmap/rspec.rb +1 -1
  21. data/lib/appmap/trace.rb +7 -7
  22. data/lib/appmap/util.rb +19 -0
  23. data/lib/appmap/version.rb +1 -1
  24. data/spec/abstract_controller4_base_spec.rb +1 -1
  25. data/spec/abstract_controller_base_spec.rb +9 -2
  26. data/spec/fixtures/hook/instance_method.rb +4 -0
  27. data/spec/fixtures/hook/singleton_method.rb +21 -12
  28. data/spec/hook_spec.rb +140 -44
  29. data/spec/open_spec.rb +19 -0
  30. data/spec/record_sql_rails_pg_spec.rb +56 -33
  31. data/test/cli_test.rb +12 -2
  32. data/test/fixtures/openssl_recorder/Gemfile +3 -0
  33. data/test/fixtures/openssl_recorder/appmap.yml +3 -0
  34. data/{spec/fixtures/hook/openssl_sign.rb → test/fixtures/openssl_recorder/lib/openssl_cert_sign.rb} +11 -4
  35. data/test/fixtures/openssl_recorder/lib/openssl_encrypt.rb +34 -0
  36. data/test/fixtures/openssl_recorder/lib/openssl_key_sign.rb +28 -0
  37. data/test/openssl_test.rb +203 -0
  38. data/test/test_helper.rb +1 -0
  39. metadata +58 -4
@@ -2,3 +2,4 @@ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
2
2
  require 'appmap'
3
3
 
4
4
  require 'minitest/autorun'
5
+ require 'diffy'
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.31.0
4
+ version: 0.34.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-21 00:00:00.000000000 Z
11
+ date: 2020-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rack
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: bundler
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +164,20 @@ dependencies:
150
164
  - - ">="
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rake-compiler
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: climate_control
155
183
  requirement: !ruby/object:Gem::Requirement
@@ -234,16 +262,32 @@ dependencies:
234
262
  - - "~>"
235
263
  - !ruby/object:Gem::Version
236
264
  version: '4.0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: timecop
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
237
279
  description:
238
280
  email:
239
281
  - kgilpin@gmail.com
240
282
  executables:
241
283
  - appmap
242
- extensions: []
284
+ extensions:
285
+ - ext/appmap/extconf.rb
243
286
  extra_rdoc_files: []
244
287
  files:
245
288
  - ".dockerignore"
246
289
  - ".gitignore"
290
+ - ".rbenv-gemsets"
247
291
  - ".rubocop.yml"
248
292
  - ".ruby-version"
249
293
  - ".travis.yml"
@@ -263,6 +307,8 @@ files:
263
307
  - examples/mock_webapp/lib/mock_webapp/request.rb
264
308
  - examples/mock_webapp/lib/mock_webapp/user.rb
265
309
  - exe/appmap
310
+ - ext/appmap/appmap.c
311
+ - ext/appmap/extconf.rb
266
312
  - lib/appmap.rb
267
313
  - lib/appmap/algorithm/prune_class_map.rb
268
314
  - lib/appmap/algorithm/stats.rb
@@ -273,9 +319,11 @@ files:
273
319
  - lib/appmap/cucumber.rb
274
320
  - lib/appmap/event.rb
275
321
  - lib/appmap/hook.rb
322
+ - lib/appmap/hook/method.rb
276
323
  - lib/appmap/metadata.rb
277
324
  - lib/appmap/middleware/remote_recording.rb
278
325
  - lib/appmap/minitest.rb
326
+ - lib/appmap/open.rb
279
327
  - lib/appmap/rails/action_handler.rb
280
328
  - lib/appmap/rails/sql_handler.rb
281
329
  - lib/appmap/railtie.rb
@@ -311,7 +359,6 @@ files:
311
359
  - spec/fixtures/hook/constructor.rb
312
360
  - spec/fixtures/hook/exception_method.rb
313
361
  - spec/fixtures/hook/instance_method.rb
314
- - spec/fixtures/hook/openssl_sign.rb
315
362
  - spec/fixtures/hook/singleton_method.rb
316
363
  - spec/fixtures/rack_users_app/.dockerignore
317
364
  - spec/fixtures/rack_users_app/.gitignore
@@ -457,6 +504,7 @@ files:
457
504
  - spec/fixtures/rails_users_app/spec/spec_helper.rb
458
505
  - spec/fixtures/rails_users_app/users_app/.gitignore
459
506
  - spec/hook_spec.rb
507
+ - spec/open_spec.rb
460
508
  - spec/rails_spec_helper.rb
461
509
  - spec/railtie_spec.rb
462
510
  - spec/record_sql_rails4_pg_spec.rb
@@ -487,6 +535,11 @@ files:
487
535
  - test/fixtures/minitest_recorder/appmap.yml
488
536
  - test/fixtures/minitest_recorder/lib/hello.rb
489
537
  - test/fixtures/minitest_recorder/test/hello_test.rb
538
+ - test/fixtures/openssl_recorder/Gemfile
539
+ - test/fixtures/openssl_recorder/appmap.yml
540
+ - test/fixtures/openssl_recorder/lib/openssl_cert_sign.rb
541
+ - test/fixtures/openssl_recorder/lib/openssl_encrypt.rb
542
+ - test/fixtures/openssl_recorder/lib/openssl_key_sign.rb
490
543
  - test/fixtures/process_recorder/appmap.yml
491
544
  - test/fixtures/process_recorder/hello.rb
492
545
  - test/fixtures/rspec_recorder/Gemfile
@@ -496,6 +549,7 @@ files:
496
549
  - test/fixtures/rspec_recorder/spec/labeled_hello_spec.rb
497
550
  - test/fixtures/rspec_recorder/spec/plain_hello_spec.rb
498
551
  - test/minitest_test.rb
552
+ - test/openssl_test.rb
499
553
  - test/record_process_test.rb
500
554
  - test/rspec_test.rb
501
555
  - test/test_helper.rb