なるようになるブログ

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

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

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

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


Remove session to allow with_routing to be called twice.

actionpack/lib/action_dispatch/testing/integration.rbactionpack/test/abstract_unit.rbの修正です。

integrationテストの中で2回with_routingメソッドを呼び出した際、2回目の呼び出しの際にroutesプロパティが設定されなかったバグがあったのを修正しています。

with_routingの後処理でセッション情報削除し対応しています。


Improve performance of AR object instantiation

ActiveRecordの修正です。

ActiveRecordのオブジェクトの生成処理が、4.1.xと比べて著しく遅くなってしまっていたとの事で、性能改善の為の改修を行っています。性能劣化についてのissueはこちら

attributes の生成の為のイテレーション処理で遅くなってしまっていたようで、attributesの生成処理を修正しています。


Remove unneccesary default parameters

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

上記対応で追加したbuild_from_database_pairsメソッドのデフォルト引数を削除しています。


Removed documentation that still mentioned using respond_with in place

actionpack/lib/action_controller/metal/mime_responds.rbactionpack/lib/action_controller/metal/renderers.rbのdocの修正です。

respond_withメソッドの説明をしている箇所を削除しています。 respond_withメソッドはgemとして外だししたので、rails本体では言及する必要は無いからとの事です。


Remove redundancy

rails guideのRuby on Rails 4.1 Release Notesの修正です。

Action Mailer Previewsの項のグラマーの修正を行っています。


Replace Html with HTML [ci skip]

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

Html -> HTMLに修正しています。


added example of squish!, remove, test case for multiple occurrence of

activesupport/lib/active_support/core_ext/string/filters.rbのdocの修正です。

squish!removeremove!メソッドのexampleを追加しています。


docs, synchronize 4.2. release notes. [ci skip]

rails guideのRuby on Rails 4.2 Release Notesの修正です。

--skip-action-viewの削除、sanitize_sql_hash_for_conditionsメソッドのdeprecate対応について追記しています。


Fix grouped expression warning - warning: (...) interpreted as grouped expression

activesupport/test/core_ext/range_ext_test.rbの修正です。

interpreted as grouped expressionのwarningが出力されていた箇所があったので、()を追加し対応しています。


tests, use SchemaDumpingHelper to dump a specific table.

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

テスト内でtableのdumpを行う処理について、SchemaDumpingHelperというdump処理用のヘルパーがあるので、そちらを使用するよう修正しています。


tests, remove unneeded requires.

ActiveRecordのテストの修正です。

不要なrequire処理を削除しています。