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
:tokenizer
in 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するよう修正しています。