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 BC
0000-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
の値をテスト終了後元の値に戻すよう修正しています。