なるようになるブログ

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

rails commit log流し読み(2014/11/12)

2014/11/12分のコミットです。

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

railties/CHANGELOG.md


Merge pull request #17047 from betesh/master

activesupport/lib/active_support/core_ext/time/zones.rbの修正です。

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


Replace "behaviour" with "behavior"

rails guideのA Guide for Upgrading Ruby on Railsの修正です。

behaviour->behaviorに修正しています。

behaviourってイギリス英語何ですねえ。


Merge pull request #17348 from DavidGeukers/rake_test_all

railties/lib/rails/test_unit/testing.rakeの修正です。

rake testがtestディレクトリ配下の全てのテストファイルを実行するよう修正しています。

元々は特定のディレクトリだけだったのですが、その方が便利だから、との事です。

元々テストを実行する為にあったrake test:allはdeprecateになり、rake test:all:dbrake test:dbに変更になっています。


Fix Rails::Paths::Path.unshift interface

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

Rails::Paths::Path.unshiftメソッドの引数を複数指定出来るよう対応しています。

-      def unshift(path)
-        @paths.unshift path
+      def unshift(*paths)
+        @paths.unshift(*paths)

Array#unshiftは元々引数の複数指定出来ていたので、それに合わせた形ですね。


Merge pull request #17348 from DavidGeukers/rake_test_all

railties/lib/rails/test_unit/testing.rakeの修正です。

rake testがtestディレクトリ配下の全てのテストファイルを実行するよう修正しています。

元々は特定のディレクトリだけだったのですが、その方が便利だから、との事です。

元々テストを実行する為にあったrake test:allはdeprecateになり、rake test:all:dbrake test:dbに変更になっています。


Follow the coding conventions

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

respond_to?メソッドの引数指定に中括弧を追加しています。

-          unless body.respond_to?:call
+          unless body.respond_to?(:call)