なるようになるブログ

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

rails commit log流し読み(2019/02/06)

2019/02/06分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md

actionview/CHANGELOG.md


Chaining named scope is no longer leaking to class level querying methods

Active Recordの修正です。

Chaining name scopeを使用しているとき、そのchainしてるscopeがclass levelのquery methodに影響を与えてしまう、というバグがあったのを修正しています。


Set sqlite3 gem version explicitly in generated Gemfile

railties/lib/rails/generators/database.rbの修正です。

rails newで生成するGemfilesqlite3 gemのバージョンを明示的に指定するよう修正しています。


Merge branch 'float_dom_ids'

actionview/lib/action_view/helpers/tags/base.rbの修正です。

collection inputsにfloat valueを指定した場合に、生成されるタグのdom idがユニークにならない(e.g. [1.0, 10]を指定した場合に、どちらのタグもuser_name_10が生成される)バグがあったのを修正しています。


Add missing require "tmpdir" in ActiveSupport::EncryptedFile

activesupport/lib/active_support/encrypted_file.rbの修正です。

不足していたtmpdirのrequireを追加しています。


Relation no longer respond to Arel methods

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

ActiveRecord::Delegation#respond_to_missing?メソッドでarelに対してrespond_to?チェックを行っていたのを、しないよう修正しています。

Remove delegation of missing methods in a relation to arelでrelationからarelへのdelegateは行わくなった為。


Merge pull request #35171 from rails/speed-up-partials

Action Viewの修正です。

partial templateをrenderする際に、variable nameをcacheするよう修正しています。性能向上の為。


Merge pull request #35162 from silppuri/fix-incorrectly-matching-unachored-paths

actionpack/lib/action_dispatch/journey/path/pattern.rbの修正です。

routingのpath match処理にバグがあり、末尾に不要な記号がある場合も同じpathと見なされてしまう(e.g. /assets/foo.png/assetsfoo.pngが同じpathと見なされてしまう)バグがあったのを修正しています。


Update terminal-to-html inline images url in ScreenshotHelper

actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rbのdocの修正です。

terminal inline imageのGitHub pageのURL(https://buildkite.github.io/terminal-to-html/inline-images)を修正しています。buildkite/terminalのリポジトリ名がbuildkite/terminal-to-htmlに変更になった為。


Merge pull request #34971 from y-yagi/improve_railties_test

railtiesのテストの修正です。

不要なyarn installを実行をしないよう修正、必要なライブラリをテスト実行前に読み込むよう修正等を行っています。


Fix CollectionProxy#concat to return self by alias it to #<<

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

CollectionProxy#concatメソッドの戻り値が引数に指定したrecordsになっていたのを、selfを返すよう修正しています。ドキュメントにselfを返す旨説明が記載されており、ドキュメント(と他のメソッドと)挙動を合わせる為。