railties 5.0.7.2 → 5.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +77 -567
  3. data/MIT-LICENSE +1 -1
  4. data/RDOC_MAIN.rdoc +3 -3
  5. data/README.rdoc +1 -1
  6. data/exe/rails +2 -2
  7. data/lib/rails.rb +18 -18
  8. data/lib/rails/all.rb +1 -1
  9. data/lib/rails/api/generator.rb +28 -0
  10. data/lib/rails/api/task.rb +54 -42
  11. data/lib/rails/app_loader.rb +9 -9
  12. data/lib/rails/application.rb +30 -35
  13. data/lib/rails/application/bootstrap.rb +13 -7
  14. data/lib/rails/application/configuration.rb +30 -53
  15. data/lib/rails/application/default_middleware_stack.rb +3 -5
  16. data/lib/rails/application/finisher.rb +16 -7
  17. data/lib/rails/application/routes_reloader.rb +16 -1
  18. data/lib/rails/application_controller.rb +10 -10
  19. data/lib/rails/backtrace_cleaner.rb +5 -5
  20. data/lib/rails/cli.rb +7 -5
  21. data/lib/rails/code_statistics.rb +16 -17
  22. data/lib/rails/code_statistics_calculator.rb +3 -3
  23. data/lib/rails/command.rb +111 -0
  24. data/lib/rails/command/actions.rb +42 -0
  25. data/lib/rails/command/base.rb +149 -0
  26. data/lib/rails/command/behavior.rb +123 -0
  27. data/lib/rails/command/environment_argument.rb +34 -0
  28. data/lib/rails/commands.rb +2 -4
  29. data/lib/rails/commands/application/application_command.rb +29 -0
  30. data/lib/rails/commands/console/console_command.rb +89 -0
  31. data/lib/rails/commands/dbconsole/dbconsole_command.rb +155 -0
  32. data/lib/rails/commands/destroy/destroy_command.rb +21 -0
  33. data/lib/rails/commands/generate/generate_command.rb +23 -0
  34. data/lib/rails/commands/help/USAGE +15 -0
  35. data/lib/rails/commands/help/help_command.rb +13 -0
  36. data/lib/rails/commands/new/new_command.rb +15 -0
  37. data/lib/rails/commands/plugin/plugin_command.rb +43 -0
  38. data/lib/rails/commands/rake/rake_command.rb +49 -0
  39. data/lib/rails/commands/runner/USAGE +17 -0
  40. data/lib/rails/commands/runner/runner_command.rb +46 -0
  41. data/lib/rails/commands/secrets/USAGE +52 -0
  42. data/lib/rails/commands/secrets/secrets_command.rb +36 -0
  43. data/lib/rails/commands/server/server_command.rb +177 -0
  44. data/lib/rails/commands/test/test_command.rb +20 -0
  45. data/lib/rails/commands/version/version_command.rb +9 -0
  46. data/lib/rails/configuration.rb +7 -7
  47. data/lib/rails/console/app.rb +4 -4
  48. data/lib/rails/dev_caching.rb +8 -8
  49. data/lib/rails/engine.rb +62 -63
  50. data/lib/rails/engine/commands.rb +6 -13
  51. data/lib/rails/engine/configuration.rb +2 -2
  52. data/lib/rails/gem_version.rb +3 -3
  53. data/lib/rails/generators.rb +229 -313
  54. data/lib/rails/generators/actions.rb +20 -21
  55. data/lib/rails/generators/actions/create_migration.rb +24 -25
  56. data/lib/rails/generators/active_model.rb +3 -3
  57. data/lib/rails/generators/app_base.rb +123 -93
  58. data/lib/rails/generators/base.rb +32 -33
  59. data/lib/rails/generators/css/assets/assets_generator.rb +1 -1
  60. data/lib/rails/generators/erb.rb +14 -14
  61. data/lib/rails/generators/erb/controller/controller_generator.rb +1 -1
  62. data/lib/rails/generators/erb/mailer/mailer_generator.rb +12 -12
  63. data/lib/rails/generators/erb/scaffold/scaffold_generator.rb +3 -3
  64. data/lib/rails/generators/generated_attribute.rb +27 -27
  65. data/lib/rails/generators/js/assets/assets_generator.rb +1 -1
  66. data/lib/rails/generators/migration.rb +8 -8
  67. data/lib/rails/generators/model_helpers.rb +2 -2
  68. data/lib/rails/generators/named_base.rb +56 -56
  69. data/lib/rails/generators/rails/app/app_generator.rb +98 -81
  70. data/lib/rails/generators/rails/app/templates/Gemfile +7 -2
  71. data/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt +0 -2
  72. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +6 -4
  73. data/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.js +1 -1
  74. data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +2 -2
  75. data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +1 -1
  76. data/lib/rails/generators/rails/app/templates/bin/{setup → setup.tt} +6 -0
  77. data/lib/rails/generators/rails/app/templates/bin/{update → update.tt} +2 -1
  78. data/lib/rails/generators/rails/app/templates/bin/yarn +9 -0
  79. data/lib/rails/generators/rails/app/templates/config/cable.yml +1 -0
  80. data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +1 -0
  81. data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +1 -0
  82. data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +1 -0
  83. data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +2 -1
  84. data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +1 -0
  85. data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +1 -0
  86. data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +2 -2
  87. data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +1 -0
  88. data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +1 -1
  89. data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +1 -1
  90. data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +1 -1
  91. data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +10 -1
  92. data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +1 -1
  93. data/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb +4 -6
  94. data/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt +8 -3
  95. data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt +6 -5
  96. data/lib/rails/generators/rails/app/templates/config/locales/en.yml +10 -0
  97. data/lib/rails/generators/rails/app/templates/config/puma.rb +16 -7
  98. data/lib/rails/generators/rails/app/templates/config/secrets.yml +12 -2
  99. data/lib/rails/generators/rails/app/templates/gitignore +5 -1
  100. data/lib/rails/generators/rails/app/templates/package.json +5 -0
  101. data/lib/rails/generators/rails/app/templates/public/404.html +6 -6
  102. data/lib/rails/generators/rails/app/templates/public/422.html +6 -6
  103. data/lib/rails/generators/rails/app/templates/public/500.html +6 -6
  104. data/lib/rails/generators/rails/app/templates/public/robots.txt +0 -4
  105. data/lib/rails/generators/rails/app/templates/test/application_system_test_case.rb +5 -0
  106. data/lib/rails/generators/rails/app/templates/test/test_helper.rb +0 -1
  107. data/lib/rails/generators/rails/assets/assets_generator.rb +10 -10
  108. data/lib/rails/generators/rails/controller/controller_generator.rb +15 -12
  109. data/lib/rails/generators/rails/encrypted_secrets/encrypted_secrets_generator.rb +66 -0
  110. data/lib/rails/generators/rails/encrypted_secrets/templates/config/secrets.yml.enc +3 -0
  111. data/lib/rails/generators/rails/generator/generator_generator.rb +2 -3
  112. data/lib/rails/generators/rails/helper/helper_generator.rb +1 -1
  113. data/lib/rails/generators/rails/model/model_generator.rb +1 -1
  114. data/lib/rails/generators/rails/plugin/plugin_generator.rb +21 -26
  115. data/lib/rails/generators/rails/plugin/templates/bin/rails.tt +1 -0
  116. data/lib/rails/generators/rails/plugin/templates/bin/test.tt +3 -9
  117. data/lib/rails/generators/rails/plugin/templates/test/application_system_test_case.rb +5 -0
  118. data/lib/rails/generators/rails/plugin/templates/test/test_helper.rb +0 -3
  119. data/lib/rails/generators/rails/resource/resource_generator.rb +2 -2
  120. data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +5 -1
  121. data/lib/rails/generators/rails/scaffold/templates/scaffold.css +4 -8
  122. data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +2 -3
  123. data/lib/rails/generators/rails/system_test/USAGE +10 -0
  124. data/lib/rails/generators/rails/system_test/system_test_generator.rb +7 -0
  125. data/lib/rails/generators/rails/task/task_generator.rb +1 -2
  126. data/lib/rails/generators/resource_helpers.rb +13 -10
  127. data/lib/rails/generators/test_case.rb +5 -6
  128. data/lib/rails/generators/test_unit.rb +1 -1
  129. data/lib/rails/generators/test_unit/controller/controller_generator.rb +3 -3
  130. data/lib/rails/generators/test_unit/generator/generator_generator.rb +3 -3
  131. data/lib/rails/generators/test_unit/helper/helper_generator.rb +1 -1
  132. data/lib/rails/generators/test_unit/integration/integration_generator.rb +2 -2
  133. data/lib/rails/generators/test_unit/job/job_generator.rb +3 -3
  134. data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +5 -5
  135. data/lib/rails/generators/test_unit/model/model_generator.rb +3 -4
  136. data/lib/rails/generators/test_unit/plugin/plugin_generator.rb +2 -2
  137. data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +3 -3
  138. data/lib/rails/generators/test_unit/system/system_generator.rb +17 -0
  139. data/lib/rails/generators/test_unit/system/templates/application_system_test_case.rb +5 -0
  140. data/lib/rails/generators/test_unit/system/templates/system_test.rb +9 -0
  141. data/lib/rails/generators/testing/assertions.rb +4 -4
  142. data/lib/rails/generators/testing/behaviour.rb +20 -21
  143. data/lib/rails/info.rb +20 -20
  144. data/lib/rails/info_controller.rb +15 -15
  145. data/lib/rails/initializable.rb +6 -2
  146. data/lib/rails/mailers_controller.rb +11 -11
  147. data/lib/rails/paths.rb +4 -5
  148. data/lib/rails/plugin/test.rb +7 -0
  149. data/lib/rails/rack/logger.rb +44 -46
  150. data/lib/rails/railtie.rb +41 -38
  151. data/lib/rails/railtie/configurable.rb +6 -6
  152. data/lib/rails/railtie/configuration.rb +1 -1
  153. data/lib/rails/ruby_version_check.rb +1 -1
  154. data/lib/rails/secrets.rb +111 -0
  155. data/lib/rails/source_annotation_extractor.rb +15 -9
  156. data/lib/rails/tasks.rb +3 -2
  157. data/lib/rails/tasks/annotations.rake +3 -3
  158. data/lib/rails/tasks/dev.rake +2 -2
  159. data/lib/rails/tasks/engine.rake +4 -4
  160. data/lib/rails/tasks/framework.rake +4 -18
  161. data/lib/rails/tasks/initializers.rake +1 -1
  162. data/lib/rails/tasks/log.rake +14 -10
  163. data/lib/rails/tasks/middleware.rake +1 -1
  164. data/lib/rails/tasks/misc.rake +10 -10
  165. data/lib/rails/tasks/restart.rake +4 -4
  166. data/lib/rails/tasks/routes.rake +3 -12
  167. data/lib/rails/tasks/statistics.rake +3 -3
  168. data/lib/rails/tasks/tmp.rake +7 -7
  169. data/lib/rails/tasks/yarn.rake +11 -0
  170. data/lib/rails/templates/rails/mailers/email.html.erb +4 -1
  171. data/lib/rails/test_help.rb +28 -10
  172. data/lib/rails/test_unit/line_filtering.rb +69 -3
  173. data/lib/rails/test_unit/minitest_plugin.rb +139 -0
  174. data/lib/rails/test_unit/railtie.rb +2 -1
  175. data/lib/rails/test_unit/reporter.rb +3 -8
  176. data/lib/rails/test_unit/test_requirer.rb +28 -0
  177. data/lib/rails/test_unit/testing.rake +19 -14
  178. data/lib/rails/version.rb +1 -1
  179. data/lib/rails/welcome_controller.rb +1 -1
  180. metadata +53 -30
  181. data/lib/minitest/rails_plugin.rb +0 -49
  182. data/lib/rails/commands/application.rb +0 -17
  183. data/lib/rails/commands/commands_tasks.rb +0 -180
  184. data/lib/rails/commands/console.rb +0 -68
  185. data/lib/rails/commands/console_helper.rb +0 -34
  186. data/lib/rails/commands/dbconsole.rb +0 -173
  187. data/lib/rails/commands/destroy.rb +0 -11
  188. data/lib/rails/commands/generate.rb +0 -13
  189. data/lib/rails/commands/plugin.rb +0 -23
  190. data/lib/rails/commands/rake_proxy.rb +0 -41
  191. data/lib/rails/commands/runner.rb +0 -71
  192. data/lib/rails/commands/server.rb +0 -163
  193. data/lib/rails/commands/test.rb +0 -10
  194. data/lib/rails/engine/commands_tasks.rb +0 -118
  195. data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +0 -3
  196. data/lib/rails/rack/debugger.rb +0 -3
  197. data/lib/rails/test_unit/runner.rb +0 -141
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 106b8264fa51c06dea5de15edb45516eedfa06907dd70f1755427203484036e0
4
- data.tar.gz: 18f367db1328285a661375d9ab3e1f394f3c4fc297589c54063a03b374c6ddfe
2
+ SHA1:
3
+ metadata.gz: e880b16a919cc3d8a4c1e4d5af463543b65dabeb
4
+ data.tar.gz: 49348dad3c1e30a80b51255bf9ab795e581a3193
5
5
  SHA512:
