railties 5.1.7 → 5.2.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +77 -241
  3. data/RDOC_MAIN.rdoc +61 -43
  4. data/README.rdoc +1 -2
  5. data/exe/rails +3 -2
  6. data/lib/minitest/rails_plugin.rb +9 -13
  7. data/lib/rails.rb +4 -2
  8. data/lib/rails/all.rb +3 -0
  9. data/lib/rails/api/generator.rb +10 -1
  10. data/lib/rails/api/task.rb +11 -1
  11. data/lib/rails/app_loader.rb +18 -5
  12. data/lib/rails/app_updater.rb +34 -0
  13. data/lib/rails/application.rb +90 -18
  14. data/lib/rails/application/bootstrap.rb +2 -0
  15. data/lib/rails/application/configuration.rb +79 -36
  16. data/lib/rails/application/default_middleware_stack.rb +7 -1
  17. data/lib/rails/application/finisher.rb +3 -1
  18. data/lib/rails/application/routes_reloader.rb +21 -3
  19. data/lib/rails/application_controller.rb +3 -1
  20. data/lib/rails/backtrace_cleaner.rb +3 -1
  21. data/lib/rails/cli.rb +2 -0
  22. data/lib/rails/code_statistics.rb +2 -0
  23. data/lib/rails/code_statistics_calculator.rb +2 -0
  24. data/lib/rails/command.rb +3 -1
  25. data/lib/rails/command/actions.rb +6 -4
  26. data/lib/rails/command/base.rb +5 -3
  27. data/lib/rails/command/behavior.rb +2 -0
  28. data/lib/rails/command/environment_argument.rb +14 -1
  29. data/lib/rails/command/helpers/editor.rb +35 -0
  30. data/lib/rails/commands.rb +2 -0
  31. data/lib/rails/commands/application/application_command.rb +2 -0
  32. data/lib/rails/commands/console/console_command.rb +2 -3
  33. data/lib/rails/commands/credentials/USAGE +40 -0
  34. data/lib/rails/commands/credentials/credentials_command.rb +72 -0
  35. data/lib/rails/commands/dbconsole/dbconsole_command.rb +18 -7
  36. data/lib/rails/commands/destroy/destroy_command.rb +2 -0
  37. data/lib/rails/commands/encrypted/encrypted_command.rb +77 -0
  38. data/lib/rails/commands/generate/generate_command.rb +2 -0
  39. data/lib/rails/commands/help/help_command.rb +2 -0
  40. data/lib/rails/commands/new/new_command.rb +2 -0
  41. data/lib/rails/commands/plugin/plugin_command.rb +2 -0
  42. data/lib/rails/commands/rake/rake_command.rb +2 -0
  43. data/lib/rails/commands/runner/USAGE +3 -0
  44. data/lib/rails/commands/runner/runner_command.rb +7 -3
  45. data/lib/rails/commands/secrets/secrets_command.rb +15 -10
  46. data/lib/rails/commands/server/server_command.rb +24 -3
  47. data/lib/rails/commands/test/test_command.rb +18 -23
  48. data/lib/rails/commands/version/version_command.rb +2 -0
  49. data/lib/rails/configuration.rb +2 -0
  50. data/lib/rails/console/app.rb +2 -0
  51. data/lib/rails/console/helpers.rb +2 -0
  52. data/lib/rails/dev_caching.rb +2 -1
  53. data/lib/rails/engine.rb +3 -1
  54. data/lib/rails/engine/commands.rb +2 -0
  55. data/lib/rails/engine/configuration.rb +2 -0
  56. data/lib/rails/engine/railties.rb +2 -0
  57. data/lib/rails/engine/updater.rb +3 -1
  58. data/lib/rails/gem_version.rb +5 -3
  59. data/lib/rails/generators.rb +8 -3
  60. data/lib/rails/generators/actions.rb +53 -24
  61. data/lib/rails/generators/actions/create_migration.rb +2 -0
  62. data/lib/rails/generators/active_model.rb +2 -0
  63. data/lib/rails/generators/app_base.rb +94 -57
  64. data/lib/rails/generators/base.rb +40 -1
  65. data/lib/rails/generators/css/assets/assets_generator.rb +3 -1
  66. data/lib/rails/generators/css/scaffold/scaffold_generator.rb +5 -3
  67. data/lib/rails/generators/erb.rb +2 -0
  68. data/lib/rails/generators/erb/controller/controller_generator.rb +2 -0
  69. data/lib/rails/generators/erb/controller/templates/{view.html.erb → view.html.erb.tt} +0 -0
  70. data/lib/rails/generators/erb/mailer/mailer_generator.rb +2 -0
  71. data/lib/rails/generators/erb/mailer/templates/{view.html.erb → view.html.erb.tt} +0 -0
  72. data/lib/rails/generators/erb/mailer/templates/{view.text.erb → view.text.erb.tt} +0 -0
  73. data/lib/rails/generators/erb/scaffold/scaffold_generator.rb +2 -0
  74. data/lib/rails/generators/erb/scaffold/templates/{_form.html.erb → _form.html.erb.tt} +4 -4
  75. data/lib/rails/generators/erb/scaffold/templates/{edit.html.erb → edit.html.erb.tt} +0 -0
  76. data/lib/rails/generators/erb/scaffold/templates/{index.html.erb → index.html.erb.tt} +4 -4
  77. data/lib/rails/generators/erb/scaffold/templates/{new.html.erb → new.html.erb.tt} +0 -0
  78. data/lib/rails/generators/erb/scaffold/templates/{show.html.erb → show.html.erb.tt} +0 -0
  79. data/lib/rails/generators/generated_attribute.rb +3 -1
  80. data/lib/rails/generators/js/assets/assets_generator.rb +3 -1
  81. data/lib/rails/generators/migration.rb +2 -0
  82. data/lib/rails/generators/model_helpers.rb +2 -0
  83. data/lib/rails/generators/named_base.rb +35 -45
  84. data/lib/rails/generators/rails/app/app_generator.rb +64 -23
  85. data/lib/rails/generators/rails/app/templates/{Gemfile → Gemfile.tt} +17 -6
  86. data/lib/rails/generators/rails/app/templates/{README.md → README.md.tt} +0 -0
  87. data/lib/rails/generators/rails/app/templates/{Rakefile → Rakefile.tt} +0 -0
  88. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +3 -0
  89. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/{cable.js → cable.js.tt} +0 -0
  90. data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/{application.css → application.css.tt} +0 -0
  91. data/lib/rails/generators/rails/app/templates/app/channels/application_cable/{channel.rb → channel.rb.tt} +0 -0
  92. data/lib/rails/generators/rails/app/templates/app/channels/application_cable/{connection.rb → connection.rb.tt} +0 -0
  93. data/lib/rails/generators/rails/app/templates/app/controllers/application_controller.rb.tt +1 -4
  94. data/lib/rails/generators/rails/app/templates/app/helpers/{application_helper.rb → application_helper.rb.tt} +0 -0
  95. data/lib/rails/generators/rails/app/templates/app/jobs/{application_job.rb → application_job.rb.tt} +0 -0
  96. data/lib/rails/generators/rails/app/templates/app/mailers/{application_mailer.rb → application_mailer.rb.tt} +0 -0
  97. data/lib/rails/generators/rails/app/templates/app/models/{application_record.rb → application_record.rb.tt} +0 -0
  98. data/lib/rails/generators/rails/app/templates/bin/bundle.tt +2 -0
  99. data/lib/rails/generators/rails/app/templates/bin/{rails → rails.tt} +0 -0
  100. data/lib/rails/generators/rails/app/templates/bin/{rake → rake.tt} +0 -0
  101. data/lib/rails/generators/rails/app/templates/bin/setup.tt +5 -5
  102. data/lib/rails/generators/rails/app/templates/bin/update.tt +7 -3
  103. data/lib/rails/generators/rails/app/templates/bin/{yarn → yarn.tt} +3 -3
  104. data/lib/rails/generators/rails/app/templates/{config.ru → config.ru.tt} +0 -0
  105. data/lib/rails/generators/rails/app/templates/config/{application.rb → application.rb.tt} +2 -1
  106. data/lib/rails/generators/rails/app/templates/config/{boot.rb → boot.rb.tt} +1 -0
  107. data/lib/rails/generators/rails/app/templates/config/{cable.yml → cable.yml.tt} +1 -1
  108. data/lib/rails/generators/rails/app/templates/config/databases/{frontbase.yml → frontbase.yml.tt} +0 -0
  109. data/lib/rails/generators/rails/app/templates/config/databases/{ibm_db.yml → ibm_db.yml.tt} +0 -0
  110. data/lib/rails/generators/rails/app/templates/config/databases/{jdbc.yml → jdbc.yml.tt} +0 -0
  111. data/lib/rails/generators/rails/app/templates/config/databases/{jdbcmysql.yml → jdbcmysql.yml.tt} +1 -1
  112. data/lib/rails/generators/rails/app/templates/config/databases/{jdbcpostgresql.yml → jdbcpostgresql.yml.tt} +0 -0
  113. data/lib/rails/generators/rails/app/templates/config/databases/{jdbcsqlite3.yml → jdbcsqlite3.yml.tt} +0 -0
  114. data/lib/rails/generators/rails/app/templates/config/databases/{mysql.yml → mysql.yml.tt} +1 -1
  115. data/lib/rails/generators/rails/app/templates/config/databases/{oracle.yml → oracle.yml.tt} +0 -0
  116. data/lib/rails/generators/rails/app/templates/config/databases/{postgresql.yml → postgresql.yml.tt} +0 -0
  117. data/lib/rails/generators/rails/app/templates/config/databases/{sqlite3.yml → sqlite3.yml.tt} +0 -0
  118. data/lib/rails/generators/rails/app/templates/config/databases/{sqlserver.yml → sqlserver.yml.tt} +2 -2
  119. data/lib/rails/generators/rails/app/templates/config/{environment.rb → environment.rb.tt} +0 -0
  120. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +7 -1
  121. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +12 -7
  122. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +8 -2
  123. data/lib/rails/generators/rails/app/templates/config/initializers/{application_controller_renderer.rb → application_controller_renderer.rb.tt} +0 -0
  124. data/lib/rails/generators/rails/app/templates/config/initializers/{backtrace_silencers.rb → backtrace_silencers.rb.tt} +0 -0
  125. data/lib/rails/generators/rails/app/templates/config/initializers/content_security_policy.rb.tt +20 -0
  126. data/lib/rails/generators/rails/app/templates/config/initializers/{cookies_serializer.rb → cookies_serializer.rb.tt} +0 -0
  127. data/lib/rails/generators/rails/app/templates/config/initializers/{cors.rb → cors.rb.tt} +0 -0
  128. data/lib/rails/generators/rails/app/templates/config/initializers/{filter_parameter_logging.rb → filter_parameter_logging.rb.tt} +0 -0
  129. data/lib/rails/generators/rails/app/templates/config/initializers/{inflections.rb → inflections.rb.tt} +0 -0
  130. data/lib/rails/generators/rails/app/templates/config/initializers/{mime_types.rb → mime_types.rb.tt} +0 -0
  131. data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_5_2.rb.tt +27 -0
  132. data/lib/rails/generators/rails/app/templates/config/{puma.rb → puma.rb.tt} +0 -0
  133. data/lib/rails/generators/rails/app/templates/config/{routes.rb → routes.rb.tt} +0 -0
  134. data/lib/rails/generators/rails/app/templates/config/{spring.rb → spring.rb.tt} +2 -2
  135. data/lib/rails/generators/rails/app/templates/config/storage.yml.tt +35 -0
  136. data/lib/rails/generators/rails/app/templates/{gitignore → gitignore.tt} +9 -1
  137. data/lib/rails/generators/rails/app/templates/{package.json → package.json.tt} +0 -0
  138. data/lib/rails/generators/rails/app/templates/ruby-version.tt +1 -0
  139. data/lib/rails/generators/rails/app/templates/test/{application_system_test_case.rb → application_system_test_case.rb.tt} +0 -0
  140. data/lib/rails/generators/rails/app/templates/test/{test_helper.rb → test_helper.rb.tt} +1 -2
  141. data/lib/rails/generators/rails/application_record/application_record_generator.rb +9 -0
  142. data/lib/rails/generators/rails/assets/assets_generator.rb +2 -0
  143. data/lib/rails/generators/rails/assets/templates/stylesheet.css +1 -1
  144. data/lib/rails/generators/rails/controller/controller_generator.rb +11 -9
  145. data/lib/rails/generators/rails/controller/templates/{controller.rb → controller.rb.tt} +0 -0
  146. data/lib/rails/generators/rails/credentials/credentials_generator.rb +48 -0
  147. data/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb +38 -0
  148. data/lib/rails/generators/rails/encryption_key_file/encryption_key_file_generator.rb +57 -0
  149. data/lib/rails/generators/rails/generator/generator_generator.rb +2 -0
  150. data/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +1 -1
  151. data/lib/rails/generators/rails/helper/helper_generator.rb +2 -0
  152. data/lib/rails/generators/rails/helper/templates/{helper.rb → helper.rb.tt} +0 -0
  153. data/lib/rails/generators/rails/integration_test/integration_test_generator.rb +2 -0
  154. data/lib/rails/generators/rails/master_key/master_key_generator.rb +51 -0
  155. data/lib/rails/generators/rails/migration/migration_generator.rb +2 -0
  156. data/lib/rails/generators/rails/model/model_generator.rb +2 -0
  157. data/lib/rails/generators/rails/plugin/plugin_generator.rb +18 -9
  158. data/lib/rails/generators/rails/plugin/templates/%name%.gemspec.tt +24 -0
  159. data/lib/rails/generators/rails/plugin/templates/{Gemfile → Gemfile.tt} +1 -0
  160. data/lib/rails/generators/rails/plugin/templates/{MIT-LICENSE → MIT-LICENSE.tt} +0 -0
  161. data/lib/rails/generators/rails/plugin/templates/{README.md → README.md.tt} +1 -1
  162. data/lib/rails/generators/rails/plugin/templates/{Rakefile → Rakefile.tt} +6 -7
  163. data/lib/rails/generators/rails/plugin/templates/bin/rails.tt +21 -4
  164. data/lib/rails/generators/rails/plugin/templates/bin/test.tt +1 -1
  165. data/lib/rails/generators/rails/plugin/templates/config/{routes.rb → routes.rb.tt} +0 -0
  166. data/lib/rails/generators/rails/plugin/templates/gitignore.tt +18 -0
  167. data/lib/rails/generators/rails/plugin/templates/lib/{%namespaced_name%.rb → %namespaced_name%.rb.tt} +3 -1
  168. data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/{engine.rb → engine.rb.tt} +0 -0
  169. data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/railtie.rb.tt +5 -0
  170. data/lib/rails/generators/rails/plugin/templates/lib/%namespaced_name%/{version.rb → version.rb.tt} +0 -0
  171. data/lib/rails/generators/rails/plugin/templates/lib/tasks/{%namespaced_name%_tasks.rake → %namespaced_name%_tasks.rake.tt} +0 -0
  172. data/lib/rails/generators/rails/plugin/templates/rails/{application.rb → application.rb.tt} +6 -3
  173. data/lib/rails/generators/rails/plugin/templates/rails/{boot.rb → boot.rb.tt} +0 -0
  174. data/lib/rails/generators/rails/plugin/templates/rails/{dummy_manifest.js → dummy_manifest.js.tt} +0 -1
  175. data/lib/rails/generators/rails/plugin/templates/rails/{engine_manifest.js → engine_manifest.js.tt} +0 -0
  176. data/lib/rails/generators/rails/plugin/templates/rails/{javascripts.js → javascripts.js.tt} +3 -0
  177. data/lib/rails/generators/rails/plugin/templates/rails/{routes.rb → routes.rb.tt} +0 -0
  178. data/lib/rails/generators/rails/plugin/templates/test/{%namespaced_name%_test.rb → %namespaced_name%_test.rb.tt} +0 -0
  179. data/lib/rails/generators/rails/plugin/templates/test/{application_system_test_case.rb → application_system_test_case.rb.tt} +0 -0
  180. data/lib/rails/generators/rails/plugin/templates/test/integration/{navigation_test.rb → navigation_test.rb.tt} +0 -1
  181. data/lib/rails/generators/rails/plugin/templates/test/{test_helper.rb → test_helper.rb.tt} +7 -6
  182. data/lib/rails/generators/rails/resource/USAGE +1 -1
  183. data/lib/rails/generators/rails/resource/resource_generator.rb +2 -0
  184. data/lib/rails/generators/rails/resource_route/resource_route_generator.rb +21 -24
  185. data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +2 -3
  186. data/lib/rails/generators/rails/scaffold_controller/USAGE +1 -1
  187. data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +2 -0
  188. data/lib/rails/generators/rails/scaffold_controller/templates/{api_controller.rb → api_controller.rb.tt} +0 -0
  189. data/lib/rails/generators/rails/scaffold_controller/templates/{controller.rb → controller.rb.tt} +2 -2
  190. data/lib/rails/generators/rails/system_test/system_test_generator.rb +2 -0
  191. data/lib/rails/generators/rails/task/task_generator.rb +2 -0
  192. data/lib/rails/generators/rails/task/templates/{task.rb → task.rb.tt} +0 -0
  193. data/lib/rails/generators/resource_helpers.rb +2 -0
  194. data/lib/rails/generators/test_case.rb +4 -2
  195. data/lib/rails/generators/test_unit.rb +2 -0
  196. data/lib/rails/generators/test_unit/controller/controller_generator.rb +2 -0
  197. data/lib/rails/generators/test_unit/controller/templates/{functional_test.rb → functional_test.rb.tt} +0 -0
  198. data/lib/rails/generators/test_unit/generator/generator_generator.rb +2 -0
  199. data/lib/rails/generators/test_unit/generator/templates/{generator_test.rb → generator_test.rb.tt} +0 -0
  200. data/lib/rails/generators/test_unit/helper/helper_generator.rb +2 -0
  201. data/lib/rails/generators/test_unit/integration/integration_generator.rb +2 -0
  202. data/lib/rails/generators/test_unit/integration/templates/{integration_test.rb → integration_test.rb.tt} +0 -0
  203. data/lib/rails/generators/test_unit/job/job_generator.rb +3 -1
  204. data/lib/rails/generators/test_unit/job/templates/{unit_test.rb.erb → unit_test.rb.tt} +0 -0
  205. data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +2 -0
  206. data/lib/rails/generators/test_unit/mailer/templates/{functional_test.rb → functional_test.rb.tt} +0 -0
  207. data/lib/rails/generators/test_unit/mailer/templates/{preview.rb → preview.rb.tt} +0 -0
  208. data/lib/rails/generators/test_unit/model/model_generator.rb +2 -0
  209. data/lib/rails/generators/test_unit/model/templates/{fixtures.yml → fixtures.yml.tt} +0 -0
  210. data/lib/rails/generators/test_unit/model/templates/{unit_test.rb → unit_test.rb.tt} +0 -0
  211. data/lib/rails/generators/test_unit/plugin/plugin_generator.rb +2 -0
  212. data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +17 -4
  213. data/lib/rails/generators/test_unit/scaffold/templates/{api_functional_test.rb → api_functional_test.rb.tt} +2 -2
  214. data/lib/rails/generators/test_unit/scaffold/templates/{functional_test.rb → functional_test.rb.tt} +2 -2
  215. data/lib/rails/generators/test_unit/scaffold/templates/system_test.rb.tt +49 -0
  216. data/lib/rails/generators/test_unit/system/system_generator.rb +3 -1
  217. data/lib/rails/generators/test_unit/system/templates/{application_system_test_case.rb → application_system_test_case.rb.tt} +0 -0
  218. data/lib/rails/generators/test_unit/system/templates/{system_test.rb → system_test.rb.tt} +0 -0
  219. data/lib/rails/generators/testing/assertions.rb +7 -1
  220. data/lib/rails/generators/testing/behaviour.rb +8 -6
  221. data/lib/rails/generators/testing/setup_and_teardown.rb +2 -0
  222. data/lib/rails/info.rb +6 -3
  223. data/lib/rails/info_controller.rb +2 -0
  224. data/lib/rails/initializable.rb +2 -0
  225. data/lib/rails/mailers_controller.rb +9 -1
  226. data/lib/rails/paths.rb +2 -0
  227. data/lib/rails/plugin/test.rb +4 -2
  228. data/lib/rails/rack.rb +2 -0
  229. data/lib/rails/rack/logger.rb +5 -3
  230. data/lib/rails/railtie.rb +9 -4
  231. data/lib/rails/railtie/configurable.rb +2 -0
  232. data/lib/rails/railtie/configuration.rb +2 -0
  233. data/lib/rails/ruby_version_check.rb +3 -1
  234. data/lib/rails/secrets.rb +2 -17
  235. data/lib/rails/source_annotation_extractor.rb +4 -2
  236. data/lib/rails/tasks.rb +2 -0
  237. data/lib/rails/tasks/annotations.rake +2 -0
  238. data/lib/rails/tasks/dev.rake +2 -0
  239. data/lib/rails/tasks/engine.rake +7 -2
  240. data/lib/rails/tasks/framework.rake +9 -24
  241. data/lib/rails/tasks/initializers.rake +2 -0
  242. data/lib/rails/tasks/log.rake +2 -0
  243. data/lib/rails/tasks/middleware.rake +2 -0
  244. data/lib/rails/tasks/misc.rake +2 -0
  245. data/lib/rails/tasks/restart.rake +2 -1
  246. data/lib/rails/tasks/routes.rake +2 -0
  247. data/lib/rails/tasks/statistics.rake +2 -0
  248. data/lib/rails/tasks/tmp.rake +11 -2
  249. data/lib/rails/tasks/yarn.rake +3 -1
  250. data/lib/rails/templates/rails/mailers/email.html.erb +3 -3
  251. data/lib/rails/templates/rails/welcome/index.html.erb +14 -4
  252. data/lib/rails/test_help.rb +2 -0
  253. data/lib/rails/test_unit/line_filtering.rb +2 -1
  254. data/lib/rails/test_unit/railtie.rb +2 -0
  255. data/lib/rails/test_unit/reporter.rb +5 -10
  256. data/lib/rails/test_unit/runner.rb +3 -3
  257. data/lib/rails/test_unit/testing.rake +3 -1
  258. data/lib/rails/version.rb +2 -0
  259. data/lib/rails/welcome_controller.rb +2 -0
  260. metadata +121 -107
  261. data/lib/rails/generators/rails/app/templates/bin/bundle +0 -2
  262. data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_5_1.rb.tt +0 -16
  263. data/lib/rails/generators/rails/app/templates/config/secrets.yml +0 -32
  264. data/lib/rails/generators/rails/encrypted_secrets/encrypted_secrets_generator.rb +0 -70
  265. data/lib/rails/generators/rails/plugin/templates/%name%.gemspec +0 -33
  266. data/lib/rails/generators/rails/plugin/templates/gitignore +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 759d28481e93ea3ecb64f7a58746c520b8862167453ba27f1efbeff710a6bbb4
