なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2016/03/03)

2016/03/03分のコミットです。

CHANGELOGへの追加はありませんでした。


remove trailing whitespace.

activerecord/lib/active_record/connection_adapters/mysql2_adapter.rbの修正です。

行の終端に不要な空白がある箇所があったので、削除しています。


[ci skip] Add bundle exec for ActiveRecord unit tests

activerecord/RUNNING_UNIT_TESTS.rdocの修正です。

Active Recordのテストを実行する際に、bundle exec付きでテストを実行するようドキュメントを修正しています。


Add test to make sure the sprockets cache is not shared per environment

railties/test/application/assets_test.rbの修正です。

sprocketsのcacheが異なるenvironment間で共有されない事を確認するテストを追加しています。

sprockets-railsでbug fix(Fix the Rails environment dependency resolve · rails/sprockets-rails@9a61447)を行っており、その確認の為に追加したようです。


Fix CHANGELOG spacing [ci skip]

CHANGELOGの修正です。

先頭のスペースの数がentryによってまちまちになってしまっていたのを、統一して整理しています。


Do not run app.executor callbacks in integration tests

actionpack/lib/action_dispatch/testing/integration.rbの修正です。

integration testではapp.executor callbackが実行されないよう修正しています。

capybaraにJSのdriverを指定した場合に正しく動作しない問題があった為、修正したとの事です。


Fix a small template misrender in ActiveRecord::Persistence

activerecord/lib/active_record/persistence.rbのdocの修正です。

doc内で等幅フォントを表示するのに+を使用していたのを<tt>を使用するよう修正しています。

-      # See +ActiveRecord::Inheritance#discriminate_class_for_record+ to see
+      # See <tt>ActiveRecord::Inheritance#discriminate_class_for_record</tt> to see

記号が入っているから、+だと駄目な為。


Changed behaviour of timestamps helper by create_table migration generator [ci skip]

rails guideのActive Record Migrationsの修正です。

model生成時に合わせて生成されるmigrationのexample内のt.timestampsメソッドから、null: falseオプションを削除しています。


Niceify the dynamic routes deprecation messages

actionpack/lib/action_dispatch/routing/route_set.rbの修正です。

routes.rbのpath parametersに:controller:actionを使用した場合のdeprecateメッセージの、グラマーの修正、1行80文字に収まるよう適切な位置に改行を追加を行っています。


ConnectionMonitor is once again notified of disconnect

actioncable/app/assets/javascripts/action_cable/connection.coffeeactioncable/app/assets/javascripts/action_cable/connection_monitor.coffeeの修正です。

client側でdisconnectメソッドを呼び出した際、ConnectionMonitorのdisconnectedメソッドを呼び出すよう修正しています。


Change 'a HTML' to 'an HTML' [ci skip]

actionmailer/lib/action_mailer/inline_preview_interceptor.rbのdocの修正です。

ActionMailer module内のdocでan HTMLa HTMLにタイポしている箇所があったのを修正しています。


Prevent nested ExecutionWrapper calls even when using run! directly

activesupport/lib/active_support/execution_wrapper.rbactivesupport/lib/active_support/reloader.rbの修正です。

ExecutionWrapper再帰的に呼ばれるのを防ぐよう修正しています。


Change 'a HTTP' to 'an HTTP' [ci skip]

各docの修正です。

an HTTPa HTTPにタイポしている箇所があったのをまとめて修正しています。