6
- metadata.gz: c0de04ef51f4ce6f2e7d0a0e79bb8846367dbe535ab75e0d38d97a1376037f897878d5510e4ce5228915ed96df9c04761e08e4e03fefe451f47359ef08a74ace
7
- data.tar.gz: c108aab58d737aff9a171db1af911ca82fed949447925e3e3aa799881d4d625857347b827431e7aaaff13e3dbafc3eb5a8276c5eb6c54e69aee6f67240381543
6
+ metadata.gz: 363fb1df7296e63daa7e265196aefb5ecc4d73068b87b89deeb7a20e586783d8737428a86f08e9fca59da0a215d65ea8d3e1f068f99ed245c37ddd70a9b0ec3d
7
+ data.tar.gz: 37021a5573c68336ed17ec9cac218007d804d966d02adfdbadb7e566029e8343b5e0ba9a0e5bbb903d6b111c10b24c63fb1d00b8da8d651c77cb0e15b27ba738
@@ -1,71 +1,27 @@
1
- ## Rails 5.0.7.2 (March 11, 2019) ##
1
+ ## Rails 5.1.0.beta1 (February 23, 2017) ##
2
2
 
3
- * No changes.
4
-
5
-
6
- ## Rails 5.0.7.1 (November 27, 2018) ##
7
-
8
- * No changes.
9
-
10
-
11
- ## Rails 5.0.7 (March 29, 2018) ##
12
-
13
- Fix check for minimum Ruby version to correctly identify Ruby 2.2.10.
14
-
15
- *shia*
16
-
17
-
18
- ## Rails 5.0.6 (September 07, 2017) ##
19
-
20
- * No changes.
21
-
22
-
23
- ## Rails 5.0.6.rc1 (August 24, 2017) ##
24
-
25
- * No changes.
26
-
27
-
28
- ## Rails 5.0.5 (July 31, 2017) ##
29
-
30
- * No changes.
31
-
32
-
33
- ## Rails 5.0.5.rc2 (July 25, 2017) ##
34
-
35
- * Regression fix: Allow `bin/rails test` to take absolute paths to tests.
36
-
37
- *Pawan Dubey*
38
-
39
- ## Rails 5.0.5.rc1 (July 19, 2017) ##
40
-
41
- * Make Rails' test runner work better with minitest plugins.
42
-
43
- By demoting the Rails test runner to just another minitest plugin —
44
- and thereby not eager loading it — we can co-exist much better with
45
- other minitest plugins such as pride and minitest-focus.
46
-
47
- *Kasper Timm Hansen*
48
-
49
- ## Rails 5.0.4 (June 19, 2017) ##
3
+ * Fix running multiple tests in one `rake` command
50
4
 
