2014/06/05分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Correct result, previously showing wrong result
Hash#with_indifferent_accessメソッドのdocの修正です。
実行結果の値が誤っていたのを修正しています。
For our build, stick with mail 2.5.x for now
Gemfileの修正です。
gem 'mail', '~> 2.5.4'を追加しています。mailが2.6だと大量のwarningが出てしまうとの事で、とりあえず2.5.4に固定するとの事です。
Revert "Correct Documentation for asset_tag_helpers"
actionview/lib/action_view/helpers/asset_tag_helper.rbのdocの修正のコミットをrevertしています。
一部抜粋。
# image_tag("rails.png")
- # # => <img alt="Rails" src="/images/rails.png" />
+ # # => <img alt="Rails" src="/assets/rails.png" />
railsはデフォルトでは/assetsがアセットのパスの想定なので、デフォルトに合わせる為、revertしたとの事です。
have an actual NullColumn object and update docs accordingly.
ConnectionAdaptersの修正です。
NullColumnクラスを追加して、column_for_attributeに存在しないカラムを指定した際、NullColumnオブジェクトを戻すよう修正しています。また、ocも仕様に合わせた形に修正しています。
Emit suggested generator names when not found
railties/lib/rails/generators.rbの修正です。
bin/rails generateコマンドで、存在しないジェネレーターを指定した場合に、サジェストメッセージを出すよう修正しています。
# before $ rails generate migratioooons Could not find generator migratioooons # after $ rails generate migratioooons Could not find generator 'migratioooons'. Maybe you meant 'migration' or 'integration_test' or 'generator' Run `rails generate --help` for more options.
サジェストする内容はレーベンシュタイン距離で計算しています。
activerecord/test/cases/associations/inverse_associations_test.rbの修正です。
buildをcreateに修正しています。メソッド名がtest_parent_instance_should_be_shared_within_create_block_of_new_childなので、元々createが正しいテストだったのかと。
rails guideのGetting Started with Railsの修正です。
Article.newのAが何故大文字なのかの説明を追加しています。
rails guideのGetting Started with Railsの修正です。
paramsメソッドについての説明を追加しています。
Merge pull request #15421 from gchan/time_with_zone_precision
activesupport/lib/active_support/time_with_zone.rbの修正です。
ActiveSupport::TimeWithZone#-メソッドで桁落ちしてしまっていたのを修正しています。
CHANGELOGから抜粋。
# Before:
Time.zone.now.end_of_day.nsec #=> 999999999
Time.zone.now.end_of_day - Time.zone.now.beginning_of_day #=> 86400.0
# After:
Time.zone.now.end_of_day - Time.zone.now.beginning_of_day
#=> 86399.999999999
Remove deprecated method ActiveRecord::Migrator.proper_table_name
deprecateだったActiveRecord::Migrator.proper_table_nameメソッドを削除しています。
代わりにActiveRecord::Migrationのインスタンスメソッドのproper_table_nameを使うようにとの事。
Avoid hardcoded value in test setup/teardown.
actionpack/test/dispatch/request/query_string_parsing_test.rbの修正です。
値がハードコードされてたのを、メソッドから取得するよう修正しています。
actionpack/test/controller/send_file_test.rbとactionpack/test/dispatch/mime_type_test.rbの修正です。
テストの中でMime::PNGの登録を行っていますが、既に登録済みとの事で削除しています。
Merge pull request #15521 from edogawaconan/fix_bc_postgres_master
PostgreSQLのConnectionAdapterの修正です。
BC yearのハンドリングに誤りがあったのを修正しています。
0000-01-01=>0001-01-01 BC0000-02-29=>0001-02-29 BC
actionpack/test/dispatch/reloader_test.rbの修正です。
teardownでReloader.reset_callbacksで実行するように、callbacksをresetするよう修正しています。
Avoid hard-coded value in test setup/teardown.
actionpack/test/dispatch/request_test.rbの修正です。
値がハードコードされてたのを、メソッドから取得するよう修正しています。
Restore Response.default_headers after test.
actionpack/test/dispatch/response_test.rbの修正です。
ActionDispatch::Response.default_headersの値をテスト終了後元の値に戻すよう修正しています。