4
- data.tar.gz: afcd51a61e52b7bd1e5e179f744f2062121a435d8a0b8841536481eeb7c5215b
2
+ SHA1:
3
+ metadata.gz: fe2084c59562318f868ebadda47eddfc963e86d8
4
+ data.tar.gz: 0ecd6b7659958fe062acb87c4ea498a13cc5350a
5
5
  SHA512:
6
- metadata.gz: ad44a2d0815a0bac638ecf79727437a27ebb3e80d2187fa293bcc8e3972c39dd23288da85975dd8be918162de531e1afbbb5911562d295c1a0a12793bc311f01
7
- data.tar.gz: 5e1ed3df6d86891fc66662eff9a90a6709340039a1620c4f8b8ef78804af261487be795d17f86c764417b9fcbafd9e1d48937414d9fe7b71fbf1365056a564c6
6
+ metadata.gz: 0035eff10d9ef03c44ad7759f5e3eec938a66b16987be2a41a27ff85480030024f3228911a0a329ad10093927ce461a91e5d39489af8f68dd0c49b5b5cade0e6
7
+ data.tar.gz: 543917a45751774ad595d761db7409822516169d42e13ca61ffcfe700d868823588eacf5679fa7af4ff8a21d18c10c5fc1c8e7d21b20a7ccbe968c1921e38315
@@ -1,323 +1,159 @@
1
- ## Rails 5.1.7 (March 27, 2019) ##
1
+ ## Rails 5.2.0.beta1 (November 27, 2017) ##
2
2
 
