2023/03/04分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activemodel/CHANGELOG.md
- Add class to ActiveModel::MissingAttributeError error message.
- Improve typography of user facing error messages. In English contractions, the Unicode APOSTROPHE (U+0027) is now RIGHT SINGLE QUOTATION MARK (U+2019). For example, “can't be blank” is now “can’t be blank”.
add --home and --shell to rails user in Dockerfile (#47533)
railties/lib/rails/generators/rails/app/templates/Dockerfile.tt
の修正です。
Dockerfile内でユーザを追加する際にhome
、及び、shell
の設定を行うよう修正しています。
activesupport/lib/active_support/time_with_zone.rb
の修正です。
ActiveSupport::TimeWithZone
でTime
にdelegateする為のmethod_missing
の引数指定に...
を使用するよう修正しています。キーワード引数の考慮が漏れており、Time
のメソッドを使用する際にキーワード引数を使用出来るようにすr為。
Revert "Remove deprecated children
and parent_of?
on ActiveSupport::Notifications::Event"
deprecatedになっていたActiveSupport::Notifications::Event#children
とActiveSupport::Notifications::Event#parent_of?
を削除した、Remove deprecated children and parent_of? on ActiveSupport::Notif…をRevertしています。Rails 7.1でdeprecatedになるメソッドで、まだ削除対象ではない為。
Merge pull request #47532 from jkotchoff/rails-info-routes-search-optimisation
Action Pack、railtiesの修正です。
rails/info/routes
での検索にroute name、HTTP Verb、及び、controller#action
を指定出来るよう修正しています。
Merge pull request #47546 from rails/revert-47500-patch-3
Dockerfile
でCOPY --link
をするようにした、Use COPY --link in DockerfileをRevertしています。Red HatのbuildahではCOPY --link
をサポートしていない為。
参考: [RFE] Add support for --link in COPY/ADD
Merge pull request #47551 from zzak/rails-new-dev-docker-ci
CIでrails new
で生成するDockerfile
が正しく動作する事をテストするよう修正しています。
Merge pull request #47409 from hahmed/ha/move-test-server-to-fix-faiing-test
actioncable/test/stubs/test_server.rb
の修正です。
Ruby 3.0より非推奨になったostruct
を使用している箇所があったのを、使用しないよう修正しています。
Merge pull request #47569 from p8/activemodel/add-model-name-to-missing-attribute-error
Active Record、Active Modelの修正です。
ActiveModel::MissingAttributeError
のエラーメッセージに、class名を含むよう修正しています。
User.first.pets.select(:id).first.user_id # => ActiveModel::MissingAttributeError: missing attribute 'user_id' for Pet
Active Modelの修正です。
エラーメッセージ内のAPOSTROPHE (U+0027)をRIGHT SINGLE QUOTATION MARK(U+2019)を使用するよう修正しています。例えば、can't be blank
はcan’t be blank
となっています。Unicode Standardでは、Punctuation Apostropheを表現するのに、デジタルおよび印刷デザインでは通常RIGHT SINGLE QUOTATION MARKを使用する事を推奨している為、との事です。
参考: Unicode Standard Section 6.2
Merge pull request #47483 from palkan/fix/channel-test-case-test-server
Action Cableの修正です。
ActionCable::Channel::TestCase
を使用した際にNameError
がraiseしてしまうバグがあったのを修正しています。
:nail_care: AM CHANGELOG fixed-width re: #45463, #47569
activemodel/CHANGELOG.md
の修正です。
各エントリーのフォーマットの修正を行っています。