51
- * No changes.
5
+ e.g. `bin/rake test:models test:controllers`
52
6
 
7
+ *Dominic Cleal*
53
8
 
54
- ## Rails 5.0.3 (May 12, 2017) ##
9
+ * Add option to configure Ruby's warning behaviour to test runner.
55
10
 
56
- * Namespace error pages' CSS selectors to stop the styles from bleeding into other pages
57
- when using Turbolinks.
11
+ *Yuji Yaginuma*
58
12
 
59
- *Jan Krutisch*
13
+ * Initialize git repo when generating new app, if option `--skip-git`
14
+ is not provided.
60
15
 
16
+ *Dino Maric*
61
17
 
62
- ## Rails 5.0.2 (March 01, 2017) ##
18
+ * Install Byebug gem as default in Windows (mingw and x64_mingw) platform.
63
19
 
64
- * Fix running multiple tests in one `rake` command
20
+ *Junichi Ito*
65
21
 
66
- e.g. `bin/rake test:models test:controllers`
22
+ * Make every Rails command work within engines.
67
23
 
68
- *Dominic Cleal*
24
+ *Sean Collins*, *Yuji Yaginuma*
69
25
 
70
26
  * Don't generate HTML/ERB templates for scaffold controller with `--api` flag.
71
27
 
