なるようになるブログ

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

rails commit log流し読み(2014/06/08)

2014/06/08分のコミットです。

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

actionpack/CHANGELOG.md


Correct Example output in Rails guides [ci skip]

rails guideのThe Rails Command Lineの修正です。

サンプルの出力結果が誤っていたのを修正しています。


Don't rely on Time.current in tests

activerecord/test/cases/adapters/postgresql/array_test.rbの修正です。

Time.currentに依存しないよう修正しています。ミリ秒まで含むテストはTravisで失敗する事があるようです。


Ensure time zones don't change after round trip with array columns

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

PostgreSQL のarray columnsを使用している場合に、TimeZoneが反映されなかったケースがあったのを修正しています。


Remove duplicated @raw_attributes.keys

ActiveRecordの修正です。@raw_attributes.keys -> self.attribute_namesに修正しています。

メソッドを呼び直すのではなく、既に取得済みの値を使用するよう修正しています。


Remove dead branch when restoring ID within a transaction

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

通らない処理を削除しています。

has_attribute?(self.class.primary_key)falseになるケースは無いのかあ。


Move conditionals about freezing closer to the definition of freeze

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

@raw_attributesがfreeze済みだった場合の処理をCoreに移動しています。類似処理をまとめるため、との事です。


Do not type cast twice on attribute assignment

activerecord/lib/active_record/attribute_methods/dirty.rb、各Typeクラスの修正です。

type_castを2回行っていたのを修正しています。


fix test cases after #15558 merge to master.

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

propertyattributeに修正しています。

#15558の修正で、テストの方の修正が漏れていたのを対応しています。


Add Missing Test Cases for the constantize

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

テストケースが足りてなかったのを追加しています。


Handle client disconnect during live streaming

actionpack/lib/action_controller/metal/live.rbの修正です。

live streamingの修正です。データ書き込み中にクライアントから切断された場合の扱いを修正しています。

現状、切断された場合ClientDisconnectedが発生するのですが、response.stream.ignore_disconnecttrueを設定した場合、Exceptionが発生しないよう対応出来るようです。


Ignore distressingly-frequent segfaults on this build

`.travis.ymlの修正です。

allow_failuresのセクションに以下を追加しています。

+    - rvm: 1.9.3
+      env: "GEM=ar:mysql"

突然失敗する事があるらしく、そのための対応との事。


Update migrations.md

rails guideのActive Record Migrationsの修正です。

Supported Type Modifiersの項にdefaultの項目を追加しています。