2024/01/08分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
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.tt
、
railties/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を含むよう修正しています。ChromeとFirefoxはSVG形式の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.rb
、
activerecord/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の先頭に$
を追加しています。
docの修正です。
fallback
->fall back
に修正しています。
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を有効化しています。
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
の為の処理を削除しています。
rails guideのContributing to Ruby on Rails
の修正です。
bug report templateについて、released versionとedge Railsで別のファイルが存在する旨説明されていたのを、versionにより違いは無い旨説明を修正しています。Consolidate bug_report_templates and remove the gem versionsで一つに統一された為。