2016/10/11分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activejob/CHANGELOG.md
- Removed deprecated #original_exception in ActiveJob::DeserializationError
- Removed deprecated support to passing the adapter class to
.queue_adapter.
activemodel/CHANGELOG.md
- Removed deprecated methods in
ActiveModel::Errors. - Removed deprecated
:tokenizerin the length validator.
actioncable/CHANGELOG.md
Removed deprecated #original_exception in ActiveJob::DeserializationError
activejob/lib/active_job/arguments.rbの修正です。
deprecatedになっていたActiveJob::DeserializationError#initializeのoriginal exception引数を削除、及び同じくdeprecatedになっていたActiveJob::DeserializationError#original_exceptionメソッドを削除しています。
Removed deprecated support to passing the adapter class to .queue_adapter
activejob/lib/active_job/queue_adapter.rbの修正です。
deprecatedになっていたqueue_adapterにadapter classを指定した場合の処理を削除しています。
activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb、
activerecord/lib/active_record/schema_dumper.rbの修正です。
tableのcommentにnilを指定({ comment: nil })した場合に、schema.rbに生成されるcreate_tableの行が不正なデータになってしまっていたのを修正しています。
# Before create_table "accounts", force: :cascade, do |t| # After create_table "accounts", force: :cascade do |t|
Removed deprecated methods in ActiveModel::Errors
activemodel/lib/active_model/errors.rbの修正です。
ActiveModel::Errorsからdeprecatedになっていた#get, #set, #[]=, #add_on_empty、#add_on_blankメソッドを削除しています。
Removed deprecated :tokenizer in the length validator
activemodel/lib/active_model/validations/length.rbの修正です。
deprecatedになっていたlength validatorの:tokenizerオプションを削除しています。
Merge pull request #26577 from dharamgollapudi/add_license
リポジトリのTOPにMIT-LICENSEを追加しています。
GitHubのリポジトリ概要の部分でライセンスが表示されるようにする為。参考:License now displayed on repository overview
Extract format_colspec to format column spec
activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb、
activerecord/lib/active_record/schema_dumper.rbの修正です。
column specのformat処理をformat_colspecメソッドに切り出しています。
Merge pull request #26531 from y-yagi/remove_unused_benchmark
activesupport/lib/active_support/cache.rbの修正です。
使用していないbenchmarkのrequireを削除しています。
Merge pull request #26208 from nanaya/pg-insensitive-text
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rbの修正です。
PostgreSQLのtextカラムを使用した場合に、case insensitive comparisonsが動作していなかったのを、動作するよう修正しています。
Merge pull request #26568 from skateman/cable-sameorigin-as-host
actioncable/lib/action_cable/connection/base.rb、
actioncable/lib/action_cable/server/configuration.rbの修正です。
Action Cableで、same originのrequestを許可するかどうかを設定する為のconfig(Rails.application.config.action_cable.allow_same_origin_as_host)を追加しています。
Permit same-origin connections by default
actioncable/lib/action_cable/connection/base.rb、
actioncable/lib/action_cable/server/configuration.rbの修正です。
先ほど追加されたsame originのrequestを許可するかどうかを設定する為のconfig(Rails.application.config.action_cable.allow_same_origin_as_host)のデフォルトをtrueに変更しています。
この為、デフォルトでsame originのrequestは許可されるようになっています。許可したくない場合は、Rails.application.config.action_cable.allow_same_origin_as_hostにfalseを明示的に設定する必要があります。
Set target ruby version for rubocop to 2.2 instead 2.3.
.rubocop.ymlの修正です。
TargetRubyVersionを2.3から2.2に修正しています。いまのrailsのmasterでサポートしているのは2.2.2以上の為。
ActionController::Parameters#deep_dup (#26567)
actionpack/lib/action_controller/metal/strong_parameters.rbの修正です。
ActionController::Parameters#deep_dupメソッドを追加し、paramsをdeep_dupした際に、permitted変数の値もdupするよう修正しています。