3
- * No changes.
3
+ * Deprecate `after_bundle` callback in Rails plugin templates.
4
4
 
5
+ *Yuji Yaginuma*
5
6
 
6
- ## Rails 5.1.6.2 (March 11, 2019) ##
7
-
8
- * No changes.
9
-
10
-
11
- ## Rails 5.1.6.1 (November 27, 2018) ##
12
-
13
- * No changes.
14
-
15
-
16
- ## Rails 5.1.6 (March 29, 2018) ##
17
-
18
- * Fix check for minimum Ruby version to correctly identify Ruby 2.2.10.
19
-
20
- *shia*
21
-
22
- * Fix minitest rails plugin.
23
-
24
- The custom reporters are added only if needed.
25
-
26
- This will fix conflicts with others plugins.
27
-
28
- *Kevin Robatel*
29
-
7
+ * `rails new` and `rails plugin new` get `Active Storage` by default.
8
+ Add ability to skip `Active Storage` with `--skip-active-storage`
9
+ and do so automatically when `--skip-active-record` is used.
30
10
 
31
- ## Rails 5.1.5 (February 14, 2018) ##
11
+ *bogdanvlviv*
32
12
 
33
13
  * Gemfile for new apps: upgrade redis-rb from ~> 3.0 to 4.0.
