2014/10/20分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Make _status_code methods nodoc
actionpack/lib/action_controller/metal.rb
、
actionpack/lib/action_dispatch/http/response.rb
の修正です。
_status_code
メソッドに:nodoc:
を追加しています。
Fixed test throwing unused variable warning
activerecord/test/cases/serialized_attribute_test.rb
の修正です。
テスト内で使用してない変数を削除しています。
Enable emitting of warnings from ActiveJob tests.
activejob/Rakefile
の修正です。
テスト実行時にwarningが出力されるよう、Rake::TestTask#warning
にtrueを設定しています。
- Removed unused variable warnings from ActiveJob Adapters ActiveJobのテストの修正です。
使用してない変数の削除を行っています。
remove duplicate method (_status_code) in action_dispatch
actionpack/lib/action_dispatch/http/response.rb
、
actionpack/lib/action_controller/metal/rack_delegation.rb
の修正。
Response#_status_code
メソッドを削除しています。
ActionControllerで_status_code
メソッドをResponseにdelegateするようにしていたのですが、そもそもActionController::Metalに_status_code
メソッドがあるので、delegateの必要が無いので、削除したようです。
activerecord/lib/active_record/relation/merger.rb
のdocの修正です。
Relation::HashMerger#merge
メソッドのdocを追加しています。が、直後のコミットで削除される事に。
[ci skip] Make merge method nodoc
activerecord/lib/active_record/relation/merger.rb
のdocの修正です。
Relation::HashMerger#merge
メソッドのdocを削除しています。こちらはprivate APIのようで、代わりに:nodoc:を追加しています。
Mention perform_now
in AJ base docs to specify how to immediately invoke a job. [ci skip]
activejob/lib/active_job/base.rb
のdocの修正です。
ActiveJobの説明を行っている箇所に、perform_now
についての説明を追加しています。
AR::UnknownAttributeError should include the class name of a record
activerecord/lib/active_record/errors.rb
の修正です。
ActiveRecord::UnknownAttributeError
にエラーが起きたレコードのクラス名を含むよう対応しています。
User.new(name: "Yuki Nishijima", project_attributes: {name: "kaminari"}) # => ActiveRecord::UnknownAttributeError: unknown attribute on User: name
docs, It's "Active Job" not "Active job". [ci skip]
activejob/lib/active_job/base.rb
のdocの修正です。
"Active job"を"Active Job"に修正しています。
No need to specify log level, run at log level as all other Rails components.
activejob/test/helper.rb
の修正です。
helperの中でlog levelを指定していたのを削除しています。他のコンポーネントと同じログレベルで実行されるようにする為、ですかねえ。
- Remove duplication in AJ logging test for setting logger.
activejob/test/cases/logging_test.rb
、
activejob/test/cases/rescue_test.rb
の修正です。
loggerの設定処理を、set_logger
メソッドで行うよう修正しています。 あと合わせて、不要なrequireの削除を行っています。