Ruby 4.0 with MSYS2 RubyInstaller Team
Use this command to install Ruby 4.0 with MSYS2:
winget install --id=RubyInstallerTeam.RubyWithDevKit.4.0 -e The RubyInstaller project provides a self-contained Windows-based installer that includes a Ruby-language execution environment and a baseline set of required RubyGems and extensions, integrated with a MSYS2 installation.