34
14
 
35
15
  *Jeremy Daer*
36
16
 
17
+ * Add `mini_magick` to default `Gemfile` as comment.
37
18
 
38
- ## Rails 5.1.4 (September 07, 2017) ##
19
+ *Yoshiyuki Hirano*
39
20
 
40
- * No changes.
21
+ * Derive `secret_key_base` from the app name in development and test environments.
41
22
 
23
+ Spares away needless secret configs.
42
24
 
43
- ## Rails 5.1.4.rc1 (August 24, 2017) ##
25
+ *DHH*, *Kasper Timm Hansen*
44
26
 
45
- * Allow irb options to be passed from `rails console` command.
27
+ * Support multiple versions arguments for `gem` method of Generators.
46
28
 
47
- Fixes #28988.
48
-
49
- *Yuji Yaginuma*
50
-
51
- ## Rails 5.1.3 (August 03, 2017) ##
29
+ *Yoshiyuki Hirano*
52
30
 
53
- * No changes.
31
+ * Add `--skip-yarn` option to the plugin generator.
54
32
 
33
+ *bogdanvlviv*
55
34
 
56
- ## Rails 5.1.3.rc3 (July 31, 2017) ##
35
+ * Optimize routes indentation.
57
36
 
58
- * No changes.
37
+ *Yoshiyuki Hirano*
59
38
 
