2024/02/17分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Ignore devcontainer files in docker image
railties/lib/rails/generators/rails/app/templates/dockerignore.tt
の修正です。
dockerignoreにdevcontainer用のファイルを追加しています。
Add MessagePackMessageSerializer for binary data (#51102)
activerecord/lib/active_record/encryption/encrypted_attribute_type.rb
、
activerecord/lib/active_record/encryption/message_pack_message_serializer.rb
の修正です。
encrypted dataをMessagePack formatにserializeする為のActiveRecord::Encryption::MessagePackMessageSerializer
を追加しています。 通常はBase64でencodeされているのですが、Binary columnの場合はBase64でencodeする必要は無くデータ効率が良くない為、より効率的にserialize出来るようにする為にMessagePack formatをサポートしています。このserializerは自動ではロードされないようにっており、使用する場合はユーザ側で明示的に指定する必要があります。
require "activerecord/encryption/message_pack_message_serializer" class Foo < ApplicationRecord encrypts :bar, message_serializer: ActiveRecord::Encryption::MessagePackMessageSerializer.new end
activestorage/test/dummy/config/puma.rb
の修正です。
pidfile
にファイル名を指定する箇所のクォートが不足していたのを修正しています。
Do not report rendered errors except 500
actionpack/lib/action_dispatch/middleware/executor.rb
、
actionpack/lib/action_dispatch/middleware/show_exceptions.rb
の修正です。
ActionDispatch::Executor: report errors handled by ShowExceptionsでShowExceptions
middlewareでhandleしたexceptionを全てerror reporterでreportするよう修正したのですが、ActionController::RoutingError
のようなアプリケーションで正しく処理されたエラーはreportしないよう修正しています。reportするかどうかはActionDispatch::ExceptionWrapper.rescue_responses
に指定されているかどうかで判断されるようになっています。
Prevent extra newlines after table generation block in shema.rb (#48731)
activerecord/lib/active_record/schema_dumper.rb
の修正です。
shema.rb
でforeign keysが無い場合に不要な空行が生成されてしまっていたのを修正しています。
Merge pull request #51043 from jasl/ac-expose-close-args
actioncable/lib/action_cable/connection/web_socket.rb
の修正です。
websocket.close
、及び、websocket.transmit
に任意の引数を指定出来るよう修正しています。WebSocket connectionをcloseする際にデバッグ用にcode
及びreason
を送りたい事があるため、との事です。