2016/03/16分のコミットです。
CHANGELOGへの追加はありませんでした。
adds coverage for throwing while autoloading
activesupport/test/dependencies_test.rb
の修正です。
autoloading処理中にthrowが呼ばれた場合のテストを追加しています。
adds coverage for raising while autoloading
activesupport/test/dependencies_test.rb
の修正です。
autoloading処理中にExceptionがraiseされた場合のテストを追加しています。
activesupport/test/dependencies_test.rb
の修正です。
autoloading処理中にException / throwが発生した場合の挙動を確認するテストのテスト名が、test_raising_removes_autoloaded_constants
、test_throwing_removes_autoloaded_constants
になっていたのを、それぞれtest_raising_discards_autoloaded_constants
、test_throwing_discards_autoloaded_constants
に修正しています。
tests the raising/throwing discards the watching stack
activesupport/test/dependencies_test.rb
の修正です。
autoloading処理中にException / throwが発生した場合の挙動を確認するテストで、エラーが発生する前に定義された定数も破棄される事を確認するテストを追加しています。
activesupport/lib/active_support/dependencies.rb
の修正です。
new_constants_in
メソッドから、実行される事が無い空配列を返す処理を削除しています。
no need to clear an unusued collection
activesupport/lib/active_support/dependencies.rb
の修正です。
new_constants_in
メソッドで、エラーが発生した場合に、定義された定数の破棄及びその定数を管理しているcollectionのクリア処理をしていたのですが、collectionのクリア処理は不要(内部構造がクリアされる訳ではないので、意味が無かった)との事で、削除しています。
Add comments to ActiveSupport::Dependencies to help understanding
activesupport/lib/active_support/dependencies.rb
のdocの修正です。
remove_constant
メソッド内に、処理の説明用のコメントを追加しています。
Improve code readability in ActiveSupport::Dependencies
activesupport/lib/active_support/dependencies.rb
の修正です。
new_constants_in
メソッドで、処理中にエラーが起きたかどうかの判定を行う為の変数名がaborting
になっていたのをsuccess
に修正、及び、コメントの改善を行っています。
adds .gitattributes to enable Ruby-awareness
.gitattributes
ファイルを追加しています。内容は下記の通りです。
.rb diff=ruby *.gemspec diff=ruby
中身はRuby本体(ruby/.gitattributes at trunk · ruby/ruby)を参考にした、との事です。
fix a comment in atom_feed_helper.rb
actionview/lib/action_view/helpers/atom_feed_helper.rb
のdocの修正です。
a xhtml
を an xhtml
に修正しています。