以下の内容はhttps://y-yagi.hatenablog.com/entry/2024/06/02/062052より取得しました。


rails commit log流し読み(2024/06/01)

2024/06/01分のコミットです。

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


Remove .devcontainer from default rails app directory guide

rails guideのGetting Started with Railsの修正です。

rails newで生成されるファイル/フォルダについて説明している箇所から.devcontainerを削除しています。デフォルトでは生成されない為。


Upgrade devcontainer to use ruby 3.3.2

.devcontainer/Dockerfileの修正です。

devcontainerで使用するRubyのバージョンを3.2.2に更新しています。


Rename template folder to avoid . prefix

railtiesの修正です。

devcontainer用のファイルを格納するディレクトリ名が.devcontainerになっていたのを、devcontainerに変更しています。gemspecで.から始まるファイルは含まないようになっており、.devcontainerだとgemにファイルが含まれない、という問題が発生していた為。


Match actiontest sprockets files with the latest changes in Rails 7.2

actiontext/app/assets/javascripts/actiontext.jsの修正です。

Action Textのformのbuttonをclickした際の処理が正しく動作してなかったのを修正しています。


Require action_view/helpers instead of rails-html-sanitizer

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

sanitizerを設定する為のrequireをrails-html-sanitizerからaction_view/helpersに変更しています。circular require に関するwarningが出ないようにする為。


Changed dimmed to deemed, in what I assume was a typo

rails guideのTuning Performance for Deploymentの修正です。

Practical Implicationsセクション内のタイポの修正を行っています。


Lower case the link header

Action Viewの修正です。

Early Hintsを送る際のヘッダー名がLinkになっていたのを、linkに修正しています。RackがEarly Hintsをサポートした為、Rack::LintでEarly Hintsがチェックされるようになったのですが、Rackではヘッダー名が小文字ではじまる事を想定しており、大文字だとエラーになってしまう為。

参考:Add rack.early_hints to SPEC


Remove test for activerecord-session_store

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

activerecord-session_store gemのテストを削除しています。元々Rails内でactiverecord-session_storeの為の処理があった為に必要だったテストなのですが、Remove special handling for ActiveRecordStoreでその処理は削除済みで、テストだけを残しておく必要がもう無い為。


Merge pull request #51976 from robin850/nitpicks-tuning-perf-guide

rails guideのTuning Performance for Deploymentの修正です。

グラマー及びフォーマットの修正を行っています。


Merge pull request #51975 from artfuldodger/patch-1

actionpack/lib/action_controller/base.rbのdocの修正です。

ActionController::Baseのdocの言い回しを修正、及び、exampleコードでand returnを使わないよう修正しています。他のdocのexampleコードと書き方を合わせる為。


Link should be separated by comma.

actionpack/lib/action_dispatch/http/request.rbactionview/lib/action_view/helpers/asset_tag_helper.rbの修正です。

Linkタグでlinkを複数指定する場合の区切り文字を改行にしていたのをカンマに修正しています。仕様上カンマで区切るよう指定されている為。


Revert "Match actiontest sprockets files with the latest changes in Rails 7.2"

Action Textのformのbuttonをclickした際の処理が正しく動作してなかったのを修正した、Match actiontest sprockets files with the latest changes in Rails 7.2をRevertしています。Active StorageのJSパッケージの依存の指定に誤りが修正後のコードが正しく動かっなかった為。後ほど依存関係の更新と合わせて再度コミットされています。


Depend on activestorage 8.0.0-alpha

actiontext/package.jsonactiontext/app/assets/javascripts/actiontext.jsの修正です。

Active StoragenのJSパッケージの依存バージョンを>= 8.0.0-alphaに更新しています。開発時に必ず同じ振る舞いになるようする為。合わせて、先程RevertしたActin Textのformのbuttonをclickした場合の修正もコミットしています。


:nodoc: for ActionCable::Connection::TestCookies

actioncable/lib/action_cable/connection/test_case.rbのdocの修正です。

内部用のActionCable::Connection::TestCookies classがAPI docに表示されないよう修正しています。


Merge pull request #49679 from zzak/railties-quiet

railtiesのテストの修正です。

railtiesのテスト実行時に不要と思われる出力を減らすようにする為、不要なテストの削除、まとめて実行出来るテストを1つにまとめる、等を行っています。


Merge pull request #51966 from fatkodima/exists-and-loaded

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

ActiveRecord::Relation#exists?メソッドで、load済みのrelationに対して、conditonを指定せずに再度実行した場合にqueryを実行せずに結果を返すよう修正しています。

が、保存していないrecordが含まれている場合の挙動が変わってしまった為、後ほどRevertされています。


Revert "Optimize ActiveRecord::Relation#exists? with no conditions for loaded relations"

先程のActiveRecord::Relation#exists?メソッドの修正についてRevertしています。


Use :nodoc: for alias_method instead of :stopdoc: [ci-skip]

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

alias_methodAPI docに表示しないようにする為に:stopdoc:を使用していた箇所を、:nodoc:を使用するよう修正しています。RDoc 6.7から:nodoc:alias_methodを表示しないよう出来るようになった為。




以上の内容はhttps://y-yagi.hatenablog.com/entry/2024/06/02/062052より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14