なるようになるブログ

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

rails commit log流し読み(2022/09/06)

2022/09/06分のコミットです。

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

actionview/CHANGELOG.md


Remove obsolete word_wrap test

actionview/test/template/text_helper_test.rbの修正です。

word_wrapの引数の値が変更されていない事を確認するテストを削除しています。現在引数の指定はキーワード引数になっており、引数の変更は出来なくなっている為。


Chomp the break_sequence in word_wrap

actionview/lib/action_view/helpers/text_helper.rbの修正です。

word_wrapbreak_sequenceオプションにprintable charactersが含まれている場合に、break_sequenceの削除がされないバグがあったのを修正しています。

# <%= word_wrap("11 22\n33 44", line_width: 2, break_sequence: "\n# ") %>

Before:

# 11
# 22
#
# 33
# 44
#

After:

# 11
# 22
# 33
# 44

Expand word_wrap test coverage

actionview/test/template/text_helper_test.rbの修正です。

word_wrapメソッドのテストを追加しています。


Clarify description of --force-plural option

railties/lib/rails/generators/model_helpers.rbの修正です。

--force-pluralオプションのdescriptionをより適切な内容に修正しています。


Clarify description of --api option

railties/lib/rails/generators/rails/scaffold/scaffold_generator.rbの修正です。

--api optionのdescriptionを追加しています。