2016/03/31分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actioncable/CHANGELOG.md
actionmailer/test/i18n_with_controller_test.rb
、
actionmailer/test/url_test.rb
の修正です。
Deprecate :controller and :action path parametersで、routes.rbのpath parametersに:controller
、:action
を使用するのがdeprecateになたのですが、Action Mailerのテストで使用している箇所があり、不要なwarningが出ないようActiveSupport::Deprecation.silence
で処理を囲むよう修正しています。
Gemfile.lock
の修正です。
Run latest precompiled JRuby on CI only against ActionPack · rails/rails@3027970で使用するrake gemのバージョンを11.1
修正したのですが、その際にGemfile.lockの更新が漏れてしまっていた(ファイルの一部分が更新されてかった)為、最新の内容にGemfile.lock
を修正しています。
Replace meth with method to remove ambiguity
activesupport/lib/active_support/callbacks.rb
のdocの修正です。
set_callback
メソッドのdoc内のexampleでmethod
をmeth
と略していたのを、略さずmethod
と記載するよう修正しています。
Move @quoted_{column|table}_names
cache up to the abstract adapter
Active Recordの修正です。
全adapter共通で使用する@quoted_column_names
、@quoted_table_names
について、AbstractAdapter
クラスで変数を保持するよう修正しています。
Cable: reconcile default worker pool size with low db conn pool size
actioncable/lib/action_cable/server/configuration.rb
の修正です。
defaultのworker pool sizeをDBのconnection poolの値より小さい値になるよう修正しています。具体的には、デフォルトの値が100になっていたのを、4にしています。
Action Cableの修正です。
server側とclient(WebSocket)側とでメッセージのやりとりをする際、ActiveSupport::JSON
を使用してメッセージのencode / decode処理を行っていたのを、ActiveSupport::JSON
ではなく任意のオブジェクトを指定出来るよう修正しています。指定するオブジェクトは#encode
、#decode
メソッドが実装されている必要があります。
code処理を行うオブジェクトはstream_for
メソッドの引数に指定出来ます。
stream_for @room, coder: ActiveSupport::JSON do |message| # `message` is a Ruby hash here instead of a JSON string