2020/09/23分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Change the default log level from :debug to :info
railties/lib/rails/application/configuration.rb
、
railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
の修正です。
defaultのログレベルが:debug
から:info
に変更になりました。 :deubg
だと誤って個人を特定出来る情報(PII)がログに残ってしまう可能性がある為。因みに:debug
に変えたBasecampも今は:info
にしているそうです。
Make sure log level in development is debug
railties/lib/rails/application/configuration.rb
の修正です。
log levelのデフォルト値を:debug
に戻しています。development
で:debug
で動作するようにする為。production
については、config/environments/production.rb
で指定する想定になっています。
Set default variant format from blob content type
Active Storageの修正です。
デフォルトのvariant formatをblobのcontent typeから取得するよう修正しています。
VIPSは拡張子からfile formatを決めるようになっていたのですが、それだと拡張子が指定されてなかったり、実際のファイルと異なっていた場合に正しくvariantを生成出来ない、という問題が発生していた為、blobのcontent typeから指定するよう修正しています。
Restores environments before testing their settings
railties/test/application/configuration_test.rb
の修正です。
テストでlog levelをチェックする際に、デフォルト値にconfigを戻してからチェックするよう修正しています。
Move ConnectionTimeoutError and ExclusiveConnectionTimeoutError to errors.rb
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
、
activerecord/lib/active_record/errors.rb
の修正です。
ConnectionTimeoutError
、ExclusiveConnectionTimeoutError
クラスをactiverecord/lib/active_record/errors.rb
に移動しています。
Uncomment bin/yarn in bin/setup for webpacker by default
railties/lib/rails/generators/rails/app/templates/bin/setup.tt
の修正です。
bin/setup
内のbin/yarn
の実行がコメントアウトされていたのを、コメントを削除しています。webpacker
がデフォルトgemになっているので、bin/yarn
もデフォルトで実行されるようになっているべきだろう、との理由です。
Use mysql2 from git to fix warnings with Ruby 2.7
Gemfile
の修正です。
mysql2
gemについて、GitHubのmasterブランチのコードを使用するよう修正しています。Ruby 2.7のwarningが表示されないようにする為。
Merge pull request #39766 from maryammouse/maryammouse-concerns-docs
rails guideのGetting Started with Rails
の修正です。
Concernsの使い方について説明した、Using Concerns
の項を追加しています。
Add a note about PR approvals [ci skip]
rails guideのContributing to Ruby on Rails
の修正です。
Get some Feedback
の項に、comitter以外がapproveしてもmergeされる訳では無い旨説明を追加しています。
Fix formatting error in concerns doc
rails guideのGetting Started with Rails
の修正です。
Using Concerns
の項のフォーマットの修正を行っています。
Create a gitattributes file for templated apps
https://github.com/rails/rails/commit/da39688e264c63435ee5ce0cc486c5a1c442f607
の修正です。
rails new
で新規にアプリを作成する際に、.gitattributes
を生成するよう修正しています。デフォルトの内容は下記のとおり。
# See https://git-scm.com/docs/gitattributes for more about git attribute files. # Mark the database schema as having been generated. db/schema.rb linguist-generated # Mark the yarn lockfile as having been generated. yarn.lock linguist-generated # Mark any vendored files as having been vendored. vendor/* linguist-vendored