2017/12/06分のコミットです。
CHANGELOGへの追加はありませんでした。
only install ffmpeg and mupdf on activestorage builds
.travis.yml
の修正です。
Active Storageのテストのbuildでのみffmpeg
とmupdf
をインストールするよう修正しています。
Execute JsonAttributeTest
only if supports_json?
returns true
activerecord/test/cases/json_attribute_test.rb
の修正です。
supports_json
がtrueを返す時だけJSON attributeのテストを行うよう修正しています。
rails本体でサポートしているadapterではすべてJSON data typeをサポート済みなのですが、third partyのadapter(Oracle enhanced adapter)ではJSON data typeをサポートしていない為。
が、これは間違いで、JsonAttributeTest
はJSON attributeに関するテストで、これはJSON data typeをサポート済みかどうかとは別な為、後ほどrevertされています。
Add assert_in_epsilon
to Testing guide [ci skip]
rails guideのA Guide to Testing Rails Applications
の修正です。
Available Assertions
の項にあるassetionsの一覧にassert_in_epsilon
、assert_not_in_epsilon
を追加しています。
Yield array from AC::Parameters#each for block with one arg
actionpack/lib/action_controller/metal/strong_parameters.rb
の修正です。
ActionController::Parameters#each
、#each_pair
メソッドにblockを渡した場合に、block実行時の引数をArrayにするよう修正しています。
def each_pair(&block) @parameters.each_pair do |key, value| - yield key, convert_hashes_to_parameters(key, value) + yield [key, convert_hashes_to_parameters(key, value)] end end
Hash#each
、#each_pair
と挙動を合わせる為。