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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +117 -415
- data/MIT-LICENSE +1 -1
- data/RDOC_MAIN.rdoc +4 -4
- data/exe/rails +2 -2
- 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/bootstrap.rb +12 -7
- data/lib/rails/application/configuration.rb +56 -52
- 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.rb +33 -36
- 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 +17 -17
- data/lib/rails/code_statistics_calculator.rb +3 -3
- data/lib/rails/command/actions.rb +42 -0
- data/lib/rails/command/base.rb +155 -0
- data/lib/rails/command/behavior.rb +123 -0
- data/lib/rails/command/environment_argument.rb +34 -0
- data/lib/rails/command.rb +111 -0
- 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 +26 -0
- data/lib/rails/commands/generate/generate_command.rb +28 -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 +17 -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 +49 -0
- data/lib/rails/commands/secrets/USAGE +60 -0
- data/lib/rails/commands/secrets/secrets_command.rb +49 -0
- data/lib/rails/commands/server/server_command.rb +216 -0
- data/lib/rails/commands/test/test_command.rb +22 -0
- data/lib/rails/commands/version/version_command.rb +9 -0
- data/lib/rails/commands.rb +2 -4
- 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/commands.rb +6 -13
- data/lib/rails/engine/configuration.rb +2 -2
- data/lib/rails/engine/updater.rb +19 -0
- data/lib/rails/engine.rb +62 -63
- data/lib/rails/gem_version.rb +1 -1
- data/lib/rails/generators/actions/create_migration.rb +24 -25
- data/lib/rails/generators/actions.rb +20 -21
- data/lib/rails/generators/active_model.rb +3 -3
- data/lib/rails/generators/app_base.rb +119 -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/controller/controller_generator.rb +1 -1
- data/lib/rails/generators/erb/mailer/mailer_generator.rb +16 -9
- data/lib/rails/generators/erb/mailer/templates/layout.html.erb.tt +13 -0
- data/lib/rails/generators/erb/mailer/templates/layout.text.erb.tt +1 -0
- data/lib/rails/generators/erb/scaffold/scaffold_generator.rb +3 -3
- data/lib/rails/generators/erb/scaffold/templates/_form.html.erb +8 -8
- data/lib/rails/generators/erb.rb +14 -14
- 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 +66 -58
- data/lib/rails/generators/rails/app/app_generator.rb +153 -84
- data/lib/rails/generators/rails/app/templates/Gemfile +13 -3
- 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 +4 -5
- 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 -0
- data/lib/rails/generators/rails/app/templates/bin/yarn +10 -0
- data/lib/rails/generators/rails/app/templates/config/application.rb +7 -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 +6 -3
- 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/databases/sqlserver.yml +4 -20
- 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/assets.rb.tt +8 -3
- data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_5_1.rb.tt +16 -0
- 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 +17 -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 +26 -30
- data/lib/rails/generators/rails/plugin/templates/bin/rails.tt +1 -0
- data/lib/rails/generators/rails/plugin/templates/bin/test.tt +3 -7
- 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 +7 -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/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/integration/templates/integration_test.rb +2 -0
- 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 +4 -4
- 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/test_unit.rb +1 -1
- data/lib/rails/generators/testing/assertions.rb +4 -4
- data/lib/rails/generators/testing/behaviour.rb +20 -21
- data/lib/rails/generators.rb +230 -312
- 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 +12 -6
- data/lib/rails/plugin/test.rb +7 -0
- data/lib/rails/rack/logger.rb +44 -46
- data/lib/rails/railtie/configurable.rb +6 -6
- data/lib/rails/railtie/configuration.rb +1 -1
- data/lib/rails/railtie.rb +41 -38
- data/lib/rails/ruby_version_check.rb +1 -1
- data/lib/rails/secrets.rb +100 -0
- data/lib/rails/source_annotation_extractor.rb +15 -9
- data/lib/rails/tasks/annotations.rake +3 -3
- data/lib/rails/tasks/dev.rake +2 -2
- data/lib/rails/tasks/engine.rake +15 -4
- data/lib/rails/tasks/framework.rake +8 -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/tasks.rb +3 -2
- data/lib/rails/templates/rails/mailers/email.html.erb +4 -1
- data/lib/rails/test_help.rb +14 -10
- data/lib/rails/test_unit/line_filtering.rb +2 -2
- data/lib/rails/test_unit/minitest_plugin.rb +62 -15
- data/lib/rails/test_unit/railtie.rb +6 -3
- data/lib/rails/test_unit/reporter.rb +2 -2
- data/lib/rails/test_unit/test_requirer.rb +8 -5
- data/lib/rails/test_unit/testing.rake +20 -15
- data/lib/rails/version.rb +1 -1
- data/lib/rails/welcome_controller.rb +1 -1
- data/lib/rails.rb +19 -18
- metadata +52 -27
- 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 -34
- data/lib/rails/commands/runner.rb +0 -69
- data/lib/rails/commands/server.rb +0 -139
- data/lib/rails/commands/test.rb +0 -9
- data/lib/rails/engine/commands_tasks.rb +0 -116
- data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults.rb.tt +0 -34
- data/lib/rails/generators/rails/app/templates/config/initializers/session_store.rb.tt +0 -3
- data/lib/rails/rack/debugger.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6be02fe1be60a0bf8a66be15adfe90b9610296af
|
|
4
|
+
data.tar.gz: 57726a26a67abc5e1a318b912a4f37fab0bcd238
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5b842d5deeff2e7c2f0891eaca6112bfcbade41b7fd378560f2e13fbe4c0fdce7d19745f125b33442f423cb784acd4dcb2f63374e7ce2fa5d86ade4194a6ece
|
|
7
|
+
data.tar.gz: bd4e8d367fbe310e5ef9d2e47f33508c7010ac29affb94b20748fa9c1dccd2fd153c5775ec026eb11496e5803c278cbff0a8944b2e56a997a04f5d9329bb18df
|
data/CHANGELOG.md
CHANGED
|
@@ -1,521 +1,223 @@
|
|
|
1
|
-
## Rails 5.
|
|
1
|
+
## Rails 5.1.0 (April 27, 2017) ##
|
|
2
2
|
|
|
3
|
-
*
|
|
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
|
-
*
|
|
6
|
+
*Jan Krutisch*
|
|
24
7
|
|
|
25
|
-
*
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
20
|
+
* Specify form field ids when generating a scaffold.
|
|
72
21
|
|
|
73
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
136
|
-
|
|
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
|
-
|
|
35
|
+
Fixes #28286.
|
|
198
36
|
|
|
199
|
-
*
|
|
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
|
-
|
|
234
|
-
during a test run:
|
|
39
|
+
* Improve encryption for encrypted secrets.
|
|
235
40
|
|
|
236
|
-
|
|
237
|
-
|
|
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
|
-
|
|
45
|
+
Double the encryption key entropy by properly extracting the underlying
|
|
46
|
+
bytes from the hexadecimal seed key.
|
|
240
47
|
|
|
241
|
-
|
|
48
|
+
NOTE: Since the encryption mechanism has been switched, you need to run
|
|
49
|
+
this script to upgrade:
|
|
242
50
|
|
|
243
|
-
|
|
51
|
+
https://gist.github.com/kaspth/bc37989c2f39a5642112f28b1d93f343
|
|
244
52
|
|
|
245
|
-
|
|
53
|
+
*Stephen Touset*
|
|
246
54
|
|
|
247
|
-
|
|
248
|
-
test/models/bunny_test.rb:19:in `block in <class:BunnyTest>'
|
|
55
|
+
* Add encrypted secrets in `config/secrets.yml.enc`.
|
|
249
56
|
|
|
250
|
-
|
|
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
|
-
|
|
255
|
-
```
|
|
63
|
+
Edit secrets with `bin/rails secrets:edit`.
|
|
256
64
|
|
|
257
|
-
|
|
65
|
+
See `bin/rails secrets:setup --help` for more.
|
|
258
66
|
|
|
259
67
|
*Kasper Timm Hansen*
|
|
260
68
|
|
|
261
|
-
* Fix
|
|
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
|
-
|
|
71
|
+
e.g. `bin/rake test:models test:controllers`
|
|
269
72
|
|
|
270
|
-
*
|
|
271
|
-
version number set to 0.1.0.
|
|
73
|
+
*Dominic Cleal*
|
|
272
74
|
|
|
273
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
323
|
-
add it as a middleware in your config.
|
|
82
|
+
*Dino Maric*
|
|
324
83
|
|
|
325
|
-
|
|
84
|
+
* Install Byebug gem as default in Windows (mingw and x64_mingw) platform.
|
|
326
85
|
|
|
327
|
-
*
|
|
86
|
+
*Junichi Ito*
|
|
328
87
|
|
|
329
|
-
|
|
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
|
-
*
|
|
90
|
+
*Sean Collins*, *Yuji Yaginuma*
|
|
348
91
|
|
|
349
|
-
*
|
|
92
|
+
* Don't generate HTML/ERB templates for scaffold controller with `--api` flag.
|
|
350
93
|
|
|
351
|
-
|
|
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
|
-
*
|
|
356
|
-
|
|
357
|
-
* `bin/setup` uses built-in rake tasks (`log:clear`, `tmp:clear`).
|
|
96
|
+
*Prathamesh Sonpatki*
|
|
358
97
|
|
|
359
|
-
|
|
98
|
+
* Make `Rails.env` fall back to `development` when `RAILS_ENV` and `RACK_ENV` is an empty string.
|
|
360
99
|
|
|
361
|
-
*
|
|
362
|
-
locate the first part of the correct mime type.
|
|
100
|
+
*Daniel Deng*
|
|
363
101
|
|
|
364
|
-
|
|
102
|
+
* Remove deprecated `CONTROLLER` environment variable for `routes` task.
|
|
365
103
|
|
|
366
|
-
*
|
|
104
|
+
*Rafael Mendonça França*
|
|
367
105
|
|
|
368
|
-
* Remove
|
|
106
|
+
* Remove deprecated tasks: `rails:update`, `rails:template`, `rails:template:copy`,
|
|
107
|
+
`rails:update:configs` and `rails:update:bin`.
|
|
369
108
|
|
|
370
|
-
*
|
|
109
|
+
*Rafael Mendonça França*
|
|
371
110
|
|
|
372
|
-
*
|
|
373
|
-
convention.
|
|
111
|
+
* Remove deprecated file `rails/rack/debugger`.
|
|
374
112
|
|
|
375
|
-
*
|
|
113
|
+
*Rafael Mendonça França*
|
|
376
114
|
|
|
377
|
-
*
|
|
115
|
+
* Remove deprecated `config.serve_static_files`.
|
|
378
116
|
|
|
379
|
-
|
|
380
|
-
it is available, instead of waiting until all gems finish installing.
|
|
117
|
+
*Rafael Mendonça França*
|
|
381
118
|
|
|
382
|
-
|
|
119
|
+
* Remove deprecated `config.static_cache_control`.
|
|
383
120
|
|
|
384
|
-
*
|
|
121
|
+
*Rafael Mendonça França*
|
|
385
122
|
|
|
386
|
-
|
|
123
|
+
* The `log:clear` task clear all environments log files by default.
|
|
387
124
|
|
|
388
125
|
*Yuji Yaginuma*
|
|
389
126
|
|
|
390
|
-
* Add
|
|
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
|
-
|
|
129
|
+
To generate a new app that has Webpack dependencies configured and binstubs for webpack and webpack-watcher:
|
|
404
130
|
|
|
405
|
-
|
|
406
|
-
`tmp/restart.txt`.
|
|
131
|
+
`rails new myapp --webpack`
|
|
407
132
|
|
|
408
|
-
|
|
133
|
+
To generate a new app that has Webpack + React configured and an example intalled:
|
|
409
134
|
|
|
410
|
-
|
|
135
|
+
`rails new myapp --webpack=react`
|
|
411
136
|
|
|
412
|
-
*
|
|
137
|
+
*DHH*
|
|
413
138
|
|
|
414
|
-
|
|
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
|
-
|
|
420
|
-
to be valid.
|
|
141
|
+
*Liceth Ovalles*, *Guillermo Iguaran*, *DHH*
|
|
421
142
|
|
|
422
|
-
|
|
423
|
-
|
|
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
|
-
*
|
|
146
|
+
*Guillermo Iguaran*
|
|
426
147
|
|
|
427
|
-
* `
|
|
428
|
-
|
|
429
|
-
|
|
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
|
-
|
|
152
|
+
*Isaac Sloan*
|
|
432
153
|
|
|
433
|
-
|
|
154
|
+
* Add `:skip_sprockets` to `Rails::PluginBuilder::PASSTHROUGH_OPTIONS`
|
|
434
155
|
|
|
435
|
-
*
|
|
156
|
+
*Tsukuru Tanimichi*
|
|
436
157
|
|
|
437
|
-
|
|
158
|
+
* Add `--skip-coffee` option to `rails new`
|
|
438
159
|
|
|
439
|
-
*
|
|
160
|
+
*Seunghwan Oh*
|
|
440
161
|
|
|
441
|
-
|
|
162
|
+
* Allow the use of listen's 3.1.x branch
|
|
442
163
|
|
|
443
|
-
*
|
|
164
|
+
*Esteban Santana Santana*
|
|
444
165
|
|
|
445
|
-
|
|
166
|
+
* Run `Minitest.after_run` hooks when running `rails test`.
|
|
446
167
|
|
|
447
|
-
*
|
|
168
|
+
*Michael Grosser*
|
|
448
169
|
|
|
449
|
-
|
|
170
|
+
* Run `before_configuration` callbacks as soon as application constant
|
|
171
|
+
inherits from `Rails::Application`.
|
|
450
172
|
|
|
451
|
-
|
|
173
|
+
Fixes #19880.
|
|
452
174
|
|
|
453
|
-
*
|
|
175
|
+
*Yuji Yaginuma*
|
|
454
176
|
|
|
455
|
-
|
|
177
|
+
* A generated app should not include Uglifier with `--skip-javascript` option.
|
|
456
178
|
|
|
457
|
-
*
|
|
179
|
+
*Ben Pickles*
|
|
458
180
|
|
|
459
|
-
|
|
181
|
+
* Set session store to cookie store internally and remove the initializer from
|
|
182
|
+
the generated app.
|
|
460
183
|
|
|
461
|
-
*
|
|
184
|
+
*Prathamesh Sonpatki*
|
|
462
185
|
|
|
463
|
-
|
|
464
|
-
- test/unit
|
|
186
|
+
* Set the server host using the `HOST` environment variable.
|
|
465
187
|
|
|
466
|
-
*
|
|
188
|
+
*mahnunchik*
|
|
467
189
|
|
|
468
|
-
*
|
|
469
|
-
as methods in `_test.rb` files.
|
|
190
|
+
* Add public API to register new folders for `rake notes`:
|
|
470
191
|
|
|
471
|
-
|
|
192
|
+
config.annotations.register_directories('spec', 'features')
|
|
472
193
|
|
|
473
|
-
*
|
|
194
|
+
*John Meehan*
|
|
474
195
|
|
|
475
|
-
|
|
196
|
+
* Display name of the class defining the initializer along with the initializer
|
|
197
|
+
name in the output of `rails initializers`.
|
|
476
198
|
|
|
477
|
-
|
|
199
|
+
Before:
|
|
200
|
+
disable_dependency_loading
|
|
478
201
|
|
|
479
|
-
|
|
202
|
+
After:
|
|
203
|
+
DemoApp::Application.disable_dependency_loading
|
|
480
204
|
|
|
481
|
-
*
|
|
205
|
+
*ta1kt0me*
|
|
482
206
|
|
|
483
|
-
|
|
207
|
+
* Do not run `bundle install` when generating a new plugin.
|
|
484
208
|
|
|
485
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
217
|
+
*Nicholas Firth-McCoy*
|
|
516
218
|
|
|
517
|
-
*
|
|
219
|
+
* Added a shared section to `config/secrets.yml` that will be loaded for all environments.
|
|
518
220
|
|
|
519
|
-
*
|
|
221
|
+
*DHH*
|
|
520
222
|
|
|
521
|
-
Please check [
|
|
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