2016/11/19分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Reset a new session directly after its creation in ActionDispatch::IntegrationTest#open_session
- Fixes Incorrect output from rails routes when using singular resources.
Fix ActionDispatch::IntegrationTest#open_session
actionpack/lib/action_dispatch/testing/integration.rb
の修正です。
ActionDispatch::IntegrationTest#open_session
でsessionをresetするよう修正しています。sessionが異なるrequest間で共有されてしまうのを防ぐ為。
Fix incorrect output from rails routes when using singular resources issue #26606
actionpack/lib/action_dispatch/routing/mapper.rb
の修正です。
routesでresource
を使用していた場合に、routes
タスクの実行結果にshow
actionに対するhelper methodが表示されないバグがあったのを修正しています。
# routes.rb resource :profile, only: [:show]
# before GET /profile(.:format) profiles#show
# after profile GET /profile(.:format) profiles#show
Merge pull request #27092 from prathamesh-sonpatki/https-source-bundler
railties/lib/rails/generators/rails/app/templates/Gemfile
の修正です。
rails new
で生成されるGemfileの先頭にgithub
ショートハンドを使っている場合にhttps
のプロトコルを使う為の対応を追加しています。
git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") "https://github.com/#{repo_name}.git" end
bundler 1.13.0からGemfileにgithub
ショートハンドを使用している場合にwarning(The git source
git://github.com/rails/sass-rails.gituses the
gitprotocol, which transmits data without encryption. Disable this warning with
bundle config git.allow_insecure true, or switch to the
httpsprotocol to keep your data secure.
)が出るようになったので、その対策としてgit
プロコトルではなくhttps
プロコトルを使うよう上書きするようにしています。
move CHANGELOG entry to the appropriate file [ci skip]
ActionDispatch::IntegrationTest#open_session
でsessionをresetするよう修正した対応のエントリーがrailtiesのCHANGELOGに記載されていたのを、actionpackのCHANGELOGに記載するよう修正しています。
Merge pull request #27057 from kamipo/fix_race_condition
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
の修正です。
ActiveRecord::ConnectionAdapters::ConnectionPool#with_new_connections_blocked
メソッドにrace conditionがあり、複数スレッドで実行した場合にnew connectionsが使用出来るかどうかのチェックが正しく行われないバグがあったのを修正しています。
Add missing test for singular resource output in rake routes
railties/test/application/rake_test.rb
の修正です。
rails routes
でsingular resourceを出力した場合のテストを追加しています。