2017/11/01分のコミットです。
CHANGELOGへの追加はありませんでした。
RELEASING_RAILS.md
の修正です。
Send Rails release announcements
の項のグラマーの修正(カンマの追加)を行っています。
Address incorrect number of queries executed at Oracle enhanced adapter
activerecord/test/cases/test_case.rb
の修正です。
DBにOracleを使用した場合に、SQLCounter
で無視するqueryにall_sequences
からのselectを追加しています。
- oracle_ignored = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from all_triggers/im, /^\s*select .* from all_constraints/im, /^\s*select .* from all_tab_cols/im] + oracle_ignored = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from all_triggers/im, /^\s*select .* from all_constraints/im, /^\s*select .* from all_tab_cols/im, /^\s*select .* from all_sequences/im]
Oracle enhanced adapter側で、独自のschema cachingを使用していたのをRailsが生成したscehema cacheを使用するよう最近変更したのですが、その影響で不要なSQLがカウントされるようになり、結果テストが失敗するようになってしまった為、上記対応を行ったとの事です。
Enable Style/RedundantReturn
rubocop rule, and fixed a couple more
.rubocop.yml
にStyle/RedundantReturn
copを追加、及び書くファイルにルールを適用しています。
Fix failing bundle install
on CI
Gemfile.lock
の修正です。
バグレポートテンプレートについてのテストがCI上でエラーになってしまっていて、その対策としてbundle install
を実行しています。
が、これだとまだ駄目で、対応が続きます。
.travis.yml
の修正です。
CIで使用するbundlerを1.15.4に固定しています。
バグレポートテンプレートではinline gemfileを使用しているのですが、bundler 1.1.6.0でinline gemfileを使用した際にエラーになる事がある為。
参考:Problem with inline gemfiles in 1.16.0.pre2
.travis.yml
の修正です。
bundler 1.15.4をインストールする前に、既にインストール済みのbundlerを削除するようにしています。
デフォルトでbundler 1.16.0がインストールされてしまい、そのままだとbundler 1.15.4をインストールしても1.16.0の方が使用されてしまうため。
Workaround for ActionMailer failures by not installing mail 2.7
Gemfile
の修正です。
mail
gemのバージョンを2.7未満に固定しています。
mail
gem 2.7.0でAction Mailerのテストがコケてしまうため。
Gemfile
、及び、Action Mailerのテストの修正です。
Gemfile
のmail
gemのバージョンロックを削除、及び、Action Maiterのテストをmail
2.7.0で通るよう修正しています。
updates autoloading guide for Ruby 2.5 [ci skip]
rails guideのAutoloading and Reloading Constants
の修正です。
定数探索についての説明に、Ruby 2.5の場合の挙動について説明を追加しています。トップレベルの定数探索のルールが変更になった件等。