2016/10/10分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Remove deprecated methods
skip_action_callback
,skip_filter
,before_filter
,prepend_before_filter
,skip_before_filter
,append_before_filter
,around_filter
prepend_around_filter
,skip_around_filter
,append_around_filter
,after_filter
,prepend_after_filter
,skip_after_filter
andappend_after_filter
. - Remove deprecated support to passing original exception to
ActionController::BadRequest
and theActionController::BadRequest#original_exception
method. - Remove deprecated support to passing status as option
head
. - Remove deprecated support to
:back
inredirect_to
. - Remove deprecated support to :nothing in render.
- Remove deprecated support to :text in render.
- Remove deprecated support to comparing a
ActionController::Parameters
with aHash
- Remove deprecated methods in
ActionController::Parameters
. - Remove deprecated
xml_http_request
andxhr
methods inActionController::TestCase
. - Remove deprecated support to non-keyword arguments in
ActionController::TestCase#process
,#get
,#post
,#patch
,#put
,#delete
, and#head
. - Remove deprecated access to mime types through constants.
- Remove deprecated
original_exception
andmessage
arguments inActionDispatch::ParamsParser::ParseError#initialize
. - Remove deprecated
#original_exception
inActionDispatch::ParamsParser::ParseError
. - Remove deprecated
ActionDispatch::ParamsParser
. - Deprecate
ActionDispatch::ParamsParser::ParseError
in favor ofActionDispatch::Http::Parameters::ParseError
. - Remove deprecated
const_error
argument inActionDispatch::Session::SessionRestoreError#initialize
. - Remove deprecated
#original_exception
inActionDispatch::Session::SessionRestoreError
. - Change HSTS subdomain to true.
- Remove deprecated
host
andport
ssl options. - Remove deprecated support to passing strings or symbols to the middleware stack.
- Remove deprecated
cache_control
argument fromActionDispatch::Static#initialize
- Remove deprecated support passing path as
nil
inActionDispatch::Routing::Mapper#match
. - Remove deprecated support for passing
:path
and route path as stings inActionDispatch::Routing::Mapper#match
. - Remove deprecated
ActionDispatch::IntegrationTest#xml_http_request
. - Remove deprecated
ActionDispatch::IntegrationTest#*_via_redirect
. - Remove deprecated support to non-keyword arguments in
ActionDispatch::IntegrationTest#process
,#get
,#post
,#patch
,#put
,#delete
, and#head
.
Merge pull request #26738 from bogdanvlviv/travis
.travis.yml
の修正です。
allow_failures
のリストからAction Cableのintegrationテストを削除しています。
Merge pull request #26735 from kamipo/prevent_to_create_blank_comment
Active Recordの修正です。
table及びcolumnのコメントを作成する際、値が空の場合のコメントを作成しないよう修正しています。
Dump index options to pretty format
Active Recordの修正です。
index
のoptionsをschemaファイルにdumpする際、HashのkeyがStringになっていたのを、Symbolになるよう修正しています。
# Before t.index ["firm_id", "type", "rating"], name: "company_index", order: {"rating"=>:desc}, using: :btree # After t.index ["firm_id", "type", "rating"], name: "company_index", order: { rating: :desc }, using: :btree
Remove deprecated methods related to controller filters
actionpack/lib/abstract_controller/callbacks.rb
の修正です。
deprecatedになっていたcontrollerのfiltersメソッド(skip_filter
, before_filter
等)、及びskip_action_callback
メソッドを削除しています。
以降、deprecatedになっていたメソッド削除のコミットが続きます。
Remove deprecation at ActionController::BadRequest
actionpack/lib/action_controller/metal/exceptions.rb
の修正です。
deprecatedになっていたActionController::BadRequest#initialize
のoriginal exception引数を削除しています。
Remove deprecated support for status option in head
actionpack/lib/action_controller/metal/head.rb
の修正です。
deprecatedになっていたhead
メソッドのstatus
オプションを削除しています。
Remove deprecated support to :back
in redirect_to
actionpack/lib/action_controller/metal/redirecting.rb
の修正です。
deprecatedになっていたredirect_to
メソッドの:back
オプションを削除しています。
Remove deprecated support to :nothing in render
actionpack/lib/action_controller/metal/rendering.rb
の修正です。
deprecatedになっていたrender
メソッドの:nothing
オプションを削除しています。
Remove deprecated support to :text in render
Action Pack、railties、Action Mailerの修正です。
deprecatedになっていたrender
メソッドの:text
オプションを削除しています。
Remove deprecated comparing support with ActionController::Parameters
actionpack/lib/action_controller/metal/strong_parameters.rb
の修正です。
deprecatedになっていたActionController::Parameters
とHash
の比較処理を削除しています。
Remove deprecated methods in ActionController::Parameters
actionpack/lib/action_controller/metal/strong_parameters.rb
の修正です。
ActionController::Parameters
クラスからdeprecatedになっていた各種メソッド(ActionController::Parameters
がHash
を継承した事により使えたメソッド)を削除しています。
Remove deprecated xml_http_request
and xhr
methods
actionpack/lib/action_controller/test_case.rb
の修正です。
deprecatedになっていたActionController::TestCase
のxml_http_request
メソッド及びxhr
メソッドを削除しています。
Remove deprecated support to non-keyword arguments #process
actionpack/lib/action_controller/test_case.rb
の修正です。
deprecatedになっていたActionController::TestCase#process
、#get
、#post
、#patch
、#put
、#delete
、#head
にkeyword arguments以外のパラメータを指定した場合の処理を削除しています。
Remove deprecated access to mime types through constants
actionpack/lib/action_dispatch/http/mime_type.rb
の修正です。
deprecatedになっていたmime typesの定数参照を削除しています。
Remove deprecated code in ActionDispatch::ParamsParser::ParseError
actionpack/lib/action_dispatch/middleware/params_parser.rb
の修正です。
deprecatedになっていたActionDispatch::ParamsParser::ParseError#initialize
のoriginal_exception
、message
引数を削除、及び、ActionDispatch::ParamsParser::ParseError#original_exception
メソッドを削除しています。
Remove deprecated ActionDispatch::ParamsParser
actionpack/lib/action_dispatch/middleware/params_parser.rb
の修正です。
DeprecatedになっていたActionController::ParamsParser
クラスを削除しています。
Deprecated ActionDispatch::ParamsParser::ParamsParser
Action Packの修正です。
ActionDispatch::ParamsParser::ParseError
クラスがdeprecateになりました。今後はActionDispatch::Http::Parameters::ParseError
を使用する必要があります。
Remove deprecated code in ActionDispatch::Session::SessionRestoreError
actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
の修正です。
deprecatedになっていたActionDispatch::Session::SessionRestoreError#original_exception
メソッドを削除、及び`ActionDispatch::Session::SessionRestoreError#initialize
のconst_error
引数を削除しています。
Remove deprecated code in ssl middleware
actionpack/lib/action_dispatch/middleware/ssl.rb
の修正です。
deprecatedになっていたActionDispatch::SSL#initialize
のhost
、port
オプションを削除、及びHSTS subdomainのデフォルトをtrue
に変更しています。
Remove deprecated support to passing strings to the middleware stack
actionpack/lib/action_controller/metal.rb
、
actionpack/lib/action_dispatch/middleware/stack.rb
の修正です。
deprecatedになっていたmiddleware stackにStringを指定した場合のサポートを削除しています。
Remove deprecated cache_control
argument from ActionDispatch::Static#initialize
actionpack/lib/action_dispatch/middleware/static.rb
の修正です。
deprecatedになっていたActionDispatch::Static#initialize
のcache_control
引数を削除しています。
Remove deprecated support passing path as nil
in ActionDispatch::Routing::Mapper#match
actionpack/lib/action_dispatch/routing/mapper.rb
の修正です。
deprecatedになっていたActionDispatch::Routing::Mapper#match
のpath引数にnil
を渡した場合のサポートを削除しています。
actionpack/lib/action_dispatch/routing/mapper.rb
の修正です。
deprecatedになっていたActionDispatch::Routing::Mapper#match
の:path
オプション、及び、path引数にstringを合わせて指定した場合の処理を削除しています。
Remove deprecated ActionDispatch::IntegrationTest#xml_http_request
actionpack/lib/action_dispatch/testing/integration.rb
の修正です。
deprecatedになっていたActionDispatch::IntegrationTest#xml_http_request
メソッドを削除しています。
Remove deprecated ActionDispatch::IntegrationTest#*_via_redirect
.
actionpack/lib/action_dispatch/testing/integration.rb
の修正です。
deprecatedになっていたActionDispatch::IntegrationTest#*_via_redirect
メソッド(#request_via_redirect
、#get_via_redirect
等)を削除しています。
Remove deprecated support to non-keyword arguments in ActionDispatch::IntegrationTest
,
actionpack/lib/action_dispatch/testing/integration.rb
の修正です。
deprecatedになっていたActionDispatch::IntegrationTest#process
、#get
、#post
、#patch
、#put
、#delete
、#head
にkeyword arguments以外のパラメータを指定した場合の処理を削除しています。
Merge pull request #26578 from jeremy/undeprecate-plural-positional-arg
actionview/lib/action_view/helpers/text_helper.rb
の修正です。
Rails 5.0.0でdeprecatedになっていたpluralize
メソッドのplural引数を引き続きkeyword argumentではなく、positional argumentとして使用出来るよう修正しています。
- def pluralize(count, singular, deprecated_plural = nil, plural: nil, locale: I18n.locale) - if deprecated_plural - ActiveSupport::Deprecation.warn("Passing plural as a positional argument " \ - "is deprecated and will be removed in Rails 5.1. Use e.g. " \ - "pluralize(1, 'person', plural: 'people') instead.") - plural ||= deprecated_plural - end - + def pluralize(count, singular, plural_arg = nil, plural: plural_arg, locale: I18n.locale)
元々の引数の順番(count
、singular
、plural
)は自然な形であり、キーワード引数を無理に使う必要は無いのでは、という事でdeprecatedじゃなくなったとの事です。
activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb
、
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
の修正です。
ActiveRecord::ConnectionAdapters::ColumnDumper#migration_keys
メソッドが返すmigration optionsのリストに:name
が入っていたのですが、:name
はmigration optionsに無いので、削除しています。
Add missing @, fix indents. [ci skip]
actionpack/lib/action_controller/metal/redirecting.rb
のdocの修正です。
ActionController::Redirecting
メソッドのdoc内のタイポ、インデントの調整等を行っています。