なるようになるブログ

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

rails commit log流し読み(2018/10/29)

2018/10/29分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activesupport/CHANGELOG.md


Improve the logic that detects non-autoloaded constants

activesupport/lib/active_support/dependencies.rbの修正です。

autoload対象のファイルから、autoloadの対象になってないファイルをrequireした際に、そのファイル内に定義されている定数がautoloaded constantsと見なされてしまうバグがあったのを修正しています。


Fix grammar in changed? docs [ci skip]

activemodel/lib/active_model/dirty.rbのdocの修正です。

Dirty#changed?メソッドのdocのグラマーの修正を行っています。


Registers e302725 in the CHANGELOG [ci skip]

activesupport/CHANGELOG.mdの修正です。

先のautoloadの修正についてCHANGELOGにエントリーを追加しています。


Merge pull request #34334 from albertoalmagro/privatize-constants-activesupport-timezone

activesupport/lib/active_support/values/time_zone.rbの修正です。

内部向け定数であるUTC_OFFSET_WITH_COLONUTC_OFFSET_WITHOUT_COLON:nodoc:を指定、及び、private_constantを使用して可視性をprivateにしています。


Merge pull request #34335 from robin850/update-bug-report-templates

bug report templatesの修正です。

bundler/inlineのrequireに失敗した場合のケア、及び、mintest 4向けのサポートを削除しています。

bundler/inlineは2015年にリリースされたbundler 1.10からがサポートされている、Rails 5.0がサポートしているRuby 2.2にはminitest 5.4.3がバンドルされている為、どちらのコードももう不要だろうという事で削除されています。


Document exception from restrict_with_exception [ci skip]

rails guideのActive Record Associations、及び、activerecord/lib/active_record/associations.rbのdocの修正です。

associationsのdependentオプションに:restrict_with_exceptionを指定した場合の説明に、associated recordがある場合exceptionをraiseする旨だけ記載していたのを、exceptionのクラス名(ActiveRecord::DeleteRestrictionError)を記載するよう修正しています。