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