2014/09/02分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Gemfile
、railties/lib/rails/generators/app_base.rb
の修正です。
masterのjquery-rails
を使用するよう修正しています。
railties/lib/rails/generators/app_base.rb
の修正です。
masterのweb-console
を使用するよう修正しています。
actionview/test/activerecord/polymorphic_routes_test.rb
の修正です。
()が無くてwarningが出ていた箇所を修正しています。
- assert_match /undefined method `series_url' for/, exception.message + assert_match(/undefined method `series_url' for/, exception.message)
Add test to assert the right sanitizer vendor is being used
Gemfile
、railties/test/application/default_stack_test.rb
の修正です。
masterのrails-html-sanitizer
を使用するよう修正、及びsanitizer
処理についてのテストを追加しています。
Move implementation to the gems
Gemfile
、actionview/lib/action_view/helpers/sanitize_helper.rb
の修正です。
Gemfileにrails-deprecated_sanitizer
の追加、及びそれに伴い不要となったメソッドの削除を行っています。
MySQL: skip GTID-unsafe statement tests when enforce_gtid_consistency is enabled
activerecord/test/cases/adapters/mysql2/schema_test.rb
、
activerecord/test/cases/helper.rb
の修正です。
GTID(Global Transaction ID)が有効になっている場合、temporary tableをdropするテストを行わないよう対応しています。
GTID知らなかったのですが、MySQL 5.6.5からの新機能で、文字通りのトランザクションにグローバルなIDが付与する機能なんですね。これ使うと、マスターのポジション指定しなくてもレプリ組めるんですね。詳細はMySQLのdocご参考。
remove trailing whitespace. [ci skip]
activesupport/CHANGELOG.md
の修正です。
不要なスペースの削除。
Merge pull request #16450 from tgxworld/dont_swallow_error_when_identifying_constant_from_test_name
activesupport/lib/active_support/testing/constant_lookup.rb
の修正です。
determine_constant_from_test_name
メソッドでクラス名生成するのに、constantize
メソッドを使用していたのを、safe_constantize
を使用するよう修正しています。
constantize
メソッドと、safe_constantize
の違いよく解ってなかったのですが、エラー発生時の処理が違うんですね。
'blargle'.safe_constantize # => nil 'blargle'.constantize # => NameError: wrong constant name blargle
元々の処理だと、constantize
メソッドを使用しるにも関わらず、NameError
が発生した場合にエラー情報握りつぶしてしまっており、それで問題がおきていたようです。
[ci skip] Fix a typo in the doc of MessageDelivery
actionmailer/lib/action_mailer/message_delivery.rb
のdocの修正です。
deliver_later!
のrdocの説明がdeliver_later
になっていたのを修正しています。
ActiveJob: Implemented enqueue_at for QueueClassic
activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb
の修正です。
enqueue
メソッド内で行っていたQC::Queue
のインスタンスの生成処理をbuild_queue
メソッドに移動しています。
QC::Queue
クラスのサブクラスを作成した場合、build_queue
をオーバーライドして上げれば、任意のクラスで対応可能との事です。
具体的なケースとして、QueueClassic
クラスはenqueue_at
メソッドを実装してないのですが、実装欲しい場合は、自前で実装してねーという事のようです。また、実際それを対応している、 queue_classic-laterというgemがあるとの事です。
Leave all our tests as order_dependent! for now
各モジュールのabstract_unit.rb
、 helper.rb
の修正です。
ランダムにテストを実行すると、まだエラーになってしまうようなので、ActiveSupport::TestCase.my_tests_are_order_dependent!
を戻しています。
Merge pull request #16724 from seuros/testcase
ActiveJobのテストの修正です。
ActiveJobのテスト用のActiveJob::TestCase
クラス、テスト用のhelper等を新規に作成しています。
Add and Remove string/strip require
ConnectionAdaptersの修正です。
require 'active_support/core_ext/string/strip'
の追加/削除をしています。