From aa81f67a9eca1fc0d7f26bfe1a181dbed4d82ce1 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sat, 17 Dec 2022 15:27:51 -0800 Subject: [PATCH] Trim trailing whitespace from *.md files Fixes the error: Run bin/check-changelogs ./rails ............F Offenses: ./rails/railties/CHANGELOG.md:4 Trailing whitespace detected. --- CODE_OF_CONDUCT.md | 1 - actionview/app/javascript/README.md | 2 +- guides/CHANGELOG.md | 2 -- guides/source/7_1_release_notes.md | 1 - guides/source/action_cable_overview.md | 2 +- guides/source/active_record_basics.md | 2 +- guides/source/active_record_postgresql.md | 4 ++-- guides/source/maintenance_policy.md | 2 +- railties/CHANGELOG.md | 2 +- 9 files changed, 7 insertions(+), 11 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 8856902efd..d3c1555f70 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -9,4 +9,3 @@ https://rubyonrails.org/conduct For a history of updates, see the page history here: https://github.com/rails/website/commits/main/_pages/conduct.html - diff --git a/actionview/app/javascript/README.md b/actionview/app/javascript/README.md index fe25c447e0..5da96a909a 100644 --- a/actionview/app/javascript/README.md +++ b/actionview/app/javascript/README.md @@ -55,4 +55,4 @@ rails-ujs is released under the [MIT License](MIT-LICENSE). [data]: https://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-attributes "Embedding custom non-visible data with the data-* attributes" [validator]: https://validator.w3.org/ [csrf]: https://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html -[ujsdocs]: https://github.com/rails/jquery-ujs/wiki \ No newline at end of file +[ujsdocs]: https://github.com/rails/jquery-ujs/wiki diff --git a/guides/CHANGELOG.md b/guides/CHANGELOG.md index 707f374ff2..29f0ced2dd 100644 --- a/guides/CHANGELOG.md +++ b/guides/CHANGELOG.md @@ -1,3 +1 @@ - - Please check [7-0-stable](https://github.com/rails/rails/blob/7-0-stable/guides/CHANGELOG.md) for previous changes. diff --git a/guides/source/7_1_release_notes.md b/guides/source/7_1_release_notes.md index 6d5bd8c8a1..3953f529c9 100644 --- a/guides/source/7_1_release_notes.md +++ b/guides/source/7_1_release_notes.md @@ -1,4 +1,3 @@ - **DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON https://guides.rubyonrails.org.** Ruby on Rails 7.1 Release Notes diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md index d16ef319d9..22e0161c14 100644 --- a/guides/source/action_cable_overview.md +++ b/guides/source/action_cable_overview.md @@ -282,7 +282,7 @@ class ChatChannel < ApplicationCable::Channel def send_welcome_message broadcast_to(...) end - + def track_subscription # ... end diff --git a/guides/source/active_record_basics.md b/guides/source/active_record_basics.md index 0ea05e1ddf..16c72c22fb 100644 --- a/guides/source/active_record_basics.md +++ b/guides/source/active_record_basics.md @@ -288,7 +288,7 @@ user = User.find_by(name: 'David') user.update(name: 'Dave') ``` -This is most useful when updating several attributes at once. +This is most useful when updating several attributes at once. If you'd like to update several records in bulk without callbacks or validations, you can update the database directly using `update_all`: diff --git a/guides/source/active_record_postgresql.md b/guides/source/active_record_postgresql.md index 2a48b04666..2032afbe3b 100644 --- a/guides/source/active_record_postgresql.md +++ b/guides/source/active_record_postgresql.md @@ -501,7 +501,7 @@ irb> device.id => "814865cd-5a1d-4771-9306-4268f188fe9e" ``` -NOTE: `gen_random_uuid()` (from `pgcrypto`) is assumed if no `:default` option +NOTE: `gen_random_uuid()` (from `pgcrypto`) is assumed if no `:default` option was passed to `create_table`. To use the Rails model generator for a table using UUID as the primary key, pass @@ -513,7 +513,7 @@ For example: rails generate model Device --primary-key-type=uuid kind:string ``` -When building a model with a foreign key that will reference this UUID, treat +When building a model with a foreign key that will reference this UUID, treat `uuid` as the native field type, for example: ```ruby diff --git a/guides/source/maintenance_policy.md b/guides/source/maintenance_policy.md index b13024f8fa..2a773f9672 100644 --- a/guides/source/maintenance_policy.md +++ b/guides/source/maintenance_policy.md @@ -9,7 +9,7 @@ follows, all versions, except for security releases, in `X.Y.Z`, format. -------------------------------------------------------------------------------- -Versioning +Versioning ------------ Rails follows a shifted version of [semver](https://semver.org/): diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 3fca24ca8b..614f120d0c 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,7 +1,7 @@ * Add ENV["SECRET_KEY_BASE_DUMMY"] for starting production environment with a generated secret base key, which can be used to run tasks like `assets:precompile` without making the RAILS_MASTER_KEY available to the build process. - + Dockerfile layer example: ```