2025/10/15分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actiontext/CHANGELOG.md
- Capture block content for form helper methods
- De-couple
@rails/actiontext/attachment_upload.jsfromTrix.Attachment
- Suggest
bin/rails action_text:installfrom Action Dispatch error page - Persist
/rails/info/routessearch query and results between page reloads. - Add
--updateoption to thebin/bundler-auditscript. - Show help hint when starting
bin/rails console
Merge pull request #55889 from Shopify/fix_verbose_redirect_logs
Action Packの修正です。
action_dispatch.verbose_redirect_logsがnilの場合にnilでlogが出力されてしまうバグがあったのを修正、及び、 action_dispatch.verbose_redirect_logsが有効の場合に、誤ったsource locationが設定されてしまっていたのを修正しています。
Merge pull request #55895 from hachi8833/doc_caching
rails guideのCaching with Rails: An Overviewの修正です。
Solid Cacheセクション内の、新規作成時に--skip-solidオプションを指定した場合の説明の言い回しを修正しています。
Make the Structured Event Subscriber emit events in format that are useful for logging
Structured Event Subscriberが発行するeventのformatについて、durationをduration_msに修正、全てのイベントでduration_msを含むよう修正、等の修正を行っています。
Revert "Merge pull request #54040 from mrpasquini/md5_config"
Active Storageでchecksumを取得する処理がOpenSSL::Digest::MD5固定だったのをconfigで使用するクラスを指定出来るよう修正した、Add config option for MD5 class to support FIPS complianceをRevertしています。MD5 implementationを変更出来るようにするより、digest classを変更出来るほうが良いだろう、という理由のようです。
Merge pull request #55827 from seanpdoyle/action-text-tag-helper-block
actiontext/app/helpers/action_text/tag_helper.rbの修正です。
form helper methodにblockを指定出来るよう修正しています。
<%= rich_textarea_tag :content, nil do %>
<h1>hello world</h1>
<% end %>
<!-- <input type="hidden" name="content" id="trix_input_1" value="<h1>hello world</h1>"/><trix-editor … -->
<%= rich_textarea :message, :content, input: "trix_input_1" do %>
<h1>hello world</h1>
<% end %>
<!-- <input type="hidden" name="message[content]" id="trix_input_1" value="<h1>hello world</h1>"/><trix-editor … -->
<%= form_with model: Message.new do |form| %>
<%= form.rich_textarea :content do %>
<h1>hello world</h1>
<% end %>
<% end %>
<!-- <form action="/messages" accept-charset="UTF-8" method="post"><input type="hidden" name="message[content]" id="message_content_trix_input_message" value="<h1>hello world</h1>"/><trix-editor … -->
De-couple @rails/actiontext/attachment_upload.js from Trix.Attachment
Action Textの修正です。
AttachmentUploadを、Trix.Attachmentに依存しないよう(fileの情報を引数で受け渡し等が出来るよう)修正しています。 Action TextをTrixから切り離す対応の一環との事です。
Merge pull request #50557 from seanpdoyle/action-text-install-generator
railties、Action Packの修正です。
Action Text用のtableが無くてエラーになった場合に、エラーページでbin/rails action_text:installを実行する旨サジェストするよう修正しています。
Merge pull request #55869 from ceritium/patch-1
rails guideのActive Job Basicsの修正です。
使用出来るcallbackの一覧に、不足していたafter_discardを追加しています。
Merge pull request #55892 from harsh183/getting_started/email_section_header
rails guideのGetting Started with Railsの修正です。
Adding In Stock Notificationsセクションのセクション名をAction Mailer and Email Notificationsに修正しています。他のセクション名がrailsの機能をベースにした名前になっており、合わせる為。
[ci-skip][doc] Update active_storage_overview.md
rails guideのActive Storage Overviewの修正です。
Direct Uploadsセクション内の言い回しを修正しています。
Address test_verbose_redirect_logs failure for Ruby 3.5.0dev
actionpack/test/controller/log_subscriber_test.rbの修正です。
test_verbose_redirect_logsがRuby 3.5.0devでfailしてしたのを修正しています。
Don't use attestation when sigstore fails
tools/releaser/lib/releaser.rbの修正です。
sigstoreのverifierの生成処理がエラーになった場合に、attestationを使用しないよう修正しています。現在、Sigstore::Verifier.productionの実行がエラーになるバグがある為。
各コンポーネントのバージョンを8.2.0.alphaに更新しています。
Merge pull request #55903 from ryanckulp/persist_routes_search_query
actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb、
railties/lib/rails/info_controller.rbの修正です。
/rails/info/routesの検索パラメータとその結果を、ページをリロードした際にも保持するよう修正しています。
Add advisory DB update by default in bin/bundler-audit
railties/lib/rails/generators/rails/app/templates/bin/bundler-audit.ttの修正です。
bin/bundler-audit scriptに--updateオプションを指定するよう修正しています。advisory DBが常に最新の状態になるようにする為。
Show help hint when starting bin/rails console
railties/lib/rails/commands/console/console_command.rbの修正です。
bin/rails consoleでconsoleを起動した際に、helpに関する説明(Type 'help' for help.)を表示するよう修正しています。
Merge pull request #51579 from jclusso/render_collection_expires_in_support
actionview/lib/action_view/renderer/partial_renderer/collection_caching.rbの修正です。
collectionをrenderする際に、cacheのkeyとexpires_inを指定出来るよう修正しています。指定した値はそのままcollection cachingのcacheに使用されるようになっています。
<%= render(collection: @posts, partial: 'post', cached: { expires_in: 1.day.from_now }) %>
<%= render partial: 'products/product',
collection: @products,
cached: { expires_in: 1.hour, key: ->(product) { [I18n.locale, product] } } %>
Merge pull request #55896 from flavorjones/flavorjones/improve-sqlite-url-support
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb、
activerecord/lib/active_record/tasks/sqlite_database_tasks.rbの修正です。
Sqlite3Adapterを使用している、かつ、database URIが指定された場合に、db:create及びdb:dropが正しく動作していなかったのを修正しています。合わせて、指定されたURIのディレクトリが存在しない場合に、自動で作成するよう修正しています。
Merge pull request #55837 from fatkodima/fix-sqlite-change_column-preserve-old-attrs
activerecord/lib/active_record/connection_adapters/sqlite3/schema_definitions.rbの修正です。
SQLite adapterでchange_columnを使用した場合に、元のcolumnに指定されていたNOT NULLやDEFAULTなどのオプションが維持されないバグがあったのを修正しています。