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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +77 -567
- data/MIT-LICENSE +1 -1
- data/RDOC_MAIN.rdoc +3 -3
- data/README.rdoc +1 -1
- data/exe/rails +2 -2
- data/lib/rails.rb +18 -18
- data/lib/rails/all.rb +1 -1
- data/lib/rails/api/generator.rb +28 -0
- data/lib/rails/api/task.rb +54 -42
- data/lib/rails/app_loader.rb +9 -9
- data/lib/rails/application.rb +30 -35
- data/lib/rails/application/bootstrap.rb +13 -7
- data/lib/rails/application/configuration.rb +30 -53
- data/lib/rails/application/default_middleware_stack.rb +3 -5
- data/lib/rails/application/finisher.rb +16 -7
- data/lib/rails/application/routes_reloader.rb +16 -1
- data/lib/rails/application_controller.rb +10 -10
- data/lib/rails/backtrace_cleaner.rb +5 -5
- data/lib/rails/cli.rb +7 -5
- data/lib/rails/code_statistics.rb +16 -17
- data/lib/rails/code_statistics_calculator.rb +3 -3
- data/lib/rails/command.rb +111 -0
- data/lib/rails/command/actions.rb +42 -0
- data/lib/rails/command/base.rb +149 -0
- data/lib/rails/command/behavior.rb +123 -0
- data/lib/rails/command/environment_argument.rb +34 -0
- data/lib/rails/commands.rb +2 -4
- data/lib/rails/commands/application/application_command.rb +29 -0
- data/lib/rails/commands/console/console_command.rb +89 -0
- data/lib/rails/commands/dbconsole/dbconsole_command.rb +155 -0
- data/lib/rails/commands/destroy/destroy_command.rb +21 -0
- data/lib/rails/commands/generate/generate_command.rb +23 -0
- data/lib/rails/commands/help/USAGE +15 -0
- data/lib/rails/commands/help/help_command.rb +13 -0
- data/lib/rails/commands/new/new_command.rb +15 -0
- data/lib/rails/commands/plugin/plugin_command.rb +43 -0
- data/lib/rails/commands/rake/rake_command.rb +49 -0
- data/lib/rails/commands/runner/USAGE +17 -0
- data/lib/rails/commands/runner/runner_command.rb +46 -0
- data/lib/rails/commands/secrets/USAGE +52 -0
- data/lib/rails/commands/secrets/secrets_command.rb +36 -0
- data/lib/rails/commands/server/server_command.rb +177 -0
- data/lib/rails/commands/test/test_command.rb +20 -0
- data/lib/rails/commands/version/version_command.rb +9 -0
- data/lib/rails/configuration.rb +7 -7
- data/lib/rails/console/app.rb +4 -4
- data/lib/rails/dev_caching.rb +8 -8
- data/lib/rails/engine.rb +62 -63
- data/lib/rails/engine/commands.rb +6 -13
- data/lib/rails/engine/configuration.rb +2 -2
- data/lib/rails/gem_version.rb +3 -3
- data/lib/rails/generators.rb +229 -313
- data/lib/rails/generators/actions.rb +20 -21
- data/lib/rails/generators/actions/create_migration.rb +24 -25
- data/lib/rails/generators/active_model.rb +3 -3
- data/lib/rails/generators/app_base.rb +123 -93
- data/lib/rails/generators/base.rb +32 -33
- data/lib/rails/generators/css/assets/assets_generator.rb +1 -1
- data/lib/rails/generators/erb.rb +14 -14
- data/lib/rails/generators/erb/controller/controller_generator.rb +1 -1
- data/lib/rails/generators/erb/mailer/mailer_generator.rb +12 -12
- data/lib/rails/generators/erb/scaffold/scaffold_generator.rb +3 -3
- data/lib/rails/generators/generated_attribute.rb +27 -27
- data/lib/rails/generators/js/assets/assets_generator.rb +1 -1
- data/lib/rails/generators/migration.rb +8 -8
- data/lib/rails/generators/model_helpers.rb +2 -2
- data/lib/rails/generators/named_base.rb +56 -56
- data/lib/rails/generators/rails/app/app_generator.rb +98 -81
- data/lib/rails/generators/rails/app/templates/Gemfile +7 -2
- data/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt +0 -2
- data/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +6 -4
- data/lib/rails/generators/rails/app/templates/app/assets/javascripts/cable.js +1 -1
- data/lib/rails/generators/rails/app/templates/app/assets/stylesheets/application.css +2 -2
- data/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/bin/{setup → setup.tt} +6 -0
- data/lib/rails/generators/rails/app/templates/bin/{update → update.tt} +2 -1
- data/lib/rails/generators/rails/app/templates/bin/yarn +9 -0
- data/lib/rails/generators/rails/app/templates/config/cable.yml +1 -0
- data/lib/rails/generators/rails/app/templates/config/databases/frontbase.yml +1 -0
- data/lib/rails/generators/rails/app/templates/config/databases/ibm_db.yml +1 -0
- data/lib/rails/generators/rails/app/templates/config/databases/jdbc.yml +1 -0
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcmysql.yml +2 -1
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml +1 -0
- data/lib/rails/generators/rails/app/templates/config/databases/jdbcsqlite3.yml +1 -0
- data/lib/rails/generators/rails/app/templates/config/databases/mysql.yml +2 -2
- data/lib/rails/generators/rails/app/templates/config/databases/oracle.yml +1 -0
- data/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml +1 -1
- data/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml +1 -1
- data/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt +10 -1
- data/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt +1 -1
- data/lib/rails/generators/rails/app/templates/config/initializers/application_controller_renderer.rb +4 -6
- data/lib/rails/generators/rails/app/templates/config/initializers/assets.rb.tt +8 -3
- data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt +6 -5
- data/lib/rails/generators/rails/app/templates/config/locales/en.yml +10 -0
- data/lib/rails/generators/rails/app/templates/config/puma.rb +16 -7
- data/lib/rails/generators/rails/app/templates/config/secrets.yml +12 -2
- data/lib/rails/generators/rails/app/templates/gitignore +5 -1
- data/lib/rails/generators/rails/app/templates/package.json +5 -0
- data/lib/rails/generators/rails/app/templates/public/404.html +6 -6
- data/lib/rails/generators/rails/app/templates/public/422.html +6 -6
- data/lib/rails/generators/rails/app/templates/public/500.html +6 -6
- data/lib/rails/generators/rails/app/templates/public/robots.txt +0 -4
- data/lib/rails/generators/rails/app/templates/test/application_system_test_case.rb +5 -0
- data/lib/rails/generators/rails/app/templates/test/test_helper.rb +0 -1
- data/lib/rails/generators/rails/assets/assets_generator.rb +10 -10
- data/lib/rails/generators/rails/controller/controller_generator.rb +15 -12
- data/lib/rails/generators/rails/encrypted_secrets/encrypted_secrets_generator.rb +66 -0
- data/lib/rails/generators/rails/encrypted_secrets/templates/config/secrets.yml.enc +3 -0
- data/lib/rails/generators/rails/generator/generator_generator.rb +2 -3
- data/lib/rails/generators/rails/helper/helper_generator.rb +1 -1
- data/lib/rails/generators/rails/model/model_generator.rb +1 -1
- data/lib/rails/generators/rails/plugin/plugin_generator.rb +21 -26
- data/lib/rails/generators/rails/plugin/templates/bin/rails.tt +1 -0
- data/lib/rails/generators/rails/plugin/templates/bin/test.tt +3 -9
- data/lib/rails/generators/rails/plugin/templates/test/application_system_test_case.rb +5 -0
- data/lib/rails/generators/rails/plugin/templates/test/test_helper.rb +0 -3
- data/lib/rails/generators/rails/resource/resource_generator.rb +2 -2
- data/lib/rails/generators/rails/scaffold/scaffold_generator.rb +5 -1
- data/lib/rails/generators/rails/scaffold/templates/scaffold.css +4 -8
- data/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb +2 -3
- data/lib/rails/generators/rails/system_test/USAGE +10 -0
- data/lib/rails/generators/rails/system_test/system_test_generator.rb +7 -0
- data/lib/rails/generators/rails/task/task_generator.rb +1 -2
- data/lib/rails/generators/resource_helpers.rb +13 -10
- data/lib/rails/generators/test_case.rb +5 -6
- data/lib/rails/generators/test_unit.rb +1 -1
- data/lib/rails/generators/test_unit/controller/controller_generator.rb +3 -3
- data/lib/rails/generators/test_unit/generator/generator_generator.rb +3 -3
- data/lib/rails/generators/test_unit/helper/helper_generator.rb +1 -1
- data/lib/rails/generators/test_unit/integration/integration_generator.rb +2 -2
- data/lib/rails/generators/test_unit/job/job_generator.rb +3 -3
- data/lib/rails/generators/test_unit/mailer/mailer_generator.rb +5 -5
- data/lib/rails/generators/test_unit/model/model_generator.rb +3 -4
- data/lib/rails/generators/test_unit/plugin/plugin_generator.rb +2 -2
- data/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb +3 -3
- data/lib/rails/generators/test_unit/system/system_generator.rb +17 -0
- data/lib/rails/generators/test_unit/system/templates/application_system_test_case.rb +5 -0
- data/lib/rails/generators/test_unit/system/templates/system_test.rb +9 -0
- data/lib/rails/generators/testing/assertions.rb +4 -4
- data/lib/rails/generators/testing/behaviour.rb +20 -21
- data/lib/rails/info.rb +20 -20
- data/lib/rails/info_controller.rb +15 -15
- data/lib/rails/initializable.rb +6 -2
- data/lib/rails/mailers_controller.rb +11 -11
- data/lib/rails/paths.rb +4 -5
- data/lib/rails/plugin/test.rb +7 -0
- data/lib/rails/rack/logger.rb +44 -46
- data/lib/rails/railtie.rb +41 -38
- data/lib/rails/railtie/configurable.rb +6 -6
- data/lib/rails/railtie/configuration.rb +1 -1
- data/lib/rails/ruby_version_check.rb +1 -1
- data/lib/rails/secrets.rb +111 -0
- data/lib/rails/source_annotation_extractor.rb +15 -9
- data/lib/rails/tasks.rb +3 -2
- data/lib/rails/tasks/annotations.rake +3 -3
- data/lib/rails/tasks/dev.rake +2 -2
- data/lib/rails/tasks/engine.rake +4 -4
- data/lib/rails/tasks/framework.rake +4 -18
- data/lib/rails/tasks/initializers.rake +1 -1
- data/lib/rails/tasks/log.rake +14 -10
- data/lib/rails/tasks/middleware.rake +1 -1
- data/lib/rails/tasks/misc.rake +10 -10
- data/lib/rails/tasks/restart.rake +4 -4
- data/lib/rails/tasks/routes.rake +3 -12
- data/lib/rails/tasks/statistics.rake +3 -3
- data/lib/rails/tasks/tmp.rake +7 -7
- data/lib/rails/tasks/yarn.rake +11 -0
- data/lib/rails/templates/rails/mailers/email.html.erb +4 -1
- data/lib/rails/test_help.rb +28 -10
- data/lib/rails/test_unit/line_filtering.rb +69 -3
- data/lib/rails/test_unit/minitest_plugin.rb +139 -0
- data/lib/rails/test_unit/railtie.rb +2 -1
- data/lib/rails/test_unit/reporter.rb +3 -8
- data/lib/rails/test_unit/test_requirer.rb +28 -0
- data/lib/rails/test_unit/testing.rake +19 -14
- data/lib/rails/version.rb +1 -1
- data/lib/rails/welcome_controller.rb +1 -1
- metadata +53 -30
- data/lib/minitest/rails_plugin.rb +0 -49
- data/lib/rails/commands/application.rb +0 -17
- data/lib/rails/commands/commands_tasks.rb +0 -180
- data/lib/rails/commands/console.rb +0 -68
- data/lib/rails/commands/console_helper.rb +0 -34
- data/lib/rails/commands/dbconsole.rb +0 -173
- data/lib/rails/commands/destroy.rb +0 -11
- data/lib/rails/commands/generate.rb +0 -13
- data/lib/rails/commands/plugin.rb +0 -23
- data/lib/rails/commands/rake_proxy.rb +0 -41
- data/lib/rails/commands/runner.rb +0 -71
- data/lib/rails/commands/server.rb +0 -163
- data/lib/rails/commands/test.rb +0 -10
- data/lib/rails/engine/commands_tasks.rb +0 -118
- data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +0 -3
- data/lib/rails/rack/debugger.rb +0 -3
- data/lib/rails/test_unit/runner.rb +0 -141
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e880b16a919cc3d8a4c1e4d5af463543b65dabeb
|
4
|
+
data.tar.gz: 49348dad3c1e30a80b51255bf9ab795e581a3193
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 363fb1df7296e63daa7e265196aefb5ecc4d73068b87b89deeb7a20e586783d8737428a86f08e9fca59da0a215d65ea8d3e1f068f99ed245c37ddd70a9b0ec3d
|
7
|
+
data.tar.gz: 37021a5573c68336ed17ec9cac218007d804d966d02adfdbadb7e566029e8343b5e0ba9a0e5bbb903d6b111c10b24c63fb1d00b8da8d651c77cb0e15b27ba738
|
data/CHANGELOG.md
CHANGED
@@ -1,71 +1,27 @@
|
|
1
|
-
## Rails 5.0.
|
1
|
+
## Rails 5.1.0.beta1 (February 23, 2017) ##
|
2
2
|
|
3
|
-
*
|
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
|
-
|
5
|
+
e.g. `bin/rake test:models test:controllers`
|
52
6
|
|
7
|
+
*Dominic Cleal*
|
53
8
|
|
54
|
-
|
9
|
+
* Add option to configure Ruby's warning behaviour to test runner.
|
55
10
|
|
56
|
-
*
|
57
|
-
when using Turbolinks.
|
11
|
+
*Yuji Yaginuma*
|
58
12
|
|
59
|
-
|
13
|
+
* Initialize git repo when generating new app, if option `--skip-git`
|
14
|
+
is not provided.
|
60
15
|
|
16
|
+
*Dino Maric*
|
61
17
|
|
62
|
-
|
18
|
+
* Install Byebug gem as default in Windows (mingw and x64_mingw) platform.
|
63
19
|
|
64
|
-
*
|
20
|
+
*Junichi Ito*
|
65
21
|
|
66
|
-
|
22
|
+
* Make every Rails command work within engines.
|
67
23
|
|
68
|
-
*
|
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
|
-
*
|
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
|
-
|
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
|
450
|
-
add it as a middleware in your config.
|
45
|
+
* Remove deprecated file `rails/rack/debugger`.
|
451
46
|
|
452
|
-
*
|
47
|
+
*Rafael Mendonça França*
|
453
48
|
|
454
|
-
*
|
49
|
+
* Remove deprecated `config.serve_static_files`.
|
455
50
|
|
456
|
-
*
|
51
|
+
*Rafael Mendonça França*
|
457
52
|
|
458
|
-
*
|
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
|
-
*
|
55
|
+
*Rafael Mendonça França*
|
464
56
|
|
465
|
-
*
|
57
|
+
* The `log:clear` task clear all environments log files by default.
|
466
58
|
|
467
59
|
*Yuji Yaginuma*
|
468
60
|
|
469
|
-
*
|
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
|
-
|
63
|
+
To generate a new app that has Webpack dependencies configured and binstubs for webpack and webpack-watcher:
|
473
64
|
|
474
|
-
|
65
|
+
`rails new myapp --webpack`
|
475
66
|
|
476
|
-
|
67
|
+
To generate a new app that has Webpack + React configured and an example intalled:
|
477
68
|
|
478
|
-
|
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
|
-
*
|
71
|
+
*DHH*
|
483
72
|
|
484
|
-
*
|
73
|
+
* Add Yarn support in new apps with a yarn binstub and package.json. Skippable via --skip-yarn option.
|
485
74
|
|
486
|
-
*
|
75
|
+
*Liceth Ovalles*, *Guillermo Iguaran*, *DHH*
|
487
76
|
|
488
|
-
*
|
489
|
-
|
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
|
-
|
80
|
+
*Guillermo Iguaran*
|
492
81
|
|
493
|
-
|
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
|
-
*
|
86
|
+
*Isaac Sloan*
|
496
87
|
|
497
|
-
|
88
|
+
* Add `:skip_sprockets` to `Rails::PluginBuilder::PASSTHROUGH_OPTIONS`
|
498
89
|
|
499
|
-
*
|
500
|
-
convention.
|
90
|
+
*Tsukuru Tanimichi*
|
501
91
|
|
502
|
-
|
92
|
+
* Allow the use of listen's 3.1.x branch
|
503
93
|
|
504
|
-
*
|
94
|
+
*Esteban Santana Santana*
|
505
95
|
|
506
|
-
|
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
|
-
*
|
98
|
+
*Michael Grosser*
|
510
99
|
|
511
|
-
*
|
100
|
+
* Run `before_configuration` callbacks as soon as application constant
|
101
|
+
inherits from `Rails::Application`.
|
512
102
|
|
513
|
-
Fixes #
|
103
|
+
Fixes #19880.
|
514
104
|
|
515
105
|
*Yuji Yaginuma*
|
516
106
|
|
517
|
-
*
|
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
|
-
|
109
|
+
*Ben Pickles*
|
559
110
|
|
560
|
-
|
111
|
+
* Set session store to cookie store internally and remove the initializer from
|
112
|
+
the generated app.
|
561
113
|
|
562
|
-
*
|
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
|
-
|
591
|
-
- test/unit
|
116
|
+
* Set the server host using the `HOST` environment variable.
|
592
117
|
|
593
|
-
*
|
118
|
+
*mahnunchik*
|
594
119
|
|
595
|
-
*
|
596
|
-
as methods in `_test.rb` files.
|
120
|
+
* Add public API to register new folders for `rake notes`:
|
597
121
|
|
598
|
-
|
122
|
+
config.annotations.register_directories('spec', 'features')
|
599
123
|
|
600
|
-
*
|
124
|
+
*John Meehan*
|
601
125
|
|
602
|
-
|
126
|
+
* Display name of the class defining the initializer along with the initializer
|
127
|
+
name in the output of `rails initializers`.
|
603
128
|
|
604
|
-
|
129
|
+
Before:
|
130
|
+
disable_dependency_loading
|
605
131
|
|
606
|
-
|
132
|
+
After:
|
133
|
+
DemoApp::Application.disable_dependency_loading
|
607
134
|
|
608
|
-
*
|
135
|
+
*ta1kt0me*
|
609
136
|
|
610
|
-
|
137
|
+
* Do not run `bundle install` when generating a new plugin.
|
611
138
|
|
612
|
-
|
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
|
-
*
|
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
|
-
*
|
148
|
+
*Kevin McPhillips*
|
639
149
|
|
640
|
-
*
|
150
|
+
* Ensure `/rails/info` routes match in development for apps with a catch-all globbing route.
|
641
151
|
|
642
|
-
*
|
152
|
+
*Nicholas Firth-McCoy*
|
643
153
|
|
644
|
-
*
|
154
|
+
* Added a shared section to `config/secrets.yml` that will be loaded for all environments.
|
645
155
|
|
646
|
-
*
|
156
|
+
*DHH*
|
647
157
|
|
648
|
-
Please check [
|
158
|
+
Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/railties/CHANGELOG.md) for previous changes.
|