39
+ * Optimize indentation for generator actions.
60
40
 
61
- ## Rails 5.1.3.rc2 (July 25, 2017) ##
41
+ *Yoshiyuki Hirano*
62
42
 
63
- * Regression fix: Allow `bin/rails test` to take absolute paths to tests.
43
+ * Skip unused components when running `bin/rails` in Rails plugin.
64
44
 
65
- *Pawan Dubey*
45
+ *Yoshiyuki Hirano*
66
46
 
67
- ## Rails 5.1.3.rc1 (July 19, 2017) ##
47
+ * Add `git_source` to `Gemfile` for plugin generator.
68
48
 
69
- * Make Rails' test runner work better with minitest plugins.
70
-
71
- By demoting the Rails test runner to just another minitest plugin —
72
- and thereby not eager loading it — we can co-exist much better with
73
- other minitest plugins such as pride and minitest-focus.
49
+ *Yoshiyuki Hirano*
74
50
 
75
- *Kasper Timm Hansen*
51
+ * Add `--skip-action-cable` option to the plugin generator.
76
52
 
77
- * Load environment file in `dbconsole` command.
53
+ *bogdanvlviv*
78
54
 
79
- Fixes #29717
55
+ * Deprecate support of use `Rails::Application` subclass to start Rails server.
80
56
 
81
57
  *Yuji Yaginuma*
82
58
 
83
- * Allow mounting the same engine several times in different locations.
59
+ * Add `ruby x.x.x` version to `Gemfile` and create `.ruby-version`
60
+ root file containing the current Ruby version when new Rails applications are
61
+ created.
84
62
 
85
- Fixes #20204.
63
+ *Alberto Almagro*
86
64
 
87
- *David Rodríguez*
65
+ * Support `-` as a platform-agnostic way to run a script from stdin with
66
+ `rails runner`
88
67
 
68
+ *Cody Cutrer*
89
69
 
90
- ## Rails 5.1.2 (June 26, 2017) ##
70
+ * Add `bootsnap` to default `Gemfile`.
91
71
 
