2017/04/05分のコミットです。
CHANGELOGへの追加はありませんでした。
Downplay links in Guides headers
guides/assets/stylesheets/main.css
の修正です。
Rails guideのheaderのリンクの色を灰色に変更しています。
通常のページ内のリンクを目立たせる為に、headerのリンクの色は灰色したとの事です。
Don’t highlight code in anchorlink [ci skip]
guides/assets/stylesheets/main.css
の修正です。
header titleにコードが含まれていても、そのコードはハイライトされないよう修正しています。
Before:
After:
Avoid “can’t modify frozen IOError” failures https://github.com/rails/rails/commit/c866cf9df8b7d767f8be8272b120b44f453212cb
actioncable/test/client_test.rb
の修正です。
テスト用スレッドの後処理で、can't modify frozen IOError
が発生した場合の対応を追加しています。
- t = Thread.new { server.run.join } - yield port + thread = server.run - ensure - server.stop(true) if server - t.join if t + begin + yield port + + ensure + server.stop + + begin + thread.join + rescue RuntimeError => ex + raise unless ex.message =~ /can't modify frozen IOError/ + + # Work around https://bugs.ruby-lang.org/issues/13239 + server.binder.close + end + end
ensure / rescue句でstreamのclose処理を行う際に、RuntimeError: can't modify frozen IOError
が発生してしまうバグがRuby本体で発生しており、そのワークアラウンドとして対応したとの事です。
参考:Bug #13239: Bug with “special exceptions” when they are thrown in context of a rescue clause.
Use appropriate type to header
option
railties/lib/rails/commands/dbconsole/dbconsole_command.rb
の修正です。
dbconsole
のheader
オプションのtypeにstring
を指定していたのを、boolean
に修正しています。header
オプションは引数を指定出来ないオプションである為。
Ignore AR tests of index comment when using Oracle
activerecord/test/cases/comment_test.rb
の修正です。
Oracle adapterではINDEXにCOMMENTを設定するテストを行わないよう修正しています。OracleではINDEXへのCOMMENTの追加は出来ない為。