なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2024/01/06)

2024/01/06分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


Define missing attribute methods from method_missing

Active Recordの修正です。

applicationがeager load を使用していない、かつ、古いRails 6.1のMarshalファイルを使用している場合に、Active Recordのattribute用のgetter/setterメソッドが定義されないバグがあったのを修正ですしています。


Update shims for older rubies

Active Supportの修正です。

古いRubyの為のSymbol#name及びTime#floorメソッドの実装を削除しています。


Rewords a CHANGELOG entry

activerecord/CHANGELOG.mdの修正です。

lastpluckcount等のメソッドに対してexplainを指定出来るよう対応したエントリーの言い回しを修正しています。


Edit pass over the CHANGELOG of Active Record

activerecord/CHANGELOG.mdの修正です。

各エントリーの言い回しやフォーマットの修正を行っています。


Adds missing comma

activerecord/CHANGELOG.mdの修正です。

エントリー内のグラマーの修正を行っています。


[Fix #48922] Use context from the encrypted attribute type in encrypted_attribute?

activerecord/lib/active_record/encryption/encryptable_record.rbactiverecord/lib/active_record/encryption/encrypted_attribute_type.rbの修正です。

Active Record Encryptionでencryptsメソッドにcontext propertiesを指定、または、custom encryptorを指定している場合に、encrypted_attribute?が正しくencryptedかどうかのチェックを出来ないバグがあったのを修正しています。


[Fix #48685] Make the encryptor agnostic of the type of data to decrypt

activerecord/lib/active_record/encryption/encryptor.rbの修正です。

ActiveRecord::Encryption::Encryptorのmessageのdeserialize処理で、messageがString以外の場合エラーにしてしたのを、エラーにしないよう修正しています。custom serializerを使用している場合に、messageに任意のオブジェクトの値を使用出来るようにする(deserialize処理をserializerに完全に依存するようにする)為。


Update api_app.md to remove specific app name

rails guideのUsing Rails for API-only Applicationsの修正です。

session_storecookie_storeを指定する場合のexampleで、keyにアプリケーションに依存した名前を使用しないよう修正しています。


Spell JavaScript correctly [ci-skip]

railties/lib/rails/generators/rails/app/templates/github/ci.yml.ttの修正です。

step名のグラマーの修正、及び、JavascriptJavaScriptに修正しています。


Replace typo "enging" with "engine" [ci-skip]

rails guideのAPI Documentation Guidelinesの修正です。

engineengingにタイポしていたのを修正しています。


Replace "Return" with "Returns" in API documentations

activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rbactiverecord/lib/active_record/connection_handling.rbのdocの修正です。

docのグラマーの修正を行っています。


Correct SQL query for User.all.explain docs [ci skip]

activerecord/lib/active_record/relation.rbのdocの修正です。

doc内のUser.all.explainメソッドの実行結果の例でテーブル名が誤っていたのを修正しています。