なるようになるブログ

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

rails commit log流し読み(2019/08/04)

2019/08/04分のコミットです。

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


Rename to Diffing and move module into credentials command

railtiesの修正です。

lib/rails/command/helpers/配下にあったcredentialsのdiff用のmoduleをlib/rails/commands/credentials配下に移動、及び、module名をPrettyCredentials -> CredentialsCommand::Diffingに修正しています。

helpersはコマンド間で共通で使用するファイルの置き場で、特定のコマンドに依存したファイルの置き場では無いため。


Commands already make fileutils available.

railties/lib/rails/commands/credentials/credentials_command/diffing.rbの修正です。

不要なfileutilsのrequireを削除しています。


Extract diffing to separate credentials:diff command

railties/lib/rails/commands/credentials/credentials_command.rbrailties/lib/rails/commands/credentials/credentials_command/diffing.rbの修正です。

credentialsのdiff表示機能をcredentials:diffという別のコマンドに切り出すよう修正しています。


Revise credentials diffing flow to use a separate diff command

railties/lib/rails/commands/credentials/USAGErailties/lib/rails/commands/credentials/credentials_command.rbの修正です。

credentials:editコマンドで行われていたcredentialsのdiffの為の.gitattributes + git configの設定を、credentials:diffコマンドに--enableオプションを指定した場合に実行するよう修正しています。


Use media_type instead of content_type internally

actionpack/lib/action_controller/metal/renderers.rbactionpack/lib/action_controller/metal/request_forgery_protection.rbの修正です。

deprecateになっていたcontent_typeを使っている箇所があったのをmedia_typeを使用するよう修正しています。


Revise flow to what was described in 03e44f9

railtiesの修正です。

credentials:diff--enableオプションを--enrollオプションにリネーム、及び、credentialsのhelpに変更になったdiff表示の為に必要な処理についての説明を追加しています。