なるようになるブログ

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

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

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

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

activesupport/CHANGELOG.md


Fix extra blank line when adding rubocop-rails-omakase and brakeman (#50626)

railties/lib/rails/generators/rails/app/templates/Gemfile.ttの修正です。

rails newで生成するGemfileから不要な空行を削除しています。


Use existing bundle path that already declared (#50615)

railties/lib/rails/generators/rails/app/templates/Dockerfile.ttrailties/test/fixtures/Dockerfile.testの修正です。

rails newで生成するDockefile内のbundleのpathを参照する処理で、定義済みの$BUNDLE_PATH変数を使用するよう修正しています。


Add default svg icon in generated application layout (#50629)

railtiesの修正です。

rails newで新規にアプリケーションを作成する際に、SVG形式のiconを含むよう修正しています。ChromeFirefoxSVG形式のiconをサポートしており、使用出来る環境ではSVGの方を使用出来るようにする為。


Fix links to master branches renamed to main

docの修正です。

GitHubリポジトリへのリンクで、デフォルトブランチ名がmasterからmainに変わっている箇所をまとめて修正しています。


Update link for creating a gem

rails guideのThe Basics of Creating Rails Pluginsの修正です。

RubyGemの開発方法についてのdocのリンクが古いdocへのリンクになっていたのを修正しています。


Fix view runtime for controllers with async queries

activerecord/lib/active_record/railties/controller_runtime.rbactiverecord/lib/active_record/runtime_registry.rbの修正です。

controllerでasync queryを使用した場合に、instrumentのview runtimeの結果が負の値になってしまうバグがあったのを修正しています。


Yield instance to Object#with block

activesupport/lib/active_support/core_ext/object/with.rbの修正です。

Object#withのblockにreceiverのインスタンスを渡すよう修正しています。

client.with(timeout: 5_000) do |c|
  c.get("/commits")
end

Merge pull request #50612 from sato11/use-the-article-an-for-sql

各doc、エラーメッセージのグラマーの修正を行っています。


Merge pull request #50609 from ricardotk002/use-array-intersect

(Array & Array).empty?(またはany?)をしている箇所を、Array#intersect?を使用するよう修正しています。Array#intersect?の方が高速な為、との事です。


Split up code blocks for multi-file examples [ci-skip]

docの修正す。

doc内の複数のファイルにまたがるcode exampleを、ファイルごとに別のcode blockになるよう修正しています。


Clean up AV::Helpers::SanitizeHelper#sanitize doc [ci-skip]

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

ActionView::Helpers::SanitizeHelper#sanitizeのdocについて、フォーマットの修正、exampleコードの追加等を行っています。


Autolink AV::Helpers::SanitizeHelper#sanitize [ci-skip]

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

sanitize_cssメソッドのdoc内のsanitizeメソッドについて言及しいてる箇所がAPI docへのリンクになるよう修正しています。


Prepend $ to example CLI commands [ci-skip]

docの修正です。

CLIコマンドのexampleの先頭に$を追加しています。


Use verb form of "fallback"

docの修正です。

fallback ->fall backに修正しています。


Add missing &

actionpack/lib/action_dispatch/testing/assertions/routing.rbの修正です。

Cleanup defined? usageの対応により、routerのnamed routeの参照処理でNoMethodErrorが発生してしまうバグがあったのを修正しています。


Enable Style/ArrayIntersect rubocop cop

.rubocop.ymlの修正です。

Style/ArrayIntersect copを有効化しています。


Bump libxml-ruby

Gemfile.lock修正です。

libxml-ruby gemを5系に更新しています。libxml2 2.12.0をインストールした場合にげgemのインストールが出来るようにする為。


Merge pull request #50635 from ghiculescu/connection-pool-docs

activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rbのdoc、及び、 rails guideのConfiguring Rails Applicationsの修正です。

Connection Poolについて説明している箇所の言い回しの修正、API docへのリンクの追加を行っています。


Remove core_ext/uri.rb exception

activesupport/lib/active_support/core_ext.rbの修正です。

Remove deprecated active_support/core_ext/uri fileで削除されたcore_ext/uri.rbの為の処理を削除しています。


Removed references to separate test case templates due to the fact, that these templates were merged.

rails guideのContributing to Ruby on Railsの修正です。

bug report templateについて、released versionとedge Railsで別のファイルが存在する旨説明されていたのを、versionにより違いは無い旨説明を修正しています。Consolidate bug_report_templates and remove the gem versionsで一つに統一された為。