2018/07/31分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
cpu_time and allocations are 0 when JRuby is used
activesupport/test/log_subscriber_test.rb
の修正です。
ActiveSupport::Notifications::Event
のcpu_time
、allocations
がJRubyの場合0を返すことを確認するテストを追加しています。
Ignore concurrently-deleted files when deleting by prefix from GCS
activestorage/lib/active_storage/service/gcs_service.rb
の修正です。
ActiveStorage::Service::GCSService#delete_prefixed
メソッドでファイルを削除する際に、Google::Cloud::NotFoundError
が発生してもエラーを無視するよう修正しています。
同時にファイルが削除された場合等にNotFoundError
が発生する可能性がある為。
A regression in deprecate_methods was introduced in a982a42:
activesupport/lib/active_support/deprecation/method_wrappers.rb
の修正です。
Module
のクラスメソッドに対して、deprecate_methods
が動作しないバグがあったのを修正しています。
Avoid extra scoping when using Relation#update
class levelのupdate
をidを指定せずに実行した、かつ、scopeを指定していた場合に、そのscopeの影響を受けてしまい、正しく更新処理が行われないバグがあったのを修正しています。
activesupport/lib/active_support/deprecation/method_wrappers.rb
の修正です。
使用していないactive_support/core_ext/module/aliasing
のrequireを削除しています。
Guard against missing blobs caused by concurrent purges
activestorage/app/models/active_storage/attachment.rb
の修正です。
blobのpurge処理を呼び出す際にSafe Navigation Operatorを使用するよう修正しています。
purgeをコンカレントに行った場合に、blobがpurge済み(nil)になっている可能性がある為。
All links from README.md now served over https
README.md
の修正です。
外部ページへのリンクをまとめてhttpsに修正しています。
[ci skip] Fix the outdated description for find_each
.
rails guideのActive Record Query Interface
の修正です。
Options for find_each
の項、:start
オプションについて説明している箇所で、primary keyはintegerでなければならない旨記載されていたのですが、実際はintegerでなくても問題無い為、該当の部分を削除しています。
Fix example in thread_mattr_accessor documentation
activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb
のdocの修正です。
thread_mattr_accessor
メソッドのdoc内のexampleでmattr_accessor
を使用していたのを、thread_mattr_accessor
を使用するよう修正しています。
Merge pull request #33446 from ptoomey3/nested-respond-to
actionpack/lib/action_controller/metal/exceptions.rb
、
actionpack/lib/action_controller/metal/mime_responds.rb
の修正です。
respond_to
をネストして使用している、かつ、ネストした先と呼び出し元でtypeの指定が一致していない場合に、ActionController::RespondToMismatchError
をraiseするよう修正しています。
例。
respond_to do |outer_type| outer_type.js do respond_to do |inner_type| inner_type.html { render body: "HTML" } end end end
上記のように、呼び出し元のtypeがjs
なのに、中ではhtml
typeに関する処理を定義している、というような場合にExceptionをraiseするようになっています。
actionpack/CHANGELOG.md
の修正です。
先のrespond_to
の対応のエントリーから不要なドットを削除しています。