92
- * Add Windows support to `rails secrets:edit`.
93
-
94
- *Kasper Timm Hansen*
95
-
96
- ## Rails 5.1.1 (May 12, 2017) ##
97
-
98
- * No changes.
72
+ *Burke Libbey*
99
73
 
74
+ * Properly expand shortcuts for environment's name running the `console`
75
+ and `dbconsole` commands.
100
76
 
101
- ## Rails 5.1.0 (April 27, 2017) ##
77
+ *Robin Dupret*
102
78
 
103
- * Namespace error pages' CSS selectors to stop the styles from bleeding into other pages
104
- when using Turbolinks.
79
+ * Passing the environment's name as a regular argument to the
80
+ `rails dbconsole` and `rails console` commands is deprecated.
81
+ The `-e` option should be used instead.
105
82
 
106
- *Jan Krutisch*
83
+ Previously:
107
84
 
108
- * Raise a error when using a bad symlink
85
+ $ bin/rails dbconsole production
109
86
 
110
- Previously bad symlinks (where the link destination doesn't exist)
111
- would be silent ignored and lead to hard to diagnose problems as
112
- the non-existence isn't readily apparent.
87
+ Now:
113
88
 
114
- *Richard Schneeman*
89
+ $ bin/rails dbconsole -e production
115
90
 
116
- * Remove -j (--javascript) option from `rails new` command.
91
+ *Robin Dupret*, *Kasper Timm Hansen*
117
92
 
118
- *claudiob*
93
+ * Allow passing a custom connection name to the `rails dbconsole`
94
+ command when using a 3-level database configuration.
119
95
 
120
- * Specify form field ids when generating a scaffold.
96
+ $ bin/rails dbconsole -c replica
121
97
 
122
- This makes sure that the labels are linked up with the fields. The
123
- regression was introduced when the template was switched to
124
- `form_with`.
98
+ *Robin Dupret*, *Jeremy Daer*
125
99
 
126
- *Yves Senn*
100
+ * Skip unused components when running `bin/rails app:update`.
127
101
 
128
- * Add `app:update` task to engines.
102
+ If the initial app generation skipped Action Cable, Active Record etc.,
103
+ the update task honors those skips too.
129
104
 
130
105
  *Yuji Yaginuma*
131
106
 
132
- * Avoid running system tests by default with the `bin/rails test`
133
- and `bin/rake test` commands since they may be expensive.
134
-
135
- Fixes #28286.
136
-
137
- *Robin Dupret*
138
-
139
- * Improve encryption for encrypted secrets.
140
-
141
- Switch to aes-128-gcm authenticated encryption. Also generate a random
142
- initialization vector for each encryption so the same input and key can
143
- generate different encrypted data.
144
-
145
- Double the encryption key entropy by properly extracting the underlying
146
- bytes from the hexadecimal seed key.
147
-
148
- NOTE: Since the encryption mechanism has been switched, you need to run
149
- this script to upgrade:
150
-
151
- https://gist.github.com/kaspth/bc37989c2f39a5642112f28b1d93f343
152
-
153
- *Stephen Touset*
154
-
155
- * Add encrypted secrets in `config/secrets.yml.enc`.
156
-
157
- Allow storing production secrets straight in the revision control system by
158
- encrypting them.
159
-
160
- Use `bin/rails secrets:setup` to opt-in by generating `config/secrets.yml.enc`
161
- for the secrets themselves and `config/secrets.yml.key` for the encryption key.
162
-
163
- Edit secrets with `bin/rails secrets:edit`.
107
+ * Make Rails' test runner work better with minitest plugins.
164
108
 
165
- See `bin/rails secrets:setup --help` for more.
109
+ By demoting the Rails test runner to just another minitest plugin —
110
+ and thereby not eager loading it — we can co-exist much better with
111
+ other minitest plugins such as pride and minitest-focus.
166
112
 
167
113
  *Kasper Timm Hansen*
168
114
 
169
- * Fix running multiple tests in one `rake` command
170
-
171
- e.g. `bin/rake test:models test:controllers`
172
-
173
- *Dominic Cleal*
115
+ * Load environment file in `dbconsole` command.
174
116
 
175
- * Add option to configure Ruby's warning behaviour to test runner.
117
+ Fixes #29717.
176
118
 
177
119
  *Yuji Yaginuma*
178
120
 
179
- * Initialize git repo when generating new app, if option `--skip-git`
180
- is not provided.
181
-
182
- *Dino Maric*
183
-
184
- * Install Byebug gem as default in Windows (mingw and x64_mingw) platform.
185
-
186
- *Junichi Ito*
187
-
188
- * Make every Rails command work within engines.
189
-
190
- *Sean Collins*, *Yuji Yaginuma*
191
-
192
- * Don't generate HTML/ERB templates for scaffold controller with `--api` flag.
193
-
194
- Fixes #27591.
195
-
196
- *Prathamesh Sonpatki*
197
-
198
- * Make `Rails.env` fall back to `development` when `RAILS_ENV` and `RACK_ENV` is an empty string.
199
-
200
- *Daniel Deng*
201
-
202
- * Remove deprecated `CONTROLLER` environment variable for `routes` task.
203
-
204
- *Rafael Mendonça França*
205
-
206
- * Remove deprecated tasks: `rails:update`, `rails:template`, `rails:template:copy`,
207
- `rails:update:configs` and `rails:update:bin`.
208
-
209
- *Rafael Mendonça França*
210
-
211
- * Remove deprecated file `rails/rack/debugger`.
212
-
213
- *Rafael Mendonça França*
214
-
215
- * Remove deprecated `config.serve_static_files`.
216
-
217
- *Rafael Mendonça França*
218
-
219
- * Remove deprecated `config.static_cache_control`.
220
-
221
- *Rafael Mendonça França*
222
-
223
- * The `log:clear` task clear all environments log files by default.
121
+ * Add `rails secrets:show` command.
224
122
 
225
123
  *Yuji Yaginuma*
226
124
 
227
- * Add Webpack support in new apps via the --webpack option, which will delegate to the rails/webpacker gem.
228
-
229
- To generate a new app that has Webpack dependencies configured and binstubs for webpack and webpack-watcher:
230
-
231
- `rails new myapp --webpack`
232
-
233
- To generate a new app that has Webpack + React configured and an example intalled:
234
-
235
- `rails new myapp --webpack=react`
236
-
237
- *DHH*
238
-
239
- * Add Yarn support in new apps with a yarn binstub and package.json. Skippable via --skip-yarn option.
240
-
241
- *Liceth Ovalles*, *Guillermo Iguaran*, *DHH*
125
+ * Allow mounting the same engine several times in different locations.
242
126
 
243
- * Removed jquery-rails from default stack, instead rails-ujs that is shipped
244
- with Action View is included as default UJS adapter.
127
+ Fixes #20204.
245
128
 
246
- *Guillermo Iguaran*
129
+ *David Rodríguez*
247
130
 
248
- * The config file `secrets.yml` is now loaded in with all keys as symbols.
249
- This allows secrets files to contain more complex information without all
250
- child keys being strings while parent keys are symbols.
131
+ * Clear screenshot files in `tmp:clear` task.
251
132
 
252
- *Isaac Sloan*
133
+ *Yuji Yaginuma*
253
134
 
254
- * Add `:skip_sprockets` to `Rails::PluginBuilder::PASSTHROUGH_OPTIONS`
135
+ * Add `railtie.rb` to the plugin generator
255
136
 
256
137
  *Tsukuru Tanimichi*
257
138
 
258
- * Add `--skip-coffee` option to `rails new`
259
-
260
- *Seunghwan Oh*
261
-
262
- * Allow the use of listen's 3.1.x branch
263
-
264
- *Esteban Santana Santana*
265
-
266
- * Run `Minitest.after_run` hooks when running `rails test`.
267
-
268
- *Michael Grosser*
269
-
270
- * Run `before_configuration` callbacks as soon as application constant
271
- inherits from `Rails::Application`.
272
-
273
- Fixes #19880.
139
+ * Deprecate `capify!` method in generators and templates.
274
140
 
275
141
  *Yuji Yaginuma*
276
142
 
277
- * A generated app should not include Uglifier with `--skip-javascript` option.
278
-
279
- *Ben Pickles*
280
-
281
- * Set session store to cookie store internally and remove the initializer from
282
- the generated app.
283
-
284
- *Prathamesh Sonpatki*
285
-
286
- * Set the server host using the `HOST` environment variable.
287
-
288
- *mahnunchik*
289
-
290
- * Add public API to register new folders for `rake notes`:
291
-
292
- config.annotations.register_directories('spec', 'features')
293
-
294
- *John Meehan*
295
-
296
- * Display name of the class defining the initializer along with the initializer
297
- name in the output of `rails initializers`.
298
-
299
- Before:
300
- disable_dependency_loading
301
-
302
- After:
303
- DemoApp::Application.disable_dependency_loading
304
-
305
- *ta1kt0me*
143
+ * Allow irb options to be passed from `rails console` command.
306
144
 
307
- * Do not run `bundle install` when generating a new plugin.
145
+ Fixes #28988.
308
146
 
309
- Since bundler 1.12.0, the gemspec is validated so the `bundle install`
310
- command will fail just after the gem is created causing confusion to the
311
- users. This change was a bug fix to correctly validate gemspecs.
147
+ *Yuji Yaginuma*
312
148
 
313
- *Rafael Mendonça França*
149
+ * Added a shared section to `config/database.yml` that will be loaded for all environments.
314
150
 
315
- * Ensure `/rails/info` routes match in development for apps with a catch-all globbing route.
151
+ *Pierre Schambacher*
316
152
 
317
- *Nicholas Firth-McCoy*
153
+ * Namespace error pages' CSS selectors to stop the styles from bleeding into other pages
154
+ when using Turbolinks.
318
155
 
319
- * Added a shared section to `config/secrets.yml` that will be loaded for all environments.
156
+ *Jan Krutisch*
320
157
 
321
- *DHH*
322
158
 
323
- Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/railties/CHANGELOG.md) for previous changes.
159
+ Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/railties/CHANGELOG.md) for previous changes.
@@ -1,35 +1,50 @@
1
1
  == Welcome to \Rails
