2015/11/05分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
のdocの修正です。
docに、既に存在しないcolumns attributesについて説明している箇所があったので、削除しています。
Update docs/comments to use setup/teardown blocks vs. methods.
activesupport/lib/active_support/log_subscriber/test_helper.rb
のdocの修正です。
ActiveSupport::LogSubscriber::TestHelper
moduleを使用したexampleのsetup
処理から、不要なsuper
メソッドの呼び出しを削除しています。
formatting pass over Active Record changelog. [ci skip]
activerecord/CHANGELOG.md
の修正です。
CHANGELOG全体のフォーマット、グラマーの修正を行っています。
document try!
in ActiveSupport core ext guide
rails guideのActive Support Core Extensions
の修正です。
try!
メソッドについての説明を追加しています。
Move static_cache_contorl
deprecation changelog entry to Railties.
actionpack/CHANGELOG.md
、
railties/CHANGELOG.md
の修正です。
config.static_cache_control
をdeprecateにした対応(https://github.com/rails/rails/commit/9d05430c956c4ae1d0aefda02def5052ea818433)についてのエントリーを、Action PackのCHANGELOGからrailtiesのCHANGELOGに移動しています。
environment filesの修正が必要な対応であり、environment filesはrailtiesの範疇の為との事です。
Merge pull request #22173 from kaspth/enable-public-file-server
railtiesの修正です。
config.serve_static_files
がdeprecateになりました。今後はconfig.public_file_server.enabled
を使用する必要があります(設定する値は変わらずtrue
/false
)。
config.static_cache_control
がconfig.public_file_server.headers
に変更になったのに合わせて、static filesの使用設定についてもconfig.public_file_server
配下の値を使用するようにしたとの事です。
tests, define Rails.root
before loading Action Mailer.
https://github.com/rails/rails/commit/a80fb6f9b3b553b59a486d7aa4673cc47397fab5
actionmailer/test/abstract_unit.rb
、
actionmailer/test/delivery_methods_test.rb
の修正です。
テスト実行前にRails.root
が必ずAction Mailerのロード前に定義されるよう、メソッドの定義箇所を修正しています。
元々は、rake
でテストを実行した場合はAcction Mailerのロード後に定義されて、bin/test
でテストを実行した場合はAction Mailerのロード後に定義される、という状態になってしまっており、その影響でテストがコケてしまっていたので、ロード前に必ず定義するように、テストが通るよう対応しています。
Replace serve_static_files
in tests with public_file_server.enabled
.
railtiesのテストの修正です。
config.serve_static_files
を使用していたのを、public_file_server.enabled
を使用するよう修正しています。
Replace serve_static_files
mentions in docs.
各guideの修正です。
config.serve_static_files
を使用していたのを、public_file_server.enabled
を使用するよう修正しています。
tests, test should not care wether 9ms or 11ms have passed.
actionpack/test/controller/log_subscriber_test.rb
の修正です。
test_process_action_with_view_runtime
で、処理時間のマッチに、+
を使用するよう修正しています。
- assert_match(/Completed 200 OK in [\d]ms/, logs[1]) + assert_match(/Completed 200 OK in \d+ms/, logs[1])
処理時間が二桁以上になった場合の事を考慮して修正しています。
Require only necessary concurrent-ruby classes.
concurrent-ruby
を使用する際、必要なファイルのみrequire
するよう修正しています。
例。
# activejob/lib/active_job/async_job.rb -require 'concurrent' +require 'concurrent/map' +require 'concurrent/scheduled_task' +require 'concurrent/executor/thread_pool_executor' +require 'concurrent/utility/processor_counter'
concurrent
自体をrequire
すると、不要なファイルが大量にrequire
されてしまい、起動時間が遅くなってしまう為、必要なファイルのみrequire
するようにしたとの事です。詳細は Do we embrace Kernel#autoload ? · Issue #395 · ruby-concurrency/concurrent-ruby参照。
Add bundle check to release task
tasks/release.rb
の修正です。
rails release用のtaskにbundle check
を追加しています。
rails guideのContributing to Ruby on Rails
の修正です。
docrails(http://github.com/rails/docrails)へのリンクを削除しています。
docrailsは、docrails自体にPRが投げられるのをを避ける為に、privateリポジトリに変更になった為、リンクを削除したとの事です。
activerecord/test/cases/migration_test.rb
の修正です。
concurrent/atomic/count_down_latch
のrequireを追加しています。
test_binary_data_is_not_logged
is for prepared statements logging
activerecord/test/cases/log_subscriber_test.rb
の修正です。
test_binary_data_is_not_logged
を実行するかどうかのチェックに、adapterがMysql2Adapter
じゃないかどうかを使用していたのを、ActiveRecord::Base.connection.prepared_statements
を使用するよう修正しています。
No need MysqlDouble
and MysqlDouble.reset_column_information
activerecord/test/cases/adapters/mysql/schema_test.rb
、
activerecord/test/cases/adapters/mysql2/schema_test.rb
の修正です。
不要なMysqlDouble
クラス、及びMysqlDouble.reset_column_information
メソッドの呼び出しを削除しています。
Fix static_cache_control
deprecation warning
railties/lib/rails/application/configuration.rb
の修正です。
static_cache_control
を使用した場合に出力するdeprecateメッセージを修正しています。
# before static_cache_control is deprecated and will be removed in Rails 5.1. Please use `config.public_file_server.headers = {'Cache-Control' => #{value}} instead # after `static_cache_control` is deprecated and will be removed in Rails 5.1. Please use `config.public_file_server.headers = { 'Cache-Control' => '#{value}' }` instead.
バッククォートが足りなかったのを修正、static_cache_control
をバッククォートで囲むよう修正、等表記の修正を行っています。