2024/01/10分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Implement CurrentAttributes#set
in terms of Object#with
activesupport/lib/active_support/current_attributes.rb
の修正です。
CurrentAttributes#set
の実装をObject#with
にdelegateするだけに修正しています。CurrentAttributes#set
でやりたい事はObject#with
を呼び出すだけで実現出来るようになっている為。
Remove redundant version constraint on mail gem
actionmailer/actionmailer.gemspec
の修正です。
mail
gemのバージョン指定から不要なバージョン制約部分を削除しています。
Don't use the Gemfile lock on CI steps
github/workflowsの修正です。
CIで処理を実行する際に、Gemfile.lock
を削除しています。最新のgemで処理を実行するよにする為。
Remove the Gemfile.lock for good now
github/workflowsの修正です。
先のGemfile.lock
の削除処理でファイル名の指定が誤っていたのを修正しています。
Fix typo in ActiveRecord::Core.configurations doc [ci-skip]
activerecord/lib/active_record/core.rb
のdocの修正です。
ActiveRecord::Core.configurations
のdocのグラマーの修正を行っています。
Add code examples to readonly
documentation
activerecord/lib/active_record/core.rb
のdocの修正です。
ActiveRecord::Core.readonly!
のdocにexampleコードを追加しています。
Raise ArgumentError
if :renderable
object does not respond to #render_in
actionview/lib/action_view/renderer/abstract_renderer.rb
、
actionview/lib/action_view/template/renderable.rb
の修正です。
:renderable
オプションに、#render_in
メソッドが実装されていないオブジェクトが指定された場合にArgumentError
をraiseするよう修正しています。
Simplify CurrentAttribute.instance
delegation
activesupport/lib/active_support/current_attributes.rb
の修正です。
CurrentAttribute.instance
のdelegation処理を、Module.delegate
を使用するようリファクタリングしています。
Gemfile.lock
の修正です。
Ruby 3.3.0の環境でGemfile.lock
を更新しています。google-protobuf
のRuby 3.3.0向けのprecompile binariesがまだリリースされておらず、google-protobuf
の特定のOS向けの指定が入っているとエラーになってしまうため。
Document developer-facing change to config.action_dispatch.show_exceptions default
rails guideの修正です。
config.action_dispatch.show_exceptions
についての詳細な説明、及び、Rails 7.1で行われた挙動の変更の詳細についての説明を追加しています。
Merge pull request #50675 from gareth/remove-redundant-restricted-class-method
activerecord/lib/active_record/attribute_methods.rb
の修正です。
使用出来ないclass methodの一覧からparent
を削除しています。元々はModule#parent
というメソッドをRails内部で保持しているから使用出来ないようにしていたのですが、左記メソッドはRemove deprecated Module#parent_name, Module#parent and `Module#p…で削除されており、現在は使用出来る様になっているため。
Merge pull request #50674 from p8/activerecord/document-sum-with-block
activerecord/lib/active_record/relation/calculations.rb
のdocの修正です。
Calculations#count
及びCalculations#sum
メソッドのdocに、blockを指定した場合の挙動の説明を追加しています。
Add default:
support for ActiveSupport::CurrentAttributes.attribute
activesupport/lib/active_support/current_attributes.rb
の修正です。
ActiveSupport::CurrentAttributes.attribute
にデフォルト値を指定出来るよう修正しています。
class Current < ActiveSupport::CurrentAttributes attribute :counter, default: 0 end
Ignore docker and git related files in dockerignore
railties/lib/rails/generators/rails/app/templates/dockerignore.tt
の修正です。
Docker及びgit関連のファイルをdockerignoreに追加しています。
Merge pull request #50664 from ghiculescu/global_executor_concurrency-example
rails guideのConfiguring Rails Applications
の修正です。
config.active_record.global_executor_concurrency
config内の、global_executor_concurrency
とpool size関連について説明している箇所に、具体的な値を設定した場合の例を追加しています。
Avoid definition of methods in CurrentAttributes
at runtime
activesupport/lib/active_support/current_attributes.rb
の修正です。
CurrentAttributes
でmethod_missing
で定義されていないメソッドが呼びだされた場合に、実行時にdelegateの定義をしていたのを、method_added
を使用してメソッド追加時にdelegateの定義を行えるよう修正しています。```でメソッドの定義をするのは実行効率が良くない為。
Update the default Puma configuration
railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt
の修正です。
Pumaのデフォルトの設定ファイルを更新しています。一番の変更ポイントはthreadのデフォルト値の変更で、元々は5だったのが3に変更になっています。これは色々とベンチマークとその結果について議論した結果、5は多すぎで3がデフォルトとしては最善なのでは、ということになり変更されています。ベンチマークや議論については、Set a new default for the Puma thread countにまとまっていますので、興味がある方はそちらをご参照ください。
Remove ActiveRecord::AttributeAssignment#assign_nested_parameter_attributes
activerecord/lib/active_record/attribute_assignment.rb
の修正です。
現在は不要になっているActiveRecord::AttributeAssignment#assign_nested_parameter_attributes
メソッドを削除しています。