2019/03/23分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Update
ActiveSupport::Notifications::Instrumenter#instrument
to make passing a block optional. This will let users useActiveSupport::Notifications
messaging features outside of instrumentation. - Make job argument assertions with
Time
,ActiveSupport::TimeWithZone
, andDateTime
work by dropping microseconds. Microsecond precision is lost during serialization.
guides/rails_guides/generator.rb
の修正です。
render
メソッドのformats
引数にStringのArrayを渡していたのを、SymbolのArrayを渡すよう修正しています。Symbolが来ることを想定しておりStringだとMerge pull request #35661 from jhawthorn/lookup_context_validationで追加されたformatチェックエラーになってしまう為。
Merge pull request #35705 from alimi/instrumenter-block-optional
activesupport/lib/active_support/notifications/instrumenter.rb
の修正です。
ActiveSupport::Notifications::Instrumenter#instrument
へのblockの指定をoptionalにしています。
ActiveSupport::Notifications
をメッセージングとして使うため、との事です。
例。
ActiveSupport::Notifications.instrument "my.custom.event", this: :data ActiveSupport::Notifications.subscribe "my.custom.event" do |name, started, finished, unique_id, data| puts data.inspect # {:this=>:data} end
activesupport/CHANGELOG.md
の修正です。
先ほど追加されたCHANGELOGのエントリーでクォートが不足していたのを修正しています。
Update CHANGELOGs for 6.0.0.beta3 release
actionview/CHANGELOG.md
、
railties/CHANGELOG.md
の修正です。
Merge tag 'v6.0.0.beta3'で行われたCVEの対応について、CHANGELOGにエントリーを追加しています。
Drop microseconds in job argument assertions
activejob/lib/active_job/test_helper.rb
の修正です。
Active Jobのtest helperで、引数がTime
, ActiveSupport::TimeWithZone
, または DateTime
だった場合に、強制的にmicrosecondsの値を0にするよう修正しています。
jobのserialization処理でmicrosecond precisionは失われてしまい、チェックが出来ない為。
Update comment for how secret key is calculated
railties/lib/rails/application.rb
のdocの修正です。
secret_key_base
メソッドにのdocで、testとdevelopment環境で生成されるsecret keyについての説明が実際の内容と異なっていたのを修正しています。
actionview/CHANGELOG.md
の修正です。
CHANGELOGのエントリーのグラマーの修正を行っています。
Merge pull request #35683 from Kukunin/master
activerecord/lib/active_record/autosave_association.rb
の修正です。
has_one through association + associationに外部キーが含まれている場合に、recordが変更されてないのにも関わらず、record_changed?
がtrueを返してしまうケースがあったのを修正しています。
activesupport/activesupport.gemspec
の修正です。
Zeitwerkのバージョンを>= 1.4.2
に修正しています。
Avoid creating ActionText::RichText records unnecessarily
actiontext/lib/action_text/attribute.rb
の修正です。
ActionText::RichText
のデータが無い状態で、rich-text attributeのreadを行うと、その時点でテーブルが作成されてしまっていたのを、read処理ではテーブルの作成が行われないよう修正しています。