@@ -77,572 +33,126 @@ Fix check for minimum Ruby version to correctly identify Ruby 2.2.10.
77
33
 
78
34
  *Daniel Deng*
79
35
 
80
- * Reset a new session directly after its creation in ActionDispatch::IntegrationTest#open_session
81
-
82
- Fixes Issue #22742
83
-
84
- *Tawan Sierek*
85
-
86
-
87
- ## Rails 5.0.1 (December 21, 2016) ##
88
-
89
- * No changes.
90
-
91
-
92
- ## Rails 5.0.1.rc2 (December 10, 2016) ##
93
-
94
- * No changes.
95
-
96
-
97
- ## Rails 5.0.1.rc1 (December 01, 2016) ##
98
-
99
- * Add `:skip_sprockets` to `Rails::PluginBuilder::PASSTHROUGH_OPTIONS`
100
-
101
- *Tsukuru Tanimichi*
102
-
103
- * Run `Minitest.after_run` hooks when running `rails test`.
104
-
105
- *Michael Grosser*
106
-
107
- * Run `before_configuration` callbacks as soon as application constant
108
- inherits from `Rails::Application`.
109
-
110
- Fixes #19880.
111
-
112
- *Yuji Yaginuma*
113
-
114
- * Do not run `bundle install` when generating a new plugin.
115
-
116
- Since bundler 1.12.0, the gemspec is validated so the `bundle install`
117
- command will fail just after the gem is created causing confusion to the
118
- users. This change was a bug fix to correctly validate gemspecs.
36
+ * Remove deprecated `CONTROLLER` environment variable for `routes` task.
119
37
 
120
38
  *Rafael Mendonça França*
121
39
 
40
+ * Remove deprecated tasks: `rails:update`, `rails:template`, `rails:template:copy`,
41
+ `rails:update:configs` and `rails:update:bin`.
122
42
 
123
- ## Rails 5.0.0 (June 30, 2016) ##
124
-
125
- * Ensure `/rails/info` routes match in development for apps with a catch-all globbing route.
126
-
127
- *Nicholas Firth-McCoy*
128
-
129
- * Default `config.assets.quiet = true` in the development environment. Suppress
130
- logging of assets requests by default.
131
-
132
- *Kevin McPhillips*
133
-
134
- * Add `config/initializers/to_time_preserves_timezone.rb`, which tells
135
- Active Support to preserve the receiver's timezone when calling `to_time`.
136
- This matches the new behavior that will be part of Ruby 2.4.
137
-
138
- Fixes #24617.
139
-
140
- *Andrew White*
141
-
142
- * Make `rails restart` command work with Puma by passing the restart command
143
- which Puma can use to restart rails server.
144
-
145
- *Prathamesh Sonpatki*
146
-
147
- * The application generator writes a new file `config/spring.rb`, which tells
148
- Spring to watch additional common files.
149
-
150
- *Xavier Noria*
151
-
152
- * The tasks in the rails task namespace is deprecated in favor of app namespace.
153
- (e.g. `rails:update` and `rails:template` tasks is renamed to `app:update` and `app:template`.)
154
-
155
- *Ryo Hashimoto*
156
-
157
- * Enable HSTS with IncludeSudomains header for new applications.
158
-
159
- *Egor Homakov*, *Prathamesh Sonpatki*
160
-
161
- * Alias `rake` with `rails_command` in the Rails Application Templates API
162
- following Rails 5 convention of preferring "rails" to "rake" to run tasks.
163
-
164
- *claudiob*
165
-
166
- * Generate applications with an option to log to STDOUT in production
167
- using the environment variable `RAILS_LOG_TO_STDOUT`.
168
-
169
- *Richard Schneeman*
170
-
171
- * Change fail fast of `bin/rails test` interrupts run on error.
172
-
173
- *Yuji Yaginuma*
174
-
175
- * The application generator supports `--skip-listen` to opt-out of features
176
- that depend on the listen gem. As of this writing they are the evented file
177
- system monitor and the async plugin for spring.
178
-
179
- * The Gemfiles of new applications include spring-watcher-listen on Linux and
180
- Mac OS X (unless `--skip-spring`).
181
-
182
- *Xavier Noria*
183
-
184
- * New applications are generated with the evented file system monitor enabled
185
- on Linux and Mac OS X.
186
-
187
- *Xavier Noria*
188
-
189
- * Add dummy files for apple-touch-icon.png and apple-touch-icon.png.
190
-
191
- See #23427.
192
-
193
- *Alexey Zabelin*
194
-
195
- * Add `after_bundle` callbacks in Rails plugin templates. Useful for allowing
196
- templates to perform actions that are dependent upon `bundle install`.
197
-
198
- *Ryan Manuel*
199
-
200
- * Bring back `TEST=` env for `rake test` task.
201
-
202
- *Yves Senn*
203
-
204
- * Specify log file names or all logs to clear `rake log:clear`
205
-
206
- Specify which logs to clear when using the `rake log:clear` task, e.g. `rake log:clear LOGS=test,staging`
207
-
208
- Clear all logs from log/*.log e.g. `rake log:clear LOGS=all`
209
-
210
- By default `rake log:clear` clears standard environment log files i.e. 'development,test,production'
211
-
212
- *Pramod Shinde*
213
-
214
- * Fix using `add_source` with a block after using `gem` in a custom generator.
215
-
216
- *Will Fisher*
217
-
218
- * Newly generated plugins get a `README.md` in Markdown.
219
-
220
- *Yuji Yaginuma*
221
-
222
- * The generated config file for the development environment includes a new
223
- config line, commented out, showing how to enable the evented file watcher.
224
-
225
- *Xavier Noria*
226
-
227
- * `config.debug_exception_response_format` configures the format used
228
- in responses when errors occur in development mode.
229
-
230
- Set `config.debug_exception_response_format` to render an HTML page with
231
- debug info (using the value `:default`) or render debug info preserving
232
- the response format (using the value `:api`).
233
-
234
- *Jorge Bejar*
235
-
236
- * Fix setting exit status code for rake test tasks. The exit status code
237
- was not set when tests were fired with `rake`. Now, it is being set and it matches
238
- behavior of running tests via `rails` command (`rails test`), so no matter if
239
- `rake test` or `rails test` command is used the exit code will be set.
240
-
241
- *Arkadiusz Fal*
242
-
243
- * Add Command infrastructure to replace rake.
244
-
245
- Also move `rake dev:cache` to new infrastructure. You'll need to use
246
- `rails dev:cache` to toggle development caching from now on.
247
-
248
- *Chuck Callebs*
249
-
250
- * Allow use of `minitest-rails` gem with Rails test runner.
251
-
252
- Fixes #22455.
253
-
254
- *Chris Kottom*
255
-
256
- * Add `bin/test` script to rails plugin.
257
-
258
- `bin/test` can use the same API as `bin/rails test`.
259
-
260
- *Yuji Yaginuma*
261
-
262
- * Make `static_index` part of the `config.public_file_server` config and
263
- call it `config.public_file_server.index_name`.
264
-
265
- *Yuki Nishijima*
266
-
267
- * Deprecate `config.serve_static_files` in favor of `config.public_file_server.enabled`.
268
-
269
- Unifies the static asset options under `config.public_file_server`.
270
-
271
- To upgrade, replace occurrences of:
272
-
273
- ```
274
- config.serve_static_files = # false or true
275
- ```
276
-
277
- in your environment files, with:
278
-
279
- ```
280
- config.public_file_server.enabled = # false or true
281
- ```
282
-
283
- *Kasper Timm Hansen*
284
-
285
- * Deprecate `config.static_cache_control` in favor of
286
- `config.public_file_server.headers`.
287
-
288
- To upgrade, replace occurrences of:
289
-
290
- ```
291
- config.static_cache_control = 'public, max-age=60'
292
- ```
293
-
294
- in your environment files, with:
295
-
296
- ```
297
- config.public_file_server.headers = {
298
- 'Cache-Control' => 'public, max-age=60'
299
- }
300
- ```
301
-
302
- `config.public_file_server.headers` can set arbitrary headers, sent along when
303
- a response is delivered.
304
-
305
- *Yuki Nishijima*
306
-
307
- * Route generators are now idempotent.
308
- Running generators several times no longer require you to cleanup routes.rb.
309
-
310
- *Thiago Pinto*
311
-
312
- * Allow passing an environment to `config_for`.
313
-
314
- *Simon Eskildsen*
315
-
316
- * Allow `rake stats` to account for rake tasks in lib/tasks.
317
-
318
- *Kevin Deisz*
319
-
320
- * Added javascript to update the URL on mailer previews with the currently
321
- selected email format. Reloading the page now keeps you on your selected
322
- format rather than going back to the default html version.
323
-
324
- *James Kerr*
325
-
326
- * Add fail fast to `bin/rails test`.
327
-
328
- Adding `--fail-fast` or `-f` when running tests will interrupt the run on
329
- the first failure:
330
-
331
- ```
332
- # Running:
333
-
334
- ................................................S......E
335
-
336
- ArgumentError: Wups! Bet you didn't expect this!
337
- test/models/bunny_test.rb:19:in `block in <class:BunnyTest>'
338
-
339
- bin/rails test test/models/bunny_test.rb:18
340
-
341
- ....................................F
342
-
343
- This failed
344
-
345
- bin/rails test test/models/bunny_test.rb:14
346
-
347
- Interrupted. Exiting...
348
-
349
-
350
- Finished in 0.051427s, 1808.3872 runs/s, 1769.4972 assertions/s.
351
-
352
- ```
353
-
354
- Note that any unexpected errors don't abort the run.
355
-
356
- *Kasper Timm Hansen*
357
-
358
- * Add inline output to `bin/rails test`.
359
-
360
- Any failures or errors (and skips if running in verbose mode) are output
361
- during a test run:
362
-
363
- ```
364
- # Running:
365
-
366
- .....S..........................................F
367
-
368
- This failed
369
-
370
- bin/rails test test/models/bunny_test.rb:14
371
-
372
- .................................E
373
-
374
- ArgumentError: Wups! Bet you didn't expect this!
375
- test/models/bunny_test.rb:19:in `block in <class:BunnyTest>'
376
-
377
- bin/rails test test/models/bunny_test.rb:18
378
-
379
- ....................
380
-
381
- Finished in 0.069708s, 1477.6019 runs/s, 1448.9106 assertions/s.
382
- ```
383
-
384
- Output can be deferred to after a run with the `--defer-output` option.
385
-
386
- *Kasper Timm Hansen*
387
-
388
- * Fix displaying mailer previews on non local requests when config
389
- `config.action_mailer.show_previews` is set.
390
-
391
- *Wojciech Wnętrzak*
392
-
393
- * `rails server` will now honour the `PORT` environment variable
394
-
395
- *David Cornu*
396
-
397
- * Plugins generated using `rails plugin new` are now generated with the
398
- version number set to 0.1.0.
399
-
400
- *Daniel Morris*
401
-
402
- * `I18n.load_path` is now reloaded under development so there's no need to
403
- restart the server to make new locale files available. Also, I18n will no
404
- longer raise for deleted locale files.
405
-
406
- *Kir Shatrov*
407
-
408
- * Add `bin/update` script to update development environment automatically.
409
-
410
- *Mehmet Emin İNAÇ*
411
-
412
- * Fix STATS_DIRECTORIES already defined warning when running rake from within
413
- the top level directory of an engine that has a test app.
414
-
415
- Fixes #20510.
416
-
417
- *Ersin Akinci*
418
-
419
- * Make enabling or disabling caching in development mode possible with
420
- `rake dev:cache`.
421
-
422
- Running `rake dev:cache` will create or remove tmp/caching-dev.txt. When this
423
- file exists `config.action_controller.perform_caching` will be set to true in
424
- config/environments/development.rb.
425
-
426
- Additionally, a server can be started with either `--dev-caching` or
427
- `--no-dev-caching` included to toggle caching on startup.
428
-
429
- *Jussi Mertanen*, *Chuck Callebs*
430
-
431
- * Add a `--api` option in order to generate plugins that can be added
432
- inside an API application.
433
-
434
- *Robin Dupret*
435
-
436
- * Fix `NoMethodError` when generating a scaffold inside a full engine.
437
-
438
- *Yuji Yaginuma*
439
-
440
- * Adding support for passing a block to the `add_source` action of a custom generator.
441
-
442
- *Mike Dalton*, *Hirofumi Wakasugi*
443
-
444
- * `assert_file` now understands paths with special characters
445
- (eg. `v0.1.4~alpha+nightly`).
446
-
447
- *Diego Carrion*
43
+ *Rafael Mendonça França*
448
44
 
449
- * Remove ContentLength middleware from the defaults. If you want it, just
450
- add it as a middleware in your config.
45
+ * Remove deprecated file `rails/rack/debugger`.
451
46
 
452
- *Egg McMuffin*
47
+ *Rafael Mendonça França*
453
48
 
454
- * Make it possible to customize the executable inside rerun snippets.
49
+ * Remove deprecated `config.serve_static_files`.
455
50
 
456
- *Yves Senn*
51
+ *Rafael Mendonça França*
457
52
 
458
- * Add support for API only apps.
459
- Middleware stack was slimmed down and it has only the needed
460
- middleware for API apps & generators generates the right files,
461
- folders and configurations.
53
+ * Remove deprecated `config.static_cache_control`.
462
54
 
463
- *Santiago Pastorino*, *Jorge Bejar*
55
+ *Rafael Mendonça França*
464
56
 
465
- * Make generated scaffold functional tests work inside engines.
57
+ * The `log:clear` task clear all environments log files by default.
466
58
 
467
59
  *Yuji Yaginuma*
468
60
 
469
- * Generate a `.keep` file in the `tmp` folder by default as many scripts
470
- assume the existence of this folder and most would fail if it is absent.
61
+ * Add Webpack support in new apps via the --webpack option, which will delegate to the rails/webpacker gem.
471
62
 
472
- See #20299.
63
+ To generate a new app that has Webpack dependencies configured and binstubs for webpack and webpack-watcher:
473
64
 
474
- *Yoong Kang Lim*, *Sunny Juneja*
65
+ `rails new myapp --webpack`
475
66
 
476
- * `config.static_index` configures directory `index.html` filename
67
+ To generate a new app that has Webpack + React configured and an example intalled:
477
68
 
478
- Set `config.static_index` to serve a static directory index file not named
479
- `index`. E.g. to serve `main.html` instead of `index.html` for directory
480
- requests, set `config.static_index` to `"main"`.
69
+ `rails new myapp --webpack=react`
481
70
 
482
- *Eliot Sykes*
71
+ *DHH*
483
72
 
484
- * `bin/setup` uses built-in rake tasks (`log:clear`, `tmp:clear`).
73
+ * Add Yarn support in new apps with a yarn binstub and package.json. Skippable via --skip-yarn option.
485
74
 
486
- *Mohnish Thallavajhula*
75
+ *Liceth Ovalles*, *Guillermo Iguaran*, *DHH*
487
76
 
488
- * Fix mailer previews with attachments by using the mail gem's own API to
489
- locate the first part of the correct mime type.
77
+ * Removed jquery-rails from default stack, instead rails-ujs that is shipped
78
+ with Action View is included as default UJS adapter.
490
79
 
491
- Fixes #14435.
80
+ *Guillermo Iguaran*
492
81
 
493
- *Andrew White*
82
+ * The config file `secrets.yml` is now loaded in with all keys as symbols.
83
+ This allows secrets files to contain more complex information without all
84
+ child keys being strings while parent keys are symbols.
494
85
 
495
- * Remove sqlite support from `rails dbconsole`.
86
+ *Isaac Sloan*
496
87
 
497
- *Andrew White*
88
+ * Add `:skip_sprockets` to `Rails::PluginBuilder::PASSTHROUGH_OPTIONS`
498
89
 
499
- * Rename `railties/bin` to `railties/exe` to match the new Bundler executables
500
- convention.
90
+ *Tsukuru Tanimichi*
501
91
 
502
- *Islam Wazery*
92
+ * Allow the use of listen's 3.1.x branch
503
93
 
504
- * Print `bundle install` output in `rails new` as soon as it's available.
94
+ *Esteban Santana Santana*
505
95
 
506
- Running `rails new` will now print the output of `bundle install` as
507
- it is available, instead of waiting until all gems finish installing.
96
+ * Run `Minitest.after_run` hooks when running `rails test`.
508
97
 
509
- *Max Holder*
98
+ *Michael Grosser*
510
99
 
511
- * Respect `pluralize_table_names` when generating fixture file.
100
+ * Run `before_configuration` callbacks as soon as application constant
101
+ inherits from `Rails::Application`.
512
102
 
513
- Fixes #19519.
103
+ Fixes #19880.
514
104
 
515
105
  *Yuji Yaginuma*
516
106
 
517
- * Add a new-line to the end of route method generated code.
518
-
519
- We need to add a `\n`, because we cannot have two routes
520
- in the same line.
521
-
522
- *arthurnn*
523
-
524
- * Add `rake initializers`.
525
-
526
- This task prints out all defined initializers in the order they are invoked
527
- by Rails. This is helpful for debugging issues related to the initialization
528
- process.
529
-
530
- *Naoto Kaneko*
531
-
532
- * Created rake restart task. Restarts your Rails app by touching the
533
- `tmp/restart.txt`.
534
-
535
- See #18876.
536
-
537
- *Hyonjee Joo*
538
-
539
- * Add `config/initializers/active_record_belongs_to_required_by_default.rb`.
540
-
541
- Newly generated Rails apps have a new initializer called
542
- `active_record_belongs_to_required_by_default.rb` which sets the value of
543
- the configuration option `config.active_record.belongs_to_required_by_default`
544
- to `true` when ActiveRecord is not skipped.
545
-
546
- As a result, new Rails apps require `belongs_to` association on model
547
- to be valid.
548
-
549
- This initializer is *not* added when running `rake rails:update`, so
550
- old apps ported to Rails 5 will work without any change.
551
-
552
- *Josef Šimánek*
553
-
554
- * `delete` operations in configurations are run last in order to eliminate
555
- 'No such middleware' errors when `insert_before` or `insert_after` are added
556
- after the `delete` operation for the middleware being deleted.
107
+ * A generated app should not include Uglifier with `--skip-javascript` option.
557
108
 
558
- Fixes #16433.
109
+ *Ben Pickles*
559
110
 
560
- *Guo Xiang Tan*
111
+ * Set session store to cookie store internally and remove the initializer from
112
+ the generated app.
561
113
 
562
- * Newly generated applications get a `README.md` in Markdown.
563
-
564
- *Xavier Noria*
565
-
566
- * Remove the documentation tasks `doc:app`, `doc:rails`, and `doc:guides`.
567
-
568
- *Xavier Noria*
569
-
570
- * Force generated routes to be inserted into `config/routes.rb`.
571
-
572
- *Andrew White*
573
-
574
- * Don't remove all line endings from `config/routes.rb` when revoking scaffold.
575
-
576
- Fixes #15913.
577
-
578
- *Andrew White*
579
-
580
- * Rename `--skip-test-unit` option to `--skip-test` in app generator
581
-
582
- *Melanie Gilman*
583
-
584
- * Add the `method_source` gem to the default Gemfile for apps.
585
-
586
- *Sean Griffin*
587
-
588
- * Drop old test locations from `rake stats`:
114
+ *Prathamesh Sonpatki*
589
115
 
590
- - test/functional
591
- - test/unit
116
+ * Set the server host using the `HOST` environment variable.
592
117
 
593
- *Ravil Bayramgalin*
118
+ *mahnunchik*
594
119
 
595
- * Update `rake stats` to correctly count declarative tests
596
- as methods in `_test.rb` files.
120
+ * Add public API to register new folders for `rake notes`:
597
121
 
598
- *Ravil Bayramgalin*
122
+ config.annotations.register_directories('spec', 'features')
599
123
 
600
- * Remove deprecated `test:all` and `test:all:db` tasks.
124
+ *John Meehan*
601
125
 
602
- *Rafael Mendonça França*
126
+ * Display name of the class defining the initializer along with the initializer
127
+ name in the output of `rails initializers`.
603
128
 
604
- * Remove deprecated `Rails::Rack::LogTailer`.
129
+ Before:
130
+ disable_dependency_loading
605
131
 
606
- *Rafael Mendonça França*
132
+ After:
133
+ DemoApp::Application.disable_dependency_loading
607
134
 
608
- * Remove deprecated `RAILS_CACHE` constant.
135
+ *ta1kt0me*
609
136
 
610
- *Rafael Mendonça França*
137
+ * Do not run `bundle install` when generating a new plugin.
611
138
 
612
- * Remove deprecated `serve_static_assets` configuration.
139
+ Since bundler 1.12.0, the gemspec is validated so the `bundle install`
140
+ command will fail just after the gem is created causing confusion to the
141
+ users. This change was a bug fix to correctly validate gemspecs.
613
142
 
614
143
  *Rafael Mendonça França*
615
144
 
616
- * Use local variables in `_form.html.erb` partial generated by scaffold.
617
-
618
- *Andrew Kozlov*
619
-
620
- * Add `config/initializers/callback_terminator.rb`.
621
-
622
- Newly generated Rails apps have a new initializer called
623
- `callback_terminator.rb` which sets the value of the configuration option
624
- `ActiveSupport.halt_callback_chains_on_return_false` to `false`.
625
-
626
- As a result, new Rails apps do not halt Active Record and Active Model
627
- callback chains when a callback returns `false`; only when they are
628
- explicitly halted with `throw(:abort)`.
629
-
630
- The terminator is *not* added when running `rake rails:update`, so returning
631
- `false` will still work on old apps ported to Rails 5, displaying a
632
- deprecation warning to prompt users to update their code to the new syntax.
633
-
634
- *claudiob*
635
-
636
- * Generated fixtures won't use the id when generated with references attributes.
145
+ * Default `config.assets.quiet = true` in the development environment. Suppress
146
+ logging of assets requests by default.
637
147
 
638
- *Pablo Olmos de Aguilera Corradini*
148
+ *Kevin McPhillips*
639
149
 
640
- * Add `--skip-action-mailer` option to the app generator.
150
+ * Ensure `/rails/info` routes match in development for apps with a catch-all globbing route.
641
151
 
642
- *claudiob*
152
+ *Nicholas Firth-McCoy*
643
153
 
644
- * Autoload any second level directories called `app/*/concerns`.
154
+ * Added a shared section to `config/secrets.yml` that will be loaded for all environments.
645
155
 
646
- *Alex Robbin*
156
+ *DHH*
647
157
 
648
- Please check [4-2-stable](https://github.com/rails/rails/blob/4-2-stable/railties/CHANGELOG.md) for previous changes.
158
+ Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/railties/CHANGELOG.md) for previous changes.