2014/11/07分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
added example of hash#except, and removed extra whitespaces [ci skip]
activesupport/lib/active_support/core_ext/hash/except.rb
のdocの修正です。
Hash#except
、Hash#except!
メソッドのdocにexampleを追加しています。
[Enh] Changed the visibility of the ActiveModel::Dirty#clear_attribute_changes method
activemodel/lib/active_model/dirty.rb
の修正です。
clear_attribute_changes
メソッドに:doc:
を設定し、public APIとしています。
ActiveRecordのインスタンスを生成する際、初期値を与えてインスタンスを生成すると、初期値を設定したattributesには変更済みのフラグが設定されてしまうのですが、
インスタンス生成時に値を設定した場合は変更済みとはしたくない場合等に、clear_attribute_changes
を使いたい事があるので、public APIとしたようです。
Print out a meaningful error when ActiveRecord::ReadOnlyRecord is raised
activerecord/lib/active_record/persistence.rb
の修正です。
ActiveRecord::ReadOnlyRecord
クラスに、適切なエラーメッセージを含むよう修正しています。
- raise ReadOnlyRecord if readonly? + raise ReadOnlyRecord, "#{self.class} is marked as readonly" if readonly?
[ci skip] modify default host in command line guide
rails guideのThe Rails Command Line
の修正です。
rails serverのデフォルトホストをlocalhostに修正しています。
docs, the abstract data type :timestamp
was removed. See #15184 [ci skip]
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
のdocの修正です。
schemaに定義出来る型の一覧から:timestamp
を削除しています。
remove the last traces of OpenBase from our codebase. [ci skip]
activerecord/test/config.example.yml
の修正です。
DB用のconfigファイルのサンプルからOpenBaseを削除しています。
以前OpenBaseに関するテストを削除した事があったのですが、その対応の漏れですかね。
pg tests, only execute what's necessary.
activerecord/test/cases/adapters/postgresql/bytea_test.rb
、
activerecord/test/cases/adapters/postgresql/hstore_test.rb
の修正です。
bytea data typeのテストで前処理でassertを行っていた箇所があったのをテスト内に移動、
hstoreのテストの先頭でActiveRecord::Base.connection.supports_extensions?
を行うよう修正を行っています。
pg tests, get rid of sql_types_test.rb
.
ActiveRecordのテストの修正です。
activerecord/test/cases/adapters/postgresql/sql_types_test.rb
で行っていたbinary
型、text
型のサイズ上限に関するテストを、それぞれの型のテストファイルの中に移動しsql_types_test.rb
は削除しています。
Guides: Corrected name for assigns key [ci skip]
rails guideのA Guide to Testing Rails Applications
の修正です。
Integration Testing のexampleで、テスト対象の変数名に誤りがあったのを修正しています。