2
2
 
3
- \Rails is a web-application framework that includes everything needed to create
4
- database-backed web applications according to the {Model-View-Controller (MVC)}[http://en.wikipedia.org/wiki/Model-view-controller] pattern.
5
-
6
- Understanding the MVC pattern is key to understanding \Rails. MVC divides your application
7
- into three layers, each with a specific responsibility.
8
-
9
- The View layer is composed of "templates" that are responsible for providing
10
- appropriate representations of your application's resources. Templates
11
- can come in a variety of formats, but most view templates are \HTML with embedded Ruby
12
- code (.erb files).
13
-
14
- The Model layer represents your domain model (such as Account, Product, Person, Post)
15
- and encapsulates the business logic that is specific to your application. In \Rails,
16
- database-backed model classes are derived from ActiveRecord::Base. Active Record allows
17
- you to present the data from database rows as objects and embellish these data objects
18
- with business logic methods. Although most \Rails models are backed by a database, models
19
- can also be ordinary Ruby classes, or Ruby classes that implement a set of interfaces as
20
- provided by the ActiveModel module. You can read more about Active Record in its
21
- {README}[link:files/activerecord/README_rdoc.html].
22
-
23
- The Controller layer is responsible for handling incoming HTTP requests and providing a
24
- suitable response. Usually this means returning \HTML, but \Rails controllers can also
25
- generate XML, JSON, PDFs, mobile-specific views, and more. Controllers manipulate models
26
- and render view templates in order to generate the appropriate HTTP response.
27
-
28
- In \Rails, the Controller and View layers are handled together by Action Pack.
29
- These two layers are bundled in a single package due to their heavy interdependence.
30
- This is unlike the relationship between Active Record and Action Pack, which are
31
- independent. Each of these packages can be used independently outside of \Rails. You
32
- can read more about Action Pack in its {README}[link:files/actionpack/README_rdoc.html].
3
+ \Rails is a web-application framework that includes everything needed to
4
+ create database-backed web applications according to the
5
+ {Model-View-Controller (MVC)}[http://en.wikipedia.org/wiki/Model-view-controller]
6
+ pattern.
7
+
8
+ Understanding the MVC pattern is key to understanding \Rails. MVC divides your
9
+ application into three layers, each with a specific responsibility.
10
+
11
+ The <em>Model layer</em> represents your domain model (such as Account, Product,
12
+ Person, Post, etc.) and encapsulates the business logic that is specific to
13
+ your application. In \Rails, database-backed model classes are derived from
14
+ ActiveRecord::Base. Active Record allows you to present the data from
15
+ database rows as objects and embellish these data objects with business logic
16
+ methods. You can read more about Active Record in its {README}[link:files/activerecord/README_rdoc.html].
17
+ Although most \Rails models are backed by a database, models can also be ordinary
18
+ Ruby classes, or Ruby classes that implement a set of interfaces as provided by
19
+ the Active Model module. You can read more about Active Model in its {README}[link:files/activemodel/README_rdoc.html].
20
+
21
+ The <em>Controller layer</em> is responsible for handling incoming HTTP requests and
22
+ providing a suitable response. Usually this means returning \HTML, but \Rails controllers
23
+ can also generate XML, JSON, PDFs, mobile-specific views, and more. Controllers load and
24
+ manipulate models, and render view templates in order to generate the appropriate HTTP response.
25
+ In \Rails, incoming requests are routed by Action Dispatch to an appropriate controller, and
26
+ controller classes are derived from ActionController::Base. Action Dispatch and Action Controller
27
+ are bundled together in Action Pack. You can read more about Action Pack in its
28
+ {README}[link:files/actionpack/README_rdoc.html].
29
+
30
+ The <em>View layer</em> is composed of "templates" that are responsible for providing
31
+ appropriate representations of your application's resources. Templates can
32
+ come in a variety of formats, but most view templates are \HTML with embedded
33
+ Ruby code (ERB files). Views are typically rendered to generate a controller response,
34
+ or to generate the body of an email. In \Rails, View generation is handled by Action View.
35
+ You can read more about Action View in its {README}[link:files/actionview/README_rdoc.html].
36
+
37
+ Active Record, Active Model, Action Pack, and Action View can each be used independently outside \Rails.
38
+ In addition to that, \Rails also comes with Action Mailer ({README}[link:files/actionmailer/README_rdoc.html]), a library
39
+ to generate and send emails; Active Job ({README}[link:files/activejob/README_md.html]), a
40
+ framework for declaring jobs and making them run on a variety of queueing
41
+ backends; Action Cable ({README}[link:files/actioncable/README_md.html]), a framework to
42
+ integrate WebSockets with a \Rails application;
43
+ Active Storage ({README}[link:files/activestorage/README_md.html]), a library to attach cloud
44
+ and local files to \Rails applications;
45
+ and Active Support ({README}[link:files/activesupport/README_rdoc.html]), a collection
46
+ of utility classes and standard library extensions that are useful for \Rails,
47
+ and may also be used independently outside \Rails.
33
48
 
34
49
  == Getting Started
35
50
 
@@ -45,29 +60,32 @@ can read more about Action Pack in its {README}[link:files/actionpack/README_rdo
45
60
 
46
61
  3. Change directory to +myapp+ and start the web server:
47
62
 
48
- $ cd myapp; rails server
63
+ $ cd myapp
64
+ $ rails server
49
65
 
50
66
  Run with <tt>--help</tt> or <tt>-h</tt> for options.
51
67
 
52
- 4. Go to http://localhost:3000 and you'll see:
53
-
54
- "Yay! You’re on Rails!"
68
+ 4. Go to <tt>http://localhost:3000</tt> and you'll see: "Yay! You’re on \Rails!"
55
69
 
56
70
  5. Follow the guidelines to start developing your application. You may find the following resources handy:
57
71
 
58
- * The \README file created within your application.
59
- * {Getting Started with \Rails}[http://guides.rubyonrails.org/getting_started.html].
60
- * {Ruby on \Rails Tutorial}[https://www.railstutorial.org/book].
61
- * {Ruby on \Rails Guides}[http://guides.rubyonrails.org].
62
- * {The API Documentation}[http://api.rubyonrails.org].
72
+ * The \README file created within your application.
73
+ * {Getting Started with \Rails}[http://guides.rubyonrails.org/getting_started.html].
74
+ * {Ruby on \Rails Guides}[http://guides.rubyonrails.org].
75
+ * {The API Documentation}[http://api.rubyonrails.org].
76
+ * {Ruby on \Rails Tutorial}[https://www.railstutorial.org/book].
63
77
 
64
78
  == Contributing
65
79
 
66
- We encourage you to contribute to Ruby on \Rails! Please check out the {Contributing to Rails
67
- guide}[http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html] for guidelines about how
68
- to proceed. {Join us}[http://contributors.rubyonrails.org]!
80
+ We encourage you to contribute to Ruby on \Rails! Please check out the
81
+ {Contributing to Ruby on \Rails guide}[http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html] for guidelines about how to proceed. {Join us!}[http://contributors.rubyonrails.org]
82
+
83
+ Trying to report a possible security vulnerability in \Rails? Please
84
+ check out our {security policy}[http://rubyonrails.org/security/] for
85
+ guidelines about how to proceed.
69
86
 
87
+ Everyone interacting in \Rails and its sub-projects' codebases, issue trackers, chat rooms, and mailing lists is expected to follow the \Rails {code of conduct}[http://rubyonrails.org/conduct/].
70
88
 
71
89
  == License
72
90
 
73
- Ruby on \Rails is released under the {MIT License}[http://www.opensource.org/licenses/MIT].
91
+ Ruby on \Rails is released under the {MIT License}[https://opensource.org/licenses/MIT].