2018/05/23分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #32931 from jeremyevans/fast-xor
actionpack/lib/action_controller/metal/request_forgery_protection.rb
の修正です。
ActionController::RequestForgeryProtection#xor_byte_strings
メソッドをリファクタリングしています。
ループ数やpack
メソッドの呼び出しを削減し、1.7倍程度高速になっているとの事です。
Merge pull request #32934 from aki77/fix-locale-selector
railties/lib/rails/templates/rails/mailers/email.html.erb
の修正です。
email previewでlocaleを変更した際に、subject
が変更されないバグがあったのを修正しています。
Remove 7 years old note-to-self by tenderlove
actionpack/lib/action_dispatch/journey/nfa/simulator.rb
のdocの修正です。
Simulator#simulate
メソッドから不要なコメントを削除しています。
Rollback parent transaction when children fails to update (#32796)
activerecord/lib/active_record/autosave_association.rb
の修正です。
autosave associationsを使用している場合に、子のassociationsの保存に失敗した場合、親associationのtransactionをrollbackするよう修正しています。
Bump minimum version of Thor to 0.19.0
railties/railties.gemspec
の修正です。
dependencyに指定するThorのminimum versionの指定を0.18.1から0.19.0に更新しています。
Thor 0.18だとfrozen string literalを指定している場合に、コマンド実行時にFrozenError
が発生してしまうという問題がある為。
Indicate true
in a doc comment is code-like.
actionview/lib/action_view/helpers/cache_helper.rb
のdocの修正です。
CacheHelper#cache_fragment_name
メソッドのdoc内のskip_digest
オプションについて説明している箇所で、オプションのkeyだけが等幅フォントで表示されていたのを、valueも等幅フォントで表示されるよう修正しています。
Merge pull request #32144 from kazu9su/master
activestorage/test/service/disk_service_test.rb
の修正です。
ActiveStorage::Service::DiskService#url_for_direct_upload
メソッドについてのテストを追加しています。
Merge pull request #32851 from yskkin/doc_require_dependency
activesupport/lib/active_support/dependencies.rb
のdocの修正です。
require_dependency
メソッドがAPI docに表示されるよう修正しています。
require_dependency
は既にRails guideで紹介されており、publc API扱いの為。
Merge pull request #32699 from printercu/patch-3
railties/lib/rails/tasks/yarn.rake
の修正です。
yarn:install
taskで./bin/yarn
を実行する際に、NODE_ENV
を指定するよう修正しています。
環境変数NODE_ENV
が指定されていればその値を、なければRAILS_ENV
を見に行くようになっています。
Merge pull request #32822 from lxxxvi/improved_error_message_in_assert_changes
activesupport/lib/active_support/testing/assertions.rb
の修正です。
assert_changes
メソッドでassertionでエラーになった際のメッセージを修正しています。
expected / actualが明確にわかるようになっています。
# before "value" didn't change to y # after "value" didn't change to as expected Expected: "y" Actual: "z"
Fix RDoc formatting: +
doesn't work with space [ci skip]
actionview/lib/action_view/helpers/cache_helper.rb
のdocの修正です。
CacheHelper#cache_fragment_name
メソッドのdoc内のskip_digest
オプションが正しく等幅フォントで表示されていなかったのを修正しています。