appmap 0.61.1 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +6 -16
- data/ARCHITECTURE.md +68 -0
- data/CHANGELOG.md +15 -0
- data/exe/appmap-index +7 -0
- data/lib/appmap.rb +2 -0
- data/lib/appmap/agent.rb +0 -11
- data/lib/appmap/command/index.rb +25 -0
- data/lib/appmap/command/inspect.rb +0 -1
- data/lib/appmap/config.rb +8 -1
- data/lib/appmap/depends.rb +2 -0
- data/lib/appmap/depends/api.rb +84 -0
- data/lib/appmap/depends/configuration.rb +59 -0
- data/lib/appmap/depends/node_cli.rb +44 -0
- data/lib/appmap/depends/rake_tasks.rb +58 -0
- data/lib/appmap/depends/test_file_inspector.rb +89 -0
- data/lib/appmap/depends/test_runner.rb +106 -0
- data/lib/appmap/depends/util.rb +34 -0
- data/lib/appmap/version.rb +1 -1
- data/package.json +1 -1
- data/spec/depends/api_spec.rb +184 -0
- data/spec/depends/spec_helper.rb +27 -0
- data/spec/fixtures/depends/.gitignore +2 -0
- data/spec/fixtures/depends/app/controllers/api/api_keys_controller.rb +2 -0
- data/spec/fixtures/depends/app/controllers/organizations_controller.rb +2 -0
- data/spec/fixtures/depends/app/models/api_key.rb +2 -0
- data/spec/fixtures/depends/app/models/configuration.rb +2 -0
- data/spec/fixtures/depends/app/models/show.rb +2 -0
- data/spec/fixtures/depends/app/models/user.rb +2 -0
- data/spec/fixtures/depends/revoke_api_key.appmap.json +901 -0
- data/spec/fixtures/depends/spec/actual_rspec_test.rb +7 -0
- data/spec/fixtures/depends/spec/api_spec.rb +2 -0
- data/spec/fixtures/depends/spec/user_spec.rb +2 -0
- data/spec/fixtures/depends/test/actual_minitest_test.rb +5 -0
- data/spec/fixtures/depends/user_page_scenario.appmap.json +1776 -0
- data/spec/fixtures/rails5_users_app/create_app +3 -3
- data/spec/fixtures/rails6_users_app/create_app +3 -3
- data/spec/fixtures/rails6_users_app/lib/tasks/appmap.rake +11 -1
- data/test/test_helper.rb +3 -0
- data/yarn.lock +23 -9
- metadata +29 -2
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            #!/usr/bin/env bash
         | 
| 2 | 
            -
            set - | 
| 2 | 
            +
            set -ex
         | 
| 3 3 |  | 
| 4 4 | 
             
            # Just checking for a healthy container isn't enough, apparently. If
         | 
| 5 5 | 
             
            # we don't wait here, sometimes the database is inaccessible.
         | 
| @@ -27,7 +27,7 @@ set -e | |
| 27 27 | 
             
            psql -h pg -U postgres -c "create database app_development"
         | 
| 28 28 | 
             
            psql -h pg -U postgres -c "create database app_test"
         | 
| 29 29 |  | 
| 30 | 
            -
            RAILS_ENV=development  | 
| 31 | 
            -
            RAILS_ENV=test  | 
| 30 | 
            +
            env RAILS_ENV=development bundle exec rake -t db:migrate
         | 
| 31 | 
            +
            env RAILS_ENV=test bundle exec rake -t db:migrate
         | 
| 32 32 |  | 
| 33 33 | 
             
            echo "INSERT INTO users ( login ) VALUES ( 'admin' )  " | psql -h pg -U postgres app_development
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            #!/usr/bin/env bash
         | 
| 2 | 
            -
            set - | 
| 2 | 
            +
            set -ex
         | 
| 3 3 |  | 
| 4 4 | 
             
            # Just checking for a healthy container isn't enough, apparently. If
         | 
| 5 5 | 
             
            # we don't wait here, sometimes the database is inaccessible.
         | 
| @@ -27,7 +27,7 @@ set -e | |
| 27 27 | 
             
            psql -h pg -U postgres -c "create database app_development"
         | 
| 28 28 | 
             
            psql -h pg -U postgres -c "create database app_test"
         | 
