2016/11/17分のコミットです。
CHANGELOGへの追加はありませんでした。
Use named parameters instead of assert_valid_keys
activejob/lib/active_job/test_helper.rb
の修正です。
assert_enqueued_with
、assert_performed_with
メソッドの引数の指定にキーワード引数を使用するよう修正しています。
Enable JRuby testing for Action Mailer
.travis.yml
の修正です。
CIのテストの対象にJRuby + Action Mailerの組み合わせを追加しています。
Merge pull request #27064 from koic/bump_ruby_versions
.travis.yml
の修正です。
CIで使用するRubyのバージョンをRuby 2.2.6、2.3.2に更新しています。
Enable JRuby testing for Active Job
.travis.yml
の修正です。
CIのテストの対象にJRuby + Active Jobの組み合わせを追加しています。
Make JRUBY_OPTS a global Travis environment variable
.travis.yml
の修正です。
JRUBY_OPTS
をtravisのglobal envに定義するよう修正しています。
use force_encoding
instread of encode!
to avoid UndefinedConversionError
activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb
の修正です。
ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array#serialize
メソッドでencode処理を行う際に、encode!
を使用していたのを、force_encoding
を使用するよう修正しています。
- result.encode!(encoding) + result.force_encoding(encoding)
PG::TextEncoder::Array#encode
はASCII-8BIT
でencodeされた値を返すのですが、ASCII-8BIT
からUTF-8
への変換にencode!
を使用するとEncoding::UndefinedConversionError
が発生してしまう可能性がある為、force_encoding
を使用するようにしています。
Fix PG prepared statement test
activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb
の修正です。
prepared statementのテストのメソッド名がtest_
ではじまってなかった(テストが実行されてなかった)のを修正しています。