なるようになるブログ

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

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

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

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

actionmailer/CHANGELOG.md


Fix tests related to new JavaScript path for generators

railtiesのテストの修正です。

generatorが生成するJavaScriptファイルのpathが誤っていた(webpackerの対応でpathがapp/javascriptに変わったが、app/assets/javascriptsになっている箇所があった)のを修正しています。


Skip node_modules dir in the rubocop check

.rubocop.ymlの修正です。

node_modulesディレクトリをrubocopのチェック対象から除外しています。


Parameterized mailers can configure delivery job

actionmailer/lib/action_mailer/base.rbactionmailer/lib/action_mailer/parameterized.rbの修正です。

Action Mailerでmailの送信に使用するdelivery jobをmailer classで指定出来るよう修正しています。

class MyMailer < ApplicationMailer
  self.parameterized_delivery_job = MyCustomDeliveryJob
end

Remove some autolabeling globs

.github/autolabeler.ymlの修正です。

probot/autolabelerの設定からroutingやasset pipeline等幾つかの設定を削除しています。labelが付けられすぎるのを避ける為。


update nokogiri

Gemfile.lockの修正です。

nokogiriのバージョンを1.8.5に更新しています。


Remove bundler warnings from bin/setup output

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

bin/setupのテストで、bin/setupが出力する内容からbundlerの出すwarningを除去するよう修正しています。

bunlder 1.16.6からbundle checkdependencyに関するwarningを出力するようになった為。


Add documentation to run tests with specific seed [ci skip]

rails guideのContributing to Ruby on Railsの修正です。

Running tests with a specific seedの項を追加し、seedを指定してテストを単体で実行する方法の説明を追加しています。


Remove unnecessary use of included in ActiveJob::Core

activejob/lib/active_job/core.rbの修正です。

ActiveJob::Core moduleでattributesを指定するのにincludedを使用していたいのを、使用しないよう修正しています。

included内で定義しているattributesがAPI docに表示されず、それらのattributesがAPI docに表示されるようにする為に削除しています。


Merge pull request #34084 from trustvox/master

railties/lib/rails/generators/rails/app/templates/bin/setup.ttrailties/lib/rails/generators/rails/app/templates/bin/update.ttの修正です。

bin/setupbin/upsetFileUtilsincludeしていたのをやめて、FileUtilsのクラスメソッドを直接しようするよう修正しています。

top levelでmixinするのは慣習的に良くないよね、という理由により修正されています。


Array with single item correctly uses cache_key

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

ActiveSupport::Cache::Store#expanded_keyでkeyをexpandする際に、keyが要素が一つしかないArrayだった場合に、正しい値が生成されないバグがあったのを修正しています。


Merge pull request #34077 from cllns/clarify-activesupport-instruction

rails guideのActive Storage Overviewの修正です。

Setupの項に、テスト用のserviceを使用する場合の設定方法についての説明を追加しています。