appmap 0.81.1 → 0.82.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/appmap/command/agent_setup/init.rb +3 -1
- data/lib/appmap/service/config_analyzer.rb +5 -0
- data/lib/appmap/service/guesser.rb +2 -1
- data/lib/appmap/service/validator/config_validator.rb +1 -0
- data/lib/appmap/version.rb +1 -1
- data/spec/fixtures/config/maximal_config.yml +14 -0
- data/spec/fixtures/config/valid_config.yml +1 -1
- data/spec/service/config_analyzer_spec.rb +10 -4
- data/test/agent_setup_init_test.rb +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9823b1057cc7274ca130a8cfd86983fa837e340563024dce3363aa4f79b2ef88
|
4
|
+
data.tar.gz: fdf4e2dc117b62626e4a3b844505bc8d73119ca221159362a9ba822c5e64b56a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7b445107174000b6e01c04bc75ffcb5e46457f458949a354d6a455e721f21c5592279018f0eb3ba8bf4f3f476c47db9196d14bc6a8d629e5715b02c535f31c9
|
7
|
+
data.tar.gz: cdaa148278c0c6c3289e488332e280eac5b786728bd27f514a2f5e38bc01b2eaeb19f837cf74f251987402e10fc083de77c170abf5360145fef3d6c23d0955a7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# [0.82.0](https://github.com/applandinc/appmap-ruby/compare/v0.81.1...v0.82.0) (2022-04-27)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Guess 'app' as the source path ([090f9f3](https://github.com/applandinc/appmap-ruby/commit/090f9f39616accd3bc1e9d3cc5f7991232fe5663))
|
7
|
+
|
8
|
+
|
9
|
+
### Features
|
10
|
+
|
11
|
+
* install command emits language, appmap_dir ([f780095](https://github.com/applandinc/appmap-ruby/commit/f780095269352e30637de3300dd76b2d6c051022))
|
12
|
+
|
1
13
|
## [0.81.1](https://github.com/applandinc/appmap-ruby/compare/v0.81.0...v0.81.1) (2022-04-27)
|
2
14
|
|
3
15
|
|
@@ -13,7 +13,9 @@ module AppMap
|
|
13
13
|
def perform
|
14
14
|
config = {
|
15
15
|
'name' => Service::Guesser.guess_name,
|
16
|
-
'packages' => Service::Guesser.guess_paths.map { |path| { 'path' => path } }
|
16
|
+
'packages' => Service::Guesser.guess_paths.map { |path| { 'path' => path } },
|
17
|
+
'language' => 'ruby',
|
18
|
+
'appmap_dir' => 'tmp/appmap'
|
17
19
|
}
|
18
20
|
|
19
21
|
result = {
|
@@ -3,10 +3,11 @@
|
|
3
3
|
module AppMap
|
4
4
|
module Service
|
5
5
|
class Guesser
|
6
|
-
POSSIBLE_PATHS = %w[app
|
6
|
+
POSSIBLE_PATHS = %w[app lib]
|
7
7
|
class << self
|
8
8
|
def guess_name
|
9
9
|
return Pathname.new(`git rev-parse --show-toplevel`.strip).basename.to_s if File.directory?('.git')
|
10
|
+
|
10
11
|
Dir.pwd.split('/').last
|
11
12
|
end
|
12
13
|
|
data/lib/appmap/version.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
name: appmap
|
2
|
+
packages:
|
3
|
+
- path: app/models
|
4
|
+
exclude: app/models/helpers
|
5
|
+
- gem: rack
|
6
|
+
- gem: activesupport
|
7
|
+
shallow: false
|
8
|
+
functions:
|
9
|
+
- methods:
|
10
|
+
- OpenSSL::X509::Request#sign
|
11
|
+
- OpenSSL::X509::Request#verify
|
12
|
+
label: crypto.x509
|
13
|
+
language: ruby
|
14
|
+
appmap_dir: tmp/appmap
|
@@ -37,10 +37,8 @@ describe AppMap::Service::ConfigAnalyzer do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
|
41
|
-
|
42
|
-
expect(subject.valid?).to be_falsey
|
43
|
-
end
|
40
|
+
it 'is valid' do
|
41
|
+
expect(subject.errors).to eq(['AppMap auto-configuration is currently not available for non Rails projects'])
|
44
42
|
end
|
45
43
|
|
46
44
|
describe '.is_present?' do
|
@@ -50,6 +48,14 @@ describe AppMap::Service::ConfigAnalyzer do
|
|
50
48
|
end
|
51
49
|
end
|
52
50
|
|
51
|
+
context 'with maximal valid config' do
|
52
|
+
let(:config_file) { 'spec/fixtures/config/maximal_config.yml'}
|
53
|
+
|
54
|
+
it 'is valid' do
|
55
|
+
expect(subject.errors).to eq(['AppMap auto-configuration is currently not available for non Rails projects'])
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
53
59
|
context 'with invalid YAML config' do
|
54
60
|
let(:config_file) { 'spec/fixtures/config/invalid_yaml_config.yml'}
|
55
61
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.82.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
@@ -435,6 +435,7 @@ files:
|
|
435
435
|
- spec/fixtures/config/incomplete_config.yml
|
436
436
|
- spec/fixtures/config/invalid_config.yml
|
437
437
|
- spec/fixtures/config/invalid_yaml_config.yml
|
438
|
+
- spec/fixtures/config/maximal_config.yml
|
438
439
|
- spec/fixtures/config/missing_path_or_gem.yml
|
439
440
|
- spec/fixtures/config/valid_config.yml
|
440
441
|
- spec/fixtures/database.yml
|