railties 7.1.3.4 → 7.2.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +176 -741
  3. data/lib/minitest/rails_plugin.rb +5 -2
  4. data/lib/rails/all.rb +1 -3
  5. data/lib/rails/api/task.rb +3 -2
  6. data/lib/rails/application/bootstrap.rb +5 -6
  7. data/lib/rails/application/configuration.rb +34 -37
  8. data/lib/rails/application/dummy_config.rb +2 -2
  9. data/lib/rails/application/finisher.rb +7 -0
  10. data/lib/rails/application.rb +7 -48
  11. data/lib/rails/backtrace_cleaner.rb +18 -3
  12. data/lib/rails/cli.rb +0 -1
  13. data/lib/rails/command.rb +1 -1
  14. data/lib/rails/commands/app/update_command.rb +93 -0
  15. data/lib/rails/commands/console/console_command.rb +2 -21
  16. data/lib/rails/commands/console/irb_console.rb +137 -0
  17. data/lib/rails/commands/credentials/credentials_command.rb +2 -2
  18. data/lib/rails/commands/dbconsole/dbconsole_command.rb +21 -30
  19. data/lib/rails/commands/devcontainer/devcontainer_command.rb +34 -0
  20. data/lib/rails/commands/rake/rake_command.rb +1 -1
  21. data/lib/rails/commands/runner/runner_command.rb +14 -3
  22. data/lib/rails/commands/server/server_command.rb +5 -3
  23. data/lib/rails/commands/test/test_command.rb +2 -0
  24. data/lib/rails/configuration.rb +10 -1
  25. data/lib/rails/console/app.rb +5 -32
  26. data/lib/rails/console/helpers.rb +5 -16
  27. data/lib/rails/console/methods.rb +23 -0
  28. data/lib/rails/engine.rb +5 -5
  29. data/lib/rails/gem_version.rb +3 -3
  30. data/lib/rails/generators/app_base.rb +70 -49
  31. data/lib/rails/generators/base.rb +5 -1
  32. data/lib/rails/generators/database.rb +227 -69
  33. data/lib/rails/generators/erb/scaffold/templates/edit.html.erb.tt +2 -0
  34. data/lib/rails/generators/erb/scaffold/templates/index.html.erb.tt +2 -0
  35. data/lib/rails/generators/erb/scaffold/templates/new.html.erb.tt +2 -0
  36. data/lib/rails/generators/generated_attribute.rb +26 -1
  37. data/lib/rails/generators/migration.rb +3 -3
  38. data/lib/rails/generators/rails/app/app_generator.rb +52 -23
  39. data/lib/rails/generators/rails/app/templates/Dockerfile.tt +23 -14
  40. data/lib/rails/generators/rails/app/templates/Gemfile.tt +16 -16
  41. data/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb.tt +4 -0
  42. data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +8 -1
  43. data/lib/rails/generators/rails/app/templates/app/views/pwa/manifest.json.erb.tt +22 -0
  44. data/lib/rails/generators/rails/app/templates/app/views/pwa/service-worker.js +26 -0
  45. data/lib/rails/generators/rails/app/templates/bin/brakeman.tt +6 -0
  46. data/lib/rails/generators/rails/app/templates/bin/rubocop.tt +7 -0
  47. data/lib/rails/generators/rails/app/templates/bin/setup.tt +6 -2
  48. data/lib/rails/generators/rails/app/templates/config/application.rb.tt +1 -1
  49. data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml.tt +3 -3
  50. data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml.tt +7 -0
  51. data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.tt +8 -1
  52. data/lib/rails/generators/rails/app/templates/config/databases/trilogy.yml.tt +3 -3
  53. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +11 -6
  54. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +2 -0
  55. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +6 -5
  56. data/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt +1 -1
  57. data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_2.rb.tt +70 -0
  58. data/lib/rails/generators/rails/app/templates/config/puma.rb.tt +42 -23
  59. data/lib/rails/generators/rails/app/templates/config/routes.rb.tt +4 -0
  60. data/lib/rails/generators/rails/app/templates/docker-entrypoint.tt +5 -0
  61. data/lib/rails/generators/rails/app/templates/dockerignore.tt +13 -0
  62. data/lib/rails/generators/rails/app/templates/github/ci.yml.tt +138 -0
  63. data/lib/rails/generators/rails/app/templates/github/dependabot.yml +12 -0
  64. data/lib/rails/generators/rails/app/templates/gitignore.tt +3 -3
  65. data/lib/rails/generators/rails/app/templates/public/406-unsupported-browser.html +66 -0
  66. data/lib/rails/generators/rails/app/templates/public/icon.png +0 -0
  67. data/lib/rails/generators/rails/app/templates/public/icon.svg +3 -0
  68. data/lib/rails/generators/rails/app/templates/rubocop.yml.tt +8 -0
  69. data/lib/rails/generators/rails/app/templates/test/application_system_test_case.rb.tt +1 -1
  70. data/lib/rails/generators/rails/controller/controller_generator.rb +1 -1
  71. data/lib/rails/generators/rails/db/system/change/change_generator.rb +131 -20
  72. data/lib/rails/generators/rails/devcontainer/devcontainer_generator.rb +166 -0
  73. data/lib/rails/generators/rails/devcontainer/templates/devcontainer/Dockerfile.tt +3 -0
  74. data/lib/rails/generators/rails/devcontainer/templates/devcontainer/compose.yaml.tt +56 -0
  75. data/lib/rails/generators/rails/devcontainer/templates/devcontainer/devcontainer.json.tt +37 -0
  76. data/lib/rails/generators/rails/migration/migration_generator.rb +4 -0
  77. data/lib/rails/generators/rails/plugin/plugin_generator.rb +38 -7
  78. data/lib/rails/generators/rails/plugin/templates/%name%.gemspec.tt +2 -2
  79. data/lib/rails/generators/rails/plugin/templates/Gemfile.tt +5 -1
  80. data/lib/rails/generators/rails/plugin/templates/bin/rubocop.tt +7 -0
  81. data/lib/rails/generators/rails/plugin/templates/github/ci.yml.tt +103 -0
  82. data/lib/rails/generators/rails/plugin/templates/github/dependabot.yml +12 -0
  83. data/lib/rails/generators/rails/plugin/templates/rubocop.yml.tt +8 -0
  84. data/lib/rails/generators/rails/plugin/templates/test/application_system_test_case.rb.tt +1 -1
  85. data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +10 -0
  86. data/lib/rails/generators/test_unit/scaffold/templates/system_test.rb.tt +2 -0
  87. data/lib/rails/generators/test_unit/system/templates/application_system_test_case.rb.tt +1 -1
  88. data/lib/rails/generators/testing/assertions.rb +20 -0
  89. data/lib/rails/generators/testing/behavior.rb +7 -6
  90. data/lib/rails/generators.rb +1 -1
  91. data/lib/rails/health_controller.rb +1 -1
  92. data/lib/rails/info.rb +2 -2
  93. data/lib/rails/mailers_controller.rb +14 -1
  94. data/lib/rails/paths.rb +2 -2
  95. data/lib/rails/pwa_controller.rb +15 -0
  96. data/lib/rails/rack/logger.rb +15 -7
  97. data/lib/rails/railtie/configurable.rb +2 -2
  98. data/lib/rails/railtie.rb +2 -3
  99. data/lib/rails/tasks/framework.rake +0 -26
  100. data/lib/rails/tasks/tmp.rake +1 -1
  101. data/lib/rails/templates/layouts/application.html.erb +1 -1
  102. data/lib/rails/templates/rails/mailers/email.html.erb +12 -8
  103. data/lib/rails/templates/rails/welcome/index.html.erb +3 -2
  104. data/lib/rails/test_help.rb +2 -4
  105. data/lib/rails/test_unit/reporter.rb +8 -2
  106. data/lib/rails/test_unit/runner.rb +21 -2
  107. data/lib/rails/test_unit/test_parser.rb +45 -0
  108. data/lib/rails.rb +7 -4
  109. metadata +41 -32
  110. data/lib/rails/app_updater.rb +0 -40
  111. data/lib/rails/commands/secrets/USAGE +0 -61
  112. data/lib/rails/commands/secrets/secrets_command.rb +0 -47
  113. data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml.tt +0 -68
  114. data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml.tt +0 -54
  115. data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml.tt +0 -70
  116. data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml.tt +0 -24
  117. data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml.tt +0 -62
  118. data/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml.tt +0 -53
  119. data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_1.rb.tt +0 -284
  120. data/lib/rails/generators/rails/app/templates/public/apple-touch-icon-precomposed.png +0 -0
  121. data/lib/rails/generators/rails/app/templates/public/apple-touch-icon.png +0 -0
  122. data/lib/rails/generators/rails/app/templates/public/favicon.ico +0 -0
  123. data/lib/rails/ruby_version_check.rb +0 -17
  124. data/lib/rails/secrets.rb +0 -110
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a713c038c0add6ec4194a1c5c48a7e2f5f82da156d84e8af357d48cbb914f0e
4
- data.tar.gz: 77a6b444181b72e1e506c8d3335fa596b1bcaf62c2adfdd3cbda2671fc104fde
3
+ metadata.gz: 2f612e5f960fe1306376d997a61a55efa64c45855f37e043d183bc3ee75948a3
4
+ data.tar.gz: 93f129aa6a3f465ff077c6d503ee1eea7e5773b9cf2d4177fd1db01a2f7050a3
5
5
  SHA512:
6
- metadata.gz: e97b5e4b13e4d6b53ce3cd3d7fe7a586f58f5eb66b644043c7fade27354c951831b5112e99353c5b89f54ba5f9e2c5a6fc8bffe58d963acbcbd910aba55201fd
7
- data.tar.gz: 8fb0f94946b9e5b3ce9f7212a9e8c8752fb53056b45016cadb7d40cc062b07d1636d4af4f402fa9250b41796e5a7b90e954324b5c3651921919e0f064b3b03fc
6
+ metadata.gz: 7870aa21d55509e66f36ce9a1adf3ba2efd52b0f74bb3b584d86f23ae366e9978c3a57286953aea07391cec09bc81b223a3f6011e171d807a48f76f78e2bf31a
7
+ data.tar.gz: 52dd8665ed7ea62d1d0562a869d1029e548d86d5aff92728e40888f38e3d4266777d23ae3748b48f81929631fb2bb8a2a99265a6b3214d96f50aa25e3c0bb5cb