2016/08/27分のコミットです。
CHANGELOGへの追加はありませんでした。
Missing key should throw KeyError
actionpack/lib/action_dispatch/http/headers.rb
の修正です。
ActionDispatch::Http::Headers#fetch
に指定したkeyが存在しなかった場合に、KeyError
をraiseするよう修正しています。
Rails 4.2系まではKeyError
がraiseするようになっていたのですが、5.0.0でNameError
をraiseするよう誤って変更してしまっていた為、修正しています。
Move custom assertion to its proper place
activesupport/lib/active_support/test_case.rb
、
activesupport/lib/active_support/testing/assertions.rb
の修正です。
ActiveSupport::TestCase
クラスで定義されていたassert_nothing_raised
メソッドを、ActiveSupport::Testing::Assertions
moduleに移動しています。他のRails独自のassertionメソッドはActiveSupport::Testing::Assertions
に定義されており、他と合わせる為assert_nothing_raised
も移動したとの事です。
Fix typo in deprecation message
activemodel/lib/active_model/errors.rb
の修正です。
ActiveModel::Errors#add_on_blank
メソッドを使用した場合に出力されるdeprecationメッセージで、代わりに使用すべきメソッド内にタイポがあったのを修正しています。
- errors.add(attribute, :empty, options) if value.blank? + errors.add(attribute, :blank, options) if value.blank?
Fix typo in Delegation#delegate_missing_to doc [skip ci]
activesupport/lib/active_support/core_ext/module/delegation.rb
のdocの修正です。
delegate_missing_to
メソッドのdoc内にタイポがあったのを修正しています。