なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2016/05/03)

2016/05/03分のコミットです。

CHANGELOGへの追加はありませんでした。


Do not delegate AR::Base#empty? to all

activerecord/lib/active_record/querying.rbの修正です。

ActiveRecord::Querying moduleがdelegateするメソッドからempty?を削除しています。

Delegate some additional methods in querying.rbone?none?メソッドと一緒に追加されたのですが、one?none?と異なりenumerable外のメソッドにも影響を与えてしまう為、delegateしないようにしたとの事です(実際にhas_many + STIの組み合わせて、インスタンスを正常に生成出来ないリグレッションが発生していた為の事で)。


Fix template resolver cache concurrency: "can't add a new key into hash during iteration"

activesupport/activesupport.gemspecGemfile.lockの修正です。

concurrent-rubyのバージョンを、1.0.2以上を使用するよう修正しています。

concurrency-ruby 1.0.1以下だと、Concurrent::Mapクラスで#inspect?メソッドを使用した場合に、正常に動作しないバグがあった為との事です。

参考:Conc::Map - MRI backend fixes by thedarkone · Pull Request #529 · ruby-concurrency/concurrent-ruby


remove empty? from CHANGELOG [ci skip]

activerecord/CHANGELOG.mdの修正です。

CHANGELOGから、empty?メソッドdelegateするよう対応した件を削除しています。

Do not delegate AR::Base#empty? to allActiveRecord::Querying moduleがdelegateするメソッドからempty?を削除しています。


Fix small typo in Active Record Migrations documentation [ci skip]

activerecord/lib/active_record/migration.rbのdocの修正です。

defineddefindedにタイポしている箇所があったのを修正しています。


Release notes: Remove duplicate entries [ci skip]

rails guideのRuby on Rails 5.0 Release Notesの修正です。

collection caching及びbelongs_torequiredがデフォルトtrueになった対応についてのentryが重複していたので、それぞれ不要なentryを削除しています。