なるようになるブログ

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

rails commit log流し読み(2014/05/18)

2014/05/18分のコミットです。

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


Fix app generator test hanging.

railties/test/generators/app_generator_test.rbの修正です。

test_application_name_is_detected_if_it_exists_and_app_folder_renamedのテストでcreate_config_filesしていたのをupdate_config_filesに修正しています。

元々ファイルがあった場合に更新するように、という事かと。なお、このコミットでは修正がまだ不足していた為、後ほど追加でテストがコミットされています。


Add missing tests for column type cast behavior

activerecord/test/cases/column_test.rbの修正です。

Column#type_castメソッドのテストを追加しています。


New applications should be created with json serializer

railties/test/generators/app_generator_test.rbの修正です。

config/initializers/cookies_serializer.rbについてのテストを追加しています。


Collected TimeZone's class methods together

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

self.seconds_to_utc_offsetメソッドをclass << self配下に移動しています。

元々class << selfが定義されていたので、処理をまとめる為ですね。


Document method visibility for designing API docs. [ci skip]

rails guideのAPI Documentation Guidelinesのページの修正です。

Method Visibilityの項を追加しています。 public APIとinternal APIの違いについて。internal APIには:nodoc:をつけましょう、という説明がされています。


Remove dead test code for unsupported adapters

各種テストコードからサポート外のDB Adaptersの処理を削除しています。

サポート外になったのは、SybaseFirebird、FrontBase、OpenBase。


PostgreSQL timestamps are always datetimes

activerecord/lib/active_record/connection_adapters/postgresql/oid.rbの修正です。

PostgreSQLのDB Adapterでtimestamps型はいつもdatetimeとして扱うよう修正しています。

今までも基本的にはdatetimeとして扱われていたのですが、Arrayの時だけtimestampとして扱われていました。で、Arrayについてもdatetimeとして扱うよう修正しています。


Add a type object to Column constructor

ActiveRecord::ConnectionAdapters::Columnコンストラクタにtype objectを追加しています。

type objectには型の情報等を持つようなのですが、このコミットではまだその部分は対応されてないような。

ActiveRecord columnをリファクタしているPRがあり、このコミットから一部抜粋したようです。


Let others know why this code is here

activemodel/lib/active_model/secure_password.rbの修正です。

docを追加しています。


remove ecosystem link that is broken

guides/source/layout.html.erbの修正です。

無くなっているページへのリンクを削除しています。