なるようになるブログ

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

rails commit log流し読み(2019/12/17)

2019/12/17分のコミットです。

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


Load framework test files in deterministic order

コンポーネントでテストファイルをロードする際に、Dir.globを使用していたのをRake::FileListを使用するよう修正しています。

Dir.globだと環境によってファイルリストの結果が異なる、かつ、それがCIと異なっているとローカルで失敗したテストを再現しようとした場合に問題になる(同じseedでも同じテストが実行されない可能性がある)為。


Add ActionText installer rake task back after changes in #35085. Forwards the installer to run new ActionText generator

Merge pull request #35085 from vinistock/check_testing_framework_in_action_text_installerで削除された、actiontext/lib/tasks/actiontext.rakeを再度追加しています。

Rails 6.0までと同様にaction_text:installでインストール処理が実行出来るようにする為。


Use prism.js for code highlighting in guides [ci skip]

rails guideのコードハイライトに、SyntaxHighlighterを使用していたのを、PrismJS/prismを使用するよう修正しています。SyntaxHighlighterはもうメンテされていない為。


quick regression fix for zeitwerk:check

railties/lib/rails/tasks/zeitwerk.rakeの修正です。

zeitwerk:check taskがRails 6.0.2で動作しない(実行するとNoMethodErrorが発生する)バグがあったのを修正しています。


Merge pull request #37850

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

config_forに指定するymlがHash以外の場合(e.g. Array)にエラーになってしまうバグがあったのを修正しています。


Merge pull request #37995 from abhaynikam/37918-fix-typo-in-class_names-helper-documentation

actionview/lib/action_view/helpers/tag_helper.rbのdoc、及び、 actionview/test/template/tag_helper_test.rbの修正です。

doc内のnil / false / 空文字を指定した場合のexampleの結果が実際の内容と異なっていたのを修正、及び、左記場合についてのテストを追加しています。


Refactor query methods not to depend on internal DEFAULT_VALUES constant

activerecord/lib/active_record/relation/query_methods.rbの修正です。

query methodsを内部定数のDEFAULT_VALUESを使用しないようリファクタリングしています。


Do not allow mutation for empty clauses

activerecord/lib/active_record/relation/from_clause.rbactiverecord/lib/active_record/relation/where_clause.rbの修正です。

empty clausesをfreezeして値を変更出来ないよう修正しています。


Removes the un-used function call for syntaxhighlighterConfig [ci skip]

guides/assets/javascripts/guides.jsの修正です。

Use prism.js for code highlighting in guides [ci skip]により不要になったfunction callを削除しています。