なるようになるブログ

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

rails commit log流し読み(2016/04/13)

2016/04/13分のコミットです。

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

actionpack/CHANGELOG.md


Allow symbols using "dot notation" to be passed to where

Active Recordの修正です。

whereメソッドの引数に、"."が入ったSymbol(ex: Topic.where('topics.approved': true))を渡した時に、正常に処理が行われないバグがあったのを修正しています。


Generate cable.js file if does not exist when generating channel

actioncable/lib/rails/generators/channel/channel_generator.rbの修正です。

Action Cableのファイルをgenerateする際に、assets/cable.jsが存在しない場合、assets/cable.jsを生成するよう修正しています。

生成されるclient側のコードが、cable.jsがある事を前提としたコードになっている為。


Merge pull request #24523 from BlakeMesdag/as-max_time-fix-edges

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

先日、ActiveSupport::FileUpdateChecker#max_mtimeメソッドでファイルのmax timeを取得するのに複数回ループ処理を行っていたのをてループが一回で済むようリファクタリングを行った( Use a single memoized loop to find max mtime in ActiveSupport::FileUpdateChecker#max_mtime)のですが、その際、対象のpathにあるファイルのUNIX時間が0だった場合に、そのUNIX時間ではなくnilを返してしまう、というバグがあったのを修正しています。


Merge pull request #24494 from vipulnsward/guides-changelog-pass

guides/CHANGELOG.mdの修正です。

各entryのグラマーの修正、及びAction Cableのguide(Action Cable Overview)が追加された対応について、entryを追加しています。


copy edits some comments [ci skip]

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

ActiveSupport::FileUpdateChecker#max_mtimeメソッド内のコメントの整理を行っています。


Merge pull request #24502 from ankit8898/freezing-dot-in-delimiter-helper

activesupport/lib/active_support/number_helper/number_to_delimited_converter.rbactivesupport/lib/active_support/number_helper/number_to_rounded_converter.rbの修正です。

ActiveSupport::NumberHelper module内の各メソッドで、値が変わらない文字列をfreezeするよう修正しています。


Merge pull request #24318 from bogdanvlviv/patch-1

actionpack/lib/action_dispatch/http/mime_types.rbの修正です。

application/x-yaml mime typeのextension synonymとして、ymlyamlを追加しています。


Remove time calculatiosn extension

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

不足していたactive_support/core_ext/time/calculationsのrequireを追加しています。


Remove unused variable

activesupport/test/file_update_checker_shared_tests.rbの修正です。

使用していない変数を削除しています。