| 29 29 |  | 
| 30 | 
            -
            RAILS_ENV=development  | 
| 31 | 
            -
            RAILS_ENV=test  | 
| 30 | 
            +
            env RAILS_ENV=development bundle exec rake -t db:migrate
         | 
| 31 | 
            +
            env RAILS_ENV=test bundle exec rake -t db:migrate
         | 
| 32 32 |  | 
| 33 33 | 
             
            echo "INSERT INTO users ( login ) VALUES ( 'admin' )  " | psql -h pg -U postgres app_development
         | 
| @@ -3,11 +3,21 @@ | |
| 3 3 | 
             
            namespace :appmap do
         | 
| 4 4 | 
             
              def swagger_tasks
         | 
| 5 5 | 
             
                require 'appmap/swagger'
         | 
| 6 | 
            -
             | 
| 7 6 | 
             
                AppMap::Swagger::RakeTasks.define_tasks
         | 
| 8 7 | 
             
              end
         | 
| 9 8 |  | 
| 9 | 
            +
              def depends_tasks
         | 
| 10 | 
            +
                require 'appmap/depends'
         | 
| 11 | 
            +
                AppMap::Depends::RakeTasks.define_tasks
         | 
| 12 | 
            +
              end
         | 
| 13 | 
            +
             | 
| 10 14 | 
             
              if %w[test development].member?(Rails.env)
         | 
| 11 15 | 
             
                swagger_tasks
         | 
| 16 | 
            +
                depends_tasks
         | 
| 12 17 | 
             
              end
         | 
| 13 18 | 
             
            end
         | 
| 19 | 
            +
             | 
| 20 | 
            +
            if %w[test development].member?(Rails.env)
         | 
| 21 | 
            +
              desc 'Bring AppMaps up to date with local file modifications, and updated derived data such as Swagger files'
         | 
| 22 | 
            +
              task :appmap => [ :'appmap:depends:update' ]
         | 
| 23 | 
            +
            end
         | 
    
        data/test/test_helper.rb
    CHANGED
    
    
    
        data/yarn.lock
    CHANGED
    
    | @@ -2,14 +2,15 @@ | |
| 2 2 | 
             
            # yarn lockfile v1
         | 
| 3 3 |  | 
| 4 4 |  | 
| 5 | 
            -
            "@appland/cli@^1. | 
| 6 | 
            -
              version "1. | 
| 7 | 
            -
              resolved "https://registry.yarnpkg.com/@appland/cli/-/cli-1. | 
| 8 | 
            -
              integrity sha512- | 
| 5 | 
            +
            "@appland/cli@^1.3.2":
         | 
| 6 | 
            +
              version "1.3.2"
         | 
| 7 | 
            +
              resolved "https://registry.yarnpkg.com/@appland/cli/-/cli-1.3.2.tgz#84c8b995c9dc103b7a45680c20196db0abbda48b"
         | 
| 8 | 
            +
              integrity sha512-j2lMuz1ydNDVPmHr3oXBrcsl3vFAFziZiRwArLMRCcfLVsNkSdFN7IdwVF939Xi+M0cYb5VYx0RSR6iZomC4dQ==
         | 
| 9 9 | 
             
              dependencies:
         | 
| 10 | 
            -
                "@appland/models" "1.0 | 
| 10 | 
            +
                "@appland/models" "1.3.0"
         | 
| 11 11 | 
             
                async "^3.2.0"
         | 
| 12 12 | 
             
                chokidar "^3.5.1"
         | 
| 13 | 
            +
                cli-progress "^3.9.0"
         | 
| 13 14 | 
             
                console-table-printer "^2.9.0"
         | 
| 14 15 | 
             
                crypto-js "^4.0.0"
         | 
| 15 16 | 
             
                diff "^5.0.0"
         | 
| @@ -19,10 +20,10 @@ | |
| 19 20 | 
             
                semver "^7.3.5"
         | 
| 20 21 | 
             
                yargs "^17.0.1"
         | 
| 21 22 |  | 
| 22 | 
            -
            "@appland/models@1.0 | 
| 23 | 
            -
              version "1.0 | 
| 24 | 
            -
              resolved "https://registry.yarnpkg.com/@appland/models/-/models-1.0. | 
| 25 | 
            -
              integrity sha512- | 
| 23 | 
            +
            "@appland/models@1.3.0":
         | 
| 24 | 
            +
              version "1.3.0"
         | 
| 25 | 
            +
              resolved "https://registry.yarnpkg.com/@appland/models/-/models-1.3.0.tgz#8da9cb5d0e5e89bd3ad5e354c914da133edc8307"
         | 
| 26 | 
            +
              integrity sha512-Oax4/6vJMHyh75CWZdbL3Zxojf3sLKY50tiPMWKqwqDqlP2BgjdOvCFfw5rMMeOW2afs+yptBBPeDPuiS1Kb7w==
         | 
| 26 27 | 
             
              dependencies:
         | 
| 27 28 | 
             
                "@rollup/plugin-alias" "^3.1.2"
         | 
| 28 29 | 
             
                cross-env "^7.0.3"
         | 
| @@ -113,6 +114,14 @@ chokidar@^3.5.1: | |
| 113 114 | 
             
              optionalDependencies:
         | 
| 114 115 | 
             
                fsevents "~2.3.2"
         | 
| 115 116 |  | 
| 117 | 
            +
            cli-progress@^3.9.0:
         | 
| 118 | 
            +
              version "3.9.0"
         | 
| 119 | 
            +
              resolved "https://registry.yarnpkg.com/cli-progress/-/cli-progress-3.9.0.tgz#25db83447deb812e62d05bac1af9aec5387ef3d4"
         | 
| 120 | 
            +
              integrity sha512-g7rLWfhAo/7pF+a/STFH/xPyosaL1zgADhI0OM83hl3c7S43iGvJWEAV2QuDOnQ8i6EMBj/u4+NTd0d5L+4JfA==
         | 
| 121 | 
            +
              dependencies:
         | 
| 122 | 
            +
                colors "^1.1.2"
         | 
| 123 | 
            +
                string-width "^4.2.0"
         | 
| 124 | 
            +
             | 
| 116 125 | 
             
            cliui@^7.0.2:
         | 
| 117 126 | 
             
              version "7.0.4"
         | 
| 118 127 | 
             
              resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"
         | 
| @@ -134,6 +143,11 @@ color-name@~1.1.4: | |
| 134 143 | 
             
              resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
         | 
| 135 144 | 
             
              integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
         | 
| 136 145 |  | 
| 146 | 
            +
            colors@^1.1.2:
         | 
| 147 | 
            +
              version "1.4.0"
         | 
| 148 | 
            +
              resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
         | 
| 149 | 
            +
              integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
         | 
| 150 | 
            +
             | 
| 137 151 | 
             
            concat-map@0.0.1:
         | 
| 138 152 | 
             
              version "0.0.1"
         | 
| 139 153 | 
             
              resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
         | 
    
        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. | 
| 4 | 
            +
              version: 0.62.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Kevin Gilpin
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2021-07- | 
| 11 | 
            +
            date: 2021-07-21 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activesupport
         | 
| @@ -297,6 +297,7 @@ executables: | |
| 297 297 | 
             
            - appmap-agent-init
         | 
| 298 298 | 
             
            - appmap-agent-status
         | 
| 299 299 | 
             
            - appmap-agent-validate
         | 
| 300 | 
            +
            - appmap-index
         | 
| 300 301 | 
             
            - appmap-inspect
         | 
| 301 302 | 
             
            extensions:
         | 
| 302 303 | 
             
            - ext/appmap/extconf.rb
         | 
| @@ -308,6 +309,7 @@ files: | |
| 308 309 | 
             
            - ".releaserc.yml"
         | 
| 309 310 | 
             
            - ".rubocop.yml"
         | 
| 310 311 | 
             
            - ".travis.yml"
         | 
| 312 | 
            +
            - ARCHITECTURE.md
         | 
| 311 313 | 
             
            - CHANGELOG.md
         | 
| 312 314 | 
             
            - CONTRIBUTING.md
         | 
| 313 315 | 
             
            - Dockerfile.appmap
         | 
| @@ -329,6 +331,7 @@ files: | |
| 329 331 | 
             
            - exe/appmap-agent-init
         | 
| 330 332 | 
             
            - exe/appmap-agent-status
         | 
| 331 333 | 
             
            - exe/appmap-agent-validate
         | 
| 334 | 
            +
            - exe/appmap-index
         | 
| 332 335 | 
             
            - exe/appmap-inspect
         | 
| 333 336 | 
             
            - ext/appmap/appmap.c
         | 
| 334 337 | 
             
            - ext/appmap/extconf.rb
         | 
| @@ -338,10 +341,19 @@ files: | |
| 338 341 | 
             
            - lib/appmap/command/agent_setup/init.rb
         | 
| 339 342 | 
             
            - lib/appmap/command/agent_setup/status.rb
         | 
| 340 343 | 
             
            - lib/appmap/command/agent_setup/validate.rb
         | 
| 344 | 
            +
            - lib/appmap/command/index.rb
         | 
| 341 345 | 
             
            - lib/appmap/command/inspect.rb
         | 
| 342 346 | 
             
            - lib/appmap/command_error.rb
         | 
| 343 347 | 
             
            - lib/appmap/config.rb
         | 
| 344 348 | 
             
            - lib/appmap/cucumber.rb
         | 
| 349 | 
            +
            - lib/appmap/depends.rb
         | 
| 350 | 
            +
            - lib/appmap/depends/api.rb
         | 
| 351 | 
            +
            - lib/appmap/depends/configuration.rb
         | 
| 352 | 
            +
            - lib/appmap/depends/node_cli.rb
         | 
| 353 | 
            +
            - lib/appmap/depends/rake_tasks.rb
         | 
| 354 | 
            +
            - lib/appmap/depends/test_file_inspector.rb
         | 
| 355 | 
            +
            - lib/appmap/depends/test_runner.rb
         | 
| 356 | 
            +
            - lib/appmap/depends/util.rb
         | 
| 345 357 | 
             
            - lib/appmap/event.rb
         | 
| 346 358 | 
             
            - lib/appmap/handler/function.rb
         | 
| 347 359 | 
             
            - lib/appmap/handler/net_http.rb
         | 
| @@ -377,10 +389,25 @@ files: | |
| 377 389 | 
             
            - release.sh
         | 
| 378 390 | 
             
            - spec/class_map_spec.rb
         | 
| 379 391 | 
             
            - spec/config_spec.rb
         | 
| 392 | 
            +
            - spec/depends/api_spec.rb
         | 
| 393 | 
            +
            - spec/depends/spec_helper.rb
         | 
| 380 394 | 
             
            - spec/fixtures/config/incomplete_config.yml
         | 
| 381 395 | 
             
            - spec/fixtures/config/invalid_config.yml
         | 
| 382 396 | 
             
            - spec/fixtures/config/invalid_yaml_config.yml
         | 
| 383 397 | 
             
            - spec/fixtures/config/valid_config.yml
         | 
| 398 | 
            +
            - spec/fixtures/depends/.gitignore
         | 
| 399 | 
            +
            - spec/fixtures/depends/app/controllers/api/api_keys_controller.rb
         | 
| 400 | 
            +
            - spec/fixtures/depends/app/controllers/organizations_controller.rb
         | 
| 401 | 
            +
            - spec/fixtures/depends/app/models/api_key.rb
         | 
| 402 | 
            +
            - spec/fixtures/depends/app/models/configuration.rb
         | 
| 403 | 
            +
            - spec/fixtures/depends/app/models/show.rb
         | 
| 404 | 
            +
            - spec/fixtures/depends/app/models/user.rb
         | 
| 405 | 
            +
            - spec/fixtures/depends/revoke_api_key.appmap.json
         | 
| 406 | 
            +
            - spec/fixtures/depends/spec/actual_rspec_test.rb
         | 
| 407 | 
            +
            - spec/fixtures/depends/spec/api_spec.rb
         | 
| 408 | 
            +
            - spec/fixtures/depends/spec/user_spec.rb
         | 
| 409 | 
            +
            - spec/fixtures/depends/test/actual_minitest_test.rb
         | 
| 410 | 
            +
            - spec/fixtures/depends/user_page_scenario.appmap.json
         | 
| 384 411 | 
             
            - spec/fixtures/hook/.gitignore
         | 
| 385 412 | 
             
            - spec/fixtures/hook/app/controllers/api/api_keys_controller.rb
         | 
| 386 413 | 
             
            - spec/fixtures/hook/app/controllers/organizations_controller.rb
         |