appmap 0.77.0 → 0.77.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: 72b52604fce9e01c3e4bc760d12f877a47b846a2f42a3e880dc3fbe3a3caf07b
4
- data.tar.gz: 50428860dafdf6f79add97f9f51787014358b6178f5206ebc915c85dced62eb7
3
+ metadata.gz: b186892e87c9138a6bd540c82dd899e5d9b4671748ba7219c7d685175509d625
4
+ data.tar.gz: 0f917bd67d06fab65b568b55c68405206fdf942cd72854a6cff845e021970d80
5
5
  SHA512:
6
- metadata.gz: ae7670741f126ccf52fc7916229f29831a4320a673db755ab9c38fa9286e970baa447134c96acab4f443a4115bd8bca8f49552a983212e328bacabd88abd8352
7
- data.tar.gz: 5e7b760bc10d31a40ae44996a9200e1ef6c3976364b4a43e5dd6b7b9b81005f57e1efac758f54b4d8274dc420cc74baebf91629ab12bc2a26b8959642feba56d
6
+ metadata.gz: afb2787068a4b7dca1c7b5226f82864c1ce8e5d32c88db7caf554f7c9d6cfbcd1d817e37f1ac691a573d36da4da53ea057c4c3d39c0e985e0969cfed9c63f7ae
7
+ data.tar.gz: 3b7f117ebe7f4b732cc81bd412bea46dd51b356db78a228561b3b9cf5c581b05d91e081b6cd699ad31d33e82fbd3d31548ccb91478c0fe7648357c947d6ef18a
data/.travis.yml CHANGED
@@ -1,10 +1,13 @@
1
1
  language: ruby
2
2
  dist: bionic
3
3
 
4
+ # NB: if you update the ruby versions here, you also need to update
5
+ # them in the Rakefile.
4
6
  rbenv:
5
7
  - 2.6
6
8
  - 2.7
7
9
  - 3.0
10
+ - 3.1
8
11
 
9
12
  addons:
10
13
  apt:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.77.1](https://github.com/applandinc/appmap-ruby/compare/v0.77.0...v0.77.1) (2022-03-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add 3.1 as a supported version ([453f6df](https://github.com/applandinc/appmap-ruby/commit/453f6dfc5de29303fc9cbcf60ce0c3499528711c))
7
+
1
8
  # [0.77.0](https://github.com/applandinc/appmap-ruby/compare/v0.76.0...v0.77.0) (2022-03-22)
2
9
 
3
10
 
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Rake::ExtensionTask.new("appmap") do |ext|
13
13
  ext.lib_dir = "lib/appmap"
14
14
  end
15
15
 
16
- RUBY_VERSIONS=%w[2.6 2.7 3.0].select do |version|
16
+ RUBY_VERSIONS=%w[2.6 2.7 3.0 3.1].select do |version|
17
17
  travis_ruby_version = ENV['TRAVIS_RUBY_VERSION']
18
18
  next true unless travis_ruby_version
19
19
 
data/appmap.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.add_dependency 'reverse_markdown'
33
33
 
34
34
  spec.add_development_dependency 'bundler', '>= 1.16'
35
- spec.add_development_dependency 'minitest', '= 5.14.4'
35
+ spec.add_development_dependency 'minitest', '~> 5.14'
36
36
  spec.add_development_dependency 'pry-byebug'
37
37
  spec.add_development_dependency 'rake', '>= 12.3.3'
38
38
  spec.add_development_dependency 'rdoc'
@@ -3,11 +3,11 @@
3
3
  module AppMap
4
4
  URL = 'https://github.com/applandinc/appmap-ruby'
5
5
 
6
- VERSION = '0.77.0'
6
+ VERSION = '0.77.1'
7
7
 
8
8
  APPMAP_FORMAT_VERSION = '1.5.1'
9
9
 
10
- SUPPORTED_RUBY_VERSIONS = %w[2.6 2.7 3.0].freeze
10
+ SUPPORTED_RUBY_VERSIONS = %w[2.6 2.7 3.0 3.1].freeze
11
11
 
12
12
  DEFAULT_APPMAP_DIR = 'tmp/appmap'.freeze
13
13
  DEFAULT_CONFIG_FILE_PATH = 'appmap.yml'.freeze
data/spec/hook_spec.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'rails_spec_helper'
@@ -1105,7 +1106,7 @@ describe 'AppMap class Hooking', docker: false do
1105
1106
  begin
1106
1107
  tz = ENV['TZ']
1107
1108
  ENV['TZ'] = 'UTC'
1108
- Timecop.freeze(Time.utc('2020-01-01')) do
1109
+ Timecop.freeze(Time.utc(2020, 01, 01)) do
1109
1110
  expect(Time).to receive(:now).at_least(3).times.and_call_original
1110
1111
  expect(InstanceMethod.new.say_the_time).to be
1111
1112
  end
@@ -0,0 +1,52 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "event": "call",
5
+ "defined_class": "Example",
6
+ "method_id": "sign",
7
+ "path": "lib/openssl_key_sign.rb",
8
+ "lineno": 10,
9
+ "static": true,
10
+ "parameters": [
11
+
12
+ ],
13
+ "receiver": {
14
+ "class": "Module"
15
+ }
16
+ },
17
+ {
18
+ "id": 2,
19
+ "event": "call",
20
+ "defined_class": "OpenSSL::PKey::PKey",
21
+ "method_id": "sign",
22
+ "path": "OpenSSL::PKey::PKey#sign",
23
+ "static": false,
24
+ "parameters": [
25
+ {
26
+ "name": "arg",
27
+ "class": "Array",
28
+ "value": "[e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855, the document]",
29
+ "kind": "rest"
30
+ }
31
+ ],
32
+ "receiver": {
33
+ "class": "OpenSSL::PKey::RSA"
34
+ }
35
+ },
36
+ {
37
+ "id": 3,
38
+ "event": "return",
39
+ "parent_id": 2,
40
+ "return_value": {
41
+ "class": "String"
42
+ }
43
+ },
44
+ {
45
+ "id": 4,
46
+ "event": "return",
47
+ "parent_id": 1,
48
+ "return_value": {
49
+ "class": "String"
50
+ }
51
+ }
52
+ ]
data/test/openssl_test.rb CHANGED
@@ -38,8 +38,14 @@ class OpenSSLTest < Minitest::Test
38
38
  event
39
39
  end
40
40
 
41
+ # Signature of OpenSSL::PKey::PKey.sign changed in 3.1
42
+ expected = if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1')
43
+ expectation('openssl_test_key_sign2-3.1.json').strip
44
+ else
45
+ expectation('openssl_test_key_sign2.json').strip
46
+ end
41
47
  diff = Diffy::Diff.new(
42
- expectation('openssl_test_key_sign2.json').strip,
48
+ expected,
43
49
  JSON.pretty_generate(sanitized_events).strip
44
50
  )
45
51
  assert_equal '', diff.to_s
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.77.0
4
+ version: 0.77.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: 2022-03-22 00:00:00.000000000 Z
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '='
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 5.14.4
89
+ version: '5.14'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '='
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 5.14.4
96
+ version: '5.14'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry-byebug
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -633,6 +633,7 @@ files:
633
633
  - test/bundle_vendor_test.rb
634
634
  - test/cucumber_test.rb
635
635
  - test/expectations/openssl_test_key_sign1.json
636
+ - test/expectations/openssl_test_key_sign2-3.1.json
636
637
  - test/expectations/openssl_test_key_sign2.json
637
638
  - test/fixtures/bundle_vendor_app/Gemfile
638
639
  - test/fixtures/bundle_vendor_app/appmap.yml