2017/03/30分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
.travis.yml
の修正です。
CIで使用するRubyのバージョンを2.2.6
から2.2.7
に更新しています。
rails-ujs
のリポジトリへのリンクをhttps://github.com/rails/rails-ujs
からhttps://github.com/rails/rails/blob/master/actionview/app/assets/javascripts
にまとめて修正しています。
rails/rails-ujs
はprivateリポジトリになり、今後はrails配下のファイルが管理されていく為。多分。2回位ブレてる気がする。
Fix the example code for Rails.groups
[ci skip]
railties/lib/rails.rb
のdocの修正です。
Rails.groups
メソッドのexampleにある実行例で、Rails.env
がSymbolで表示されていたのですが、実際はStringが返るようになっていたので、実行例もStringで表示するよう修正しています。
Configure the days until close a stale issue
.github/stale.yml
の修正です。
probot-stateの設定を変更しています。
# Number of days of inactivity before an issue becomes stale -days: 90 +daysUntilStale: 90 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7
staleラベルをつけるまでが90日で、そのstaleラベルをつけたissueをcloseするまでが7日、というふうに設定を変更したようです。
Add test to make sure subclasses also get helpers
actionpack/test/controller/api/with_helpers_test.rb
の修正です。
ActionController::API
を継承したクラスのサブクラスでもhelperメソッドが使える事を確認するテストを追加しています。
Merge pull request #28592 from htanata/ar_relation_inspect_should_not_load_all_records
activerecord/lib/active_record/relation.rb
の修正です。
ActiveRecord::Relation#inspect
メソッドが毎回必ずrecordsのload処理を行っていたのを、既にrecordsをload済みの場合、load済みの値を使用するよう修正しています。
rails guideのAction Controller Overview
の修正です。
After Filters and Around Filters
の項のグラマーの修正を行っています。
Add aliases for reverse_merge to with_defaults
actionpack/lib/action_controller/metal/strong_parameters.rb
、
activesupport/lib/active_support/core_ext/hash/reverse_merge.rb
、
activesupport/lib/active_support/hash_with_indifferent_access.rb
の修正です。
ActionController::Parameters
、HashWithIndifferentAccess
、Hash
のreverse_merge
、reverse_merge!
メソッドのaliasとしてwith_defaults
、with_defaults!
メソッドを追加しています。
Merge pull request #28417 from schneems/schneems/symlink-failures
railties/lib/rails/paths.rb
の修正です。
Path#existent
メソッドで指定されたファイルが存在しない、かつ、そのファイルがシンボリックリンクだった場合、Exceptionをraiseするよう修正しています。
Merge pull request #28609 from rossta/patch-2
actionview/test/template/sanitize_helper_test.rb
のdocの修正です。
テストについてのdocで、網羅的なテストはtest/controller/html/sanitizer_test.rb
でテストが行われている旨説明が記載されていたのですが、今はrails-html-sanitizer
gemを使うようになっており、テストはgemの方で行うようになっている為、その旨コメントを修正しています。
Merge pull request #28606 from maclover7/jm-fix-25820
actionpack/lib/action_controller/base.rb
、
actionpack/lib/action_controller/metal.rb
の修正です。
ActionController::Metal
を継承したcontrollerのresponseのheaderにActionDispatch::Response.default_headers
が含まれていたのを、Rails 4系まで同様含まれないよう修正しています。