railties 5.0.0 → 5.1.0

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