appmap 0.77.2 → 0.77.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Rakefile +29 -3
- data/lib/appmap/config.rb +9 -1
- data/lib/appmap/version.rb +1 -1
- data/spec/fixtures/rails7_users_app/.dockerignore +1 -0
- data/spec/fixtures/rails7_users_app/.gitattributes +7 -0
- data/spec/fixtures/rails7_users_app/.gitignore +31 -0
- data/spec/fixtures/rails7_users_app/.rspec +1 -0
- data/spec/fixtures/rails7_users_app/.ruby-version +1 -0
- data/spec/fixtures/rails7_users_app/Dockerfile +30 -0
- data/spec/fixtures/rails7_users_app/Dockerfile.pg +3 -0
- data/spec/fixtures/rails7_users_app/Gemfile +99 -0
- data/spec/fixtures/rails7_users_app/README.md +24 -0
- data/spec/fixtures/rails7_users_app/Rakefile +6 -0
- data/spec/fixtures/rails7_users_app/app/assets/config/manifest.js +4 -0
- data/spec/fixtures/rails7_users_app/app/assets/images/.keep +0 -0
- data/spec/fixtures/rails7_users_app/app/assets/stylesheets/application.css +15 -0
- data/spec/fixtures/rails7_users_app/app/channels/application_cable/channel.rb +4 -0
- data/spec/fixtures/rails7_users_app/app/channels/application_cable/connection.rb +4 -0
- data/spec/fixtures/rails7_users_app/app/controllers/application_controller.rb +2 -0
- data/spec/fixtures/rails7_users_app/app/controllers/concerns/.keep +0 -0
- data/spec/fixtures/rails7_users_app/app/helpers/application_helper.rb +2 -0
- data/spec/fixtures/rails7_users_app/app/javascript/application.js +3 -0
- data/spec/fixtures/rails7_users_app/app/javascript/controllers/application.js +9 -0
- data/spec/fixtures/rails7_users_app/app/javascript/controllers/hello_controller.js +7 -0
- data/spec/fixtures/rails7_users_app/app/javascript/controllers/index.js +11 -0
- data/spec/fixtures/rails7_users_app/app/jobs/application_job.rb +7 -0
- data/spec/fixtures/rails7_users_app/app/mailers/application_mailer.rb +4 -0
- data/spec/fixtures/rails7_users_app/app/models/application_record.rb +3 -0
- data/spec/fixtures/rails7_users_app/app/models/concerns/.keep +0 -0
- data/spec/fixtures/rails7_users_app/app/models/instance.rb +7 -0
- data/spec/fixtures/rails7_users_app/app/models/instructor.rb +7 -0
- data/spec/fixtures/rails7_users_app/app/views/layouts/application.html.erb +16 -0
- data/spec/fixtures/rails7_users_app/app/views/layouts/mailer.html.erb +13 -0
- data/spec/fixtures/rails7_users_app/app/views/layouts/mailer.text.erb +1 -0
- data/spec/fixtures/rails7_users_app/appmap.yml +3 -0
- data/spec/fixtures/rails7_users_app/bin/bundle +114 -0
- data/spec/fixtures/rails7_users_app/bin/importmap +4 -0
- data/spec/fixtures/rails7_users_app/bin/rails +4 -0
- data/spec/fixtures/rails7_users_app/bin/rake +4 -0
- data/spec/fixtures/rails7_users_app/bin/setup +33 -0
- data/spec/fixtures/rails7_users_app/config/application.rb +22 -0
- data/spec/fixtures/rails7_users_app/config/boot.rb +4 -0
- data/spec/fixtures/rails7_users_app/config/cable.yml +10 -0
- data/spec/fixtures/rails7_users_app/config/credentials.yml.enc +1 -0
- data/spec/fixtures/rails7_users_app/config/database.yml +86 -0
- data/spec/fixtures/rails7_users_app/config/environment.rb +5 -0
- data/spec/fixtures/rails7_users_app/config/environments/development.rb +70 -0
- data/spec/fixtures/rails7_users_app/config/environments/production.rb +93 -0
- data/spec/fixtures/rails7_users_app/config/environments/test.rb +60 -0
- data/spec/fixtures/rails7_users_app/config/importmap.rb +7 -0
- data/spec/fixtures/rails7_users_app/config/initializers/assets.rb +12 -0
- data/spec/fixtures/rails7_users_app/config/initializers/content_security_policy.rb +26 -0
- data/spec/fixtures/rails7_users_app/config/initializers/filter_parameter_logging.rb +8 -0
- data/spec/fixtures/rails7_users_app/config/initializers/inflections.rb +16 -0
- data/spec/fixtures/rails7_users_app/config/initializers/permissions_policy.rb +11 -0
- data/spec/fixtures/rails7_users_app/config/locales/en.yml +33 -0
- data/spec/fixtures/rails7_users_app/config/puma.rb +43 -0
- data/spec/fixtures/rails7_users_app/config/routes.rb +6 -0
- data/spec/fixtures/rails7_users_app/config/storage.yml +34 -0
- data/spec/fixtures/rails7_users_app/config.ru +6 -0
- data/spec/fixtures/rails7_users_app/create_app +31 -0
- data/spec/fixtures/rails7_users_app/db/migrate/20220328093141_create_instances.rb +8 -0
- data/spec/fixtures/rails7_users_app/db/migrate/20220328093154_create_instructors.rb +8 -0
- data/spec/fixtures/rails7_users_app/db/schema.rb +27 -0
- data/spec/fixtures/rails7_users_app/db/seeds.rb +7 -0
- data/spec/fixtures/rails7_users_app/docker-compose.yml +31 -0
- data/spec/fixtures/rails7_users_app/lib/assets/.keep +0 -0
- data/spec/fixtures/rails7_users_app/lib/tasks/.keep +0 -0
- data/spec/fixtures/rails7_users_app/log/.keep +0 -0
- data/spec/fixtures/rails7_users_app/public/404.html +67 -0
- data/spec/fixtures/rails7_users_app/public/422.html +67 -0
- data/spec/fixtures/rails7_users_app/public/500.html +66 -0
- data/spec/fixtures/rails7_users_app/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/fixtures/rails7_users_app/public/apple-touch-icon.png +0 -0
- data/spec/fixtures/rails7_users_app/public/favicon.ico +0 -0
- data/spec/fixtures/rails7_users_app/public/robots.txt +1 -0
- data/spec/fixtures/rails7_users_app/storage/.keep +0 -0
- data/spec/fixtures/rails7_users_app/test/application_system_test_case.rb +5 -0
- data/spec/fixtures/rails7_users_app/test/channels/application_cable/connection_test.rb +11 -0
- data/spec/fixtures/rails7_users_app/test/controllers/.keep +0 -0
- data/spec/fixtures/rails7_users_app/test/fixtures/files/.keep +0 -0
- data/spec/fixtures/rails7_users_app/test/fixtures/instances.yml +11 -0
- data/spec/fixtures/rails7_users_app/test/fixtures/instructors.yml +11 -0
- data/spec/fixtures/rails7_users_app/test/helpers/.keep +0 -0
- data/spec/fixtures/rails7_users_app/test/integration/.keep +0 -0
- data/spec/fixtures/rails7_users_app/test/mailers/.keep +0 -0
- data/spec/fixtures/rails7_users_app/test/models/.keep +0 -0
- data/spec/fixtures/rails7_users_app/test/models/instance_test.rb +6 -0
- data/spec/fixtures/rails7_users_app/test/models/instructor_test.rb +7 -0
- data/spec/fixtures/rails7_users_app/test/system/.keep +0 -0
- data/spec/fixtures/rails7_users_app/test/test_helper.rb +13 -0
- data/spec/rails_recording_spec.rb +6 -4
- data/spec/rails_spec_helper.rb +7 -0
- data/spec/rails_test_spec.rb +45 -0
- metadata +91 -2
@@ -0,0 +1,27 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema[7.0].define(version: 2022_03_28_093154) do
|
14
|
+
# These are extensions that must be enabled in order to support this database
|
15
|
+
enable_extension "plpgsql"
|
16
|
+
|
17
|
+
create_table "instances", force: :cascade do |t|
|
18
|
+
t.datetime "created_at", null: false
|
19
|
+
t.datetime "updated_at", null: false
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table "instructors", force: :cascade do |t|
|
23
|
+
t.datetime "created_at", null: false
|
24
|
+
t.datetime "updated_at", null: false
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# movies = Movie.create([{ name: "Star Wars" }, { name: "Lord of the Rings" }])
|
7
|
+
# Character.create(name: "Luke", movie: movies.first)
|
@@ -0,0 +1,31 @@
|
|
1
|
+
version: "3"
|
2
|
+
services:
|
3
|
+
pg:
|
4
|
+
build:
|
5
|
+
context: .
|
6
|
+
dockerfile: Dockerfile.pg
|
7
|
+
ports:
|
8
|
+
- "5432"
|
9
|
+
environment:
|
10
|
+
POSTGRES_HOST_AUTH_METHOD: trust
|
11
|
+
|
12
|
+
app:
|
13
|
+
build:
|
14
|
+
context: .
|
15
|
+
dockerfile: Dockerfile
|
16
|
+
image: rails7-app:${RUBY_VERSION}
|
17
|
+
command:
|
18
|
+
[ "./bin/rails", "server", "-b", "0.0.0.0", "-u", "webrick" ]
|
19
|
+
environment:
|
20
|
+
RAILS_ENV:
|
21
|
+
ORM_MODULE:
|
22
|
+
PGHOST: pg
|
23
|
+
PGPORT: '5432'
|
24
|
+
DATABASE_URL: postgres://postgres@pg
|
25
|
+
APPMAP:
|
26
|
+
volumes:
|
27
|
+
- .:/src/app
|
28
|
+
ports:
|
29
|
+
- "3000"
|
30
|
+
links:
|
31
|
+
- pg:pg
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
.rails-default-error-page {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
.rails-default-error-page div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
.rails-default-error-page h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body class="rails-default-error-page">
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the "{}" from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the "{}" from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= "test"
|
2
|
+
require_relative "../config/environment"
|
3
|
+
require "rails/test_help"
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Run tests in parallel with specified workers
|
7
|
+
parallelize(workers: :number_of_processors)
|
8
|
+
|
9
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
10
|
+
fixtures :all
|
11
|
+
|
12
|
+
# Add more helper methods to be used by all tests here...
|
13
|
+
end
|
@@ -1,14 +1,16 @@
|
|
1
1
|
require 'rails_spec_helper'
|
2
2
|
|
3
|
+
# Rails5 doesn't work with Ruby 3.x
|
3
4
|
def default_rails_versions
|
4
|
-
|
5
|
+
testing_ruby_2? ? [ 5, 6 ] : [ 6 ]
|
5
6
|
end
|
6
7
|
|
7
|
-
|
8
|
-
|
8
|
+
def rails_versions
|
9
|
+
Array(ENV['RAILS_VERSIONS'] || default_rails_versions)
|
10
|
+
end
|
9
11
|
|
10
12
|
describe 'Rails' do
|
11
|
-
|
13
|
+
rails_versions.each do |rails_major_version| # rubocop:disable Metrics/BlockLength
|
12
14
|
context "#{rails_major_version}" do
|
13
15
|
include_context 'Rails app pg database', "spec/fixtures/rails#{rails_major_version}_users_app" unless use_existing_data?
|
14
16
|
include_context 'rails integration test setup'
|
data/spec/rails_spec_helper.rb
CHANGED
@@ -5,6 +5,13 @@ require 'active_support'
|
|
5
5
|
require 'active_support/core_ext'
|
6
6
|
require 'open3'
|
7
7
|
|
8
|
+
# The RUBY_VERSION global variable indicates the version of the
|
9
|
+
# runtime. The RUBY_VERSION environment variable is the version we're
|
10
|
+
# testing, so it needs to be used to pick a fixture directory.
|
11
|
+
def testing_ruby_2?
|
12
|
+
ENV['RUBY_VERSION'].split('.')[0].to_i == 2
|
13
|
+
end
|
14
|
+
|
8
15
|
# docker compose v2 replaced the --filter flag with --status
|
9
16
|
PS_CMD=`docker-compose --version` =~ /version v2/ ?
|
10
17
|
"docker-compose ps -q --status running" :
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'rails_spec_helper'
|
2
|
+
|
3
|
+
# Rails5 doesn't work with Ruby 3.x, Rails 7 doesn't work with Ruby < 2.7.
|
4
|
+
def default_rails_versions
|
5
|
+
if testing_ruby_2?
|
6
|
+
if Gem::Requirement.create('>= 2.7') =~ Gem::Version.new(ENV['RUBY_VERSION'])
|
7
|
+
[ 5, 6, 7 ]
|
8
|
+
else
|
9
|
+
[ 5, 6 ]
|
10
|
+
end
|
11
|
+
else
|
12
|
+
[ 6, 7 ]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def rails_versions
|
17
|
+
Array(ENV['RAILS_VERSIONS'] || default_rails_versions)
|
18
|
+
end
|
19
|
+
|
20
|
+
describe 'Rails' do
|
21
|
+
rails_versions.each do |rails_major_version| # rubocop:disable Metrics/BlockLength
|
22
|
+
context "#{rails_major_version}" do
|
23
|
+
include_context 'Rails app pg database', "spec/fixtures/rails#{rails_major_version}_users_app" unless use_existing_data?
|
24
|
+
def tmpdir
|
25
|
+
'tmp/spec/rails_test_spec'
|
26
|
+
end
|
27
|
+
before(:all) do
|
28
|
+
FileUtils.rm_rf tmpdir
|
29
|
+
FileUtils.mkdir_p tmpdir
|
30
|
+
end
|
31
|
+
|
32
|
+
def run_tests
|
33
|
+
cmd = <<~CMD.gsub "\n", ' '
|
34
|
+
docker-compose run --rm -e RAILS_ENV=test -e APPMAP=true -e TEST_OPTS=--verbose
|
35
|
+
-v #{File.absolute_path tmpdir}:/app/tmp app bundle exec rake
|
36
|
+
CMD
|
37
|
+
run_cmd cmd, chdir: fixture_dir
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'runs tests with APPMAP=true' do
|
41
|
+
run_tests
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
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.
|
4
|
+
version: 0.77.3
|
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-
|
11
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -613,10 +613,99 @@ files:
|
|
613
613
|
- spec/fixtures/rails6_users_app/test/integration/integration_calc_test.rb
|
614
614
|
- spec/fixtures/rails6_users_app/users_app/.gitignore
|
615
615
|
- spec/fixtures/rails6_users_app/yarn.lock
|
616
|
+
- spec/fixtures/rails7_users_app/.dockerignore
|
617
|
+
- spec/fixtures/rails7_users_app/.gitattributes
|
618
|
+
- spec/fixtures/rails7_users_app/.gitignore
|
619
|
+
- spec/fixtures/rails7_users_app/.rspec
|
620
|
+
- spec/fixtures/rails7_users_app/.ruby-version
|
621
|
+
- spec/fixtures/rails7_users_app/Dockerfile
|
622
|
+
- spec/fixtures/rails7_users_app/Dockerfile.pg
|
623
|
+
- spec/fixtures/rails7_users_app/Gemfile
|
624
|
+
- spec/fixtures/rails7_users_app/README.md
|
625
|
+
- spec/fixtures/rails7_users_app/Rakefile
|
626
|
+
- spec/fixtures/rails7_users_app/app/assets/config/manifest.js
|
627
|
+
- spec/fixtures/rails7_users_app/app/assets/images/.keep
|
628
|
+
- spec/fixtures/rails7_users_app/app/assets/stylesheets/application.css
|
629
|
+
- spec/fixtures/rails7_users_app/app/channels/application_cable/channel.rb
|
630
|
+
- spec/fixtures/rails7_users_app/app/channels/application_cable/connection.rb
|
631
|
+
- spec/fixtures/rails7_users_app/app/controllers/application_controller.rb
|
632
|
+
- spec/fixtures/rails7_users_app/app/controllers/concerns/.keep
|
633
|
+
- spec/fixtures/rails7_users_app/app/helpers/application_helper.rb
|
634
|
+
- spec/fixtures/rails7_users_app/app/javascript/application.js
|
635
|
+
- spec/fixtures/rails7_users_app/app/javascript/controllers/application.js
|
636
|
+
- spec/fixtures/rails7_users_app/app/javascript/controllers/hello_controller.js
|
637
|
+
- spec/fixtures/rails7_users_app/app/javascript/controllers/index.js
|
638
|
+
- spec/fixtures/rails7_users_app/app/jobs/application_job.rb
|
639
|
+
- spec/fixtures/rails7_users_app/app/mailers/application_mailer.rb
|
640
|
+
- spec/fixtures/rails7_users_app/app/models/application_record.rb
|
641
|
+
- spec/fixtures/rails7_users_app/app/models/concerns/.keep
|
642
|
+
- spec/fixtures/rails7_users_app/app/models/instance.rb
|
643
|
+
- spec/fixtures/rails7_users_app/app/models/instructor.rb
|
644
|
+
- spec/fixtures/rails7_users_app/app/views/layouts/application.html.erb
|
645
|
+
- spec/fixtures/rails7_users_app/app/views/layouts/mailer.html.erb
|
646
|
+
- spec/fixtures/rails7_users_app/app/views/layouts/mailer.text.erb
|
647
|
+
- spec/fixtures/rails7_users_app/appmap.yml
|
648
|
+
- spec/fixtures/rails7_users_app/bin/bundle
|
649
|
+
- spec/fixtures/rails7_users_app/bin/importmap
|
650
|
+
- spec/fixtures/rails7_users_app/bin/rails
|
651
|
+
- spec/fixtures/rails7_users_app/bin/rake
|
652
|
+
- spec/fixtures/rails7_users_app/bin/setup
|
653
|
+
- spec/fixtures/rails7_users_app/config.ru
|
654
|
+
- spec/fixtures/rails7_users_app/config/application.rb
|
655
|
+
- spec/fixtures/rails7_users_app/config/boot.rb
|
656
|
+
- spec/fixtures/rails7_users_app/config/cable.yml
|
657
|
+
- spec/fixtures/rails7_users_app/config/credentials.yml.enc
|
658
|
+
- spec/fixtures/rails7_users_app/config/database.yml
|
659
|
+
- spec/fixtures/rails7_users_app/config/environment.rb
|
660
|
+
- spec/fixtures/rails7_users_app/config/environments/development.rb
|
661
|
+
- spec/fixtures/rails7_users_app/config/environments/production.rb
|
662
|
+
- spec/fixtures/rails7_users_app/config/environments/test.rb
|
663
|
+
- spec/fixtures/rails7_users_app/config/importmap.rb
|
664
|
+
- spec/fixtures/rails7_users_app/config/initializers/assets.rb
|
665
|
+
- spec/fixtures/rails7_users_app/config/initializers/content_security_policy.rb
|
666
|
+
- spec/fixtures/rails7_users_app/config/initializers/filter_parameter_logging.rb
|
667
|
+
- spec/fixtures/rails7_users_app/config/initializers/inflections.rb
|
668
|
+
- spec/fixtures/rails7_users_app/config/initializers/permissions_policy.rb
|
669
|
+
- spec/fixtures/rails7_users_app/config/locales/en.yml
|
670
|
+
- spec/fixtures/rails7_users_app/config/puma.rb
|
671
|
+
- spec/fixtures/rails7_users_app/config/routes.rb
|
672
|
+
- spec/fixtures/rails7_users_app/config/storage.yml
|
673
|
+
- spec/fixtures/rails7_users_app/create_app
|
674
|
+
- spec/fixtures/rails7_users_app/db/migrate/20220328093141_create_instances.rb
|
675
|
+
- spec/fixtures/rails7_users_app/db/migrate/20220328093154_create_instructors.rb
|
676
|
+
- spec/fixtures/rails7_users_app/db/schema.rb
|
677
|
+
- spec/fixtures/rails7_users_app/db/seeds.rb
|
678
|
+
- spec/fixtures/rails7_users_app/docker-compose.yml
|
679
|
+
- spec/fixtures/rails7_users_app/lib/assets/.keep
|
680
|
+
- spec/fixtures/rails7_users_app/lib/tasks/.keep
|
681
|
+
- spec/fixtures/rails7_users_app/log/.keep
|
682
|
+
- spec/fixtures/rails7_users_app/public/404.html
|
683
|
+
- spec/fixtures/rails7_users_app/public/422.html
|
684
|
+
- spec/fixtures/rails7_users_app/public/500.html
|
685
|
+
- spec/fixtures/rails7_users_app/public/apple-touch-icon-precomposed.png
|
686
|
+
- spec/fixtures/rails7_users_app/public/apple-touch-icon.png
|
687
|
+
- spec/fixtures/rails7_users_app/public/favicon.ico
|
688
|
+
- spec/fixtures/rails7_users_app/public/robots.txt
|
689
|
+
- spec/fixtures/rails7_users_app/storage/.keep
|
690
|
+
- spec/fixtures/rails7_users_app/test/application_system_test_case.rb
|
691
|
+
- spec/fixtures/rails7_users_app/test/channels/application_cable/connection_test.rb
|
692
|
+
- spec/fixtures/rails7_users_app/test/controllers/.keep
|
693
|
+
- spec/fixtures/rails7_users_app/test/fixtures/files/.keep
|
694
|
+
- spec/fixtures/rails7_users_app/test/fixtures/instances.yml
|
695
|
+
- spec/fixtures/rails7_users_app/test/fixtures/instructors.yml
|
696
|
+
- spec/fixtures/rails7_users_app/test/helpers/.keep
|
697
|
+
- spec/fixtures/rails7_users_app/test/integration/.keep
|
698
|
+
- spec/fixtures/rails7_users_app/test/mailers/.keep
|
699
|
+
- spec/fixtures/rails7_users_app/test/models/.keep
|
700
|
+
- spec/fixtures/rails7_users_app/test/models/instance_test.rb
|
701
|
+
- spec/fixtures/rails7_users_app/test/models/instructor_test.rb
|
702
|
+
- spec/fixtures/rails7_users_app/test/system/.keep
|
703
|
+
- spec/fixtures/rails7_users_app/test/test_helper.rb
|
616
704
|
- spec/hook_spec.rb
|
617
705
|
- spec/open_spec.rb
|
618
706
|
- spec/rails_recording_spec.rb
|
619
707
|
- spec/rails_spec_helper.rb
|
708
|
+
- spec/rails_test_spec.rb
|
620
709
|
- spec/railtie_spec.rb
|
621
710
|
- spec/record_net_http_spec.rb
|
622
711
|
- spec/record_sql_rails_pg_spec.rb
|