Currently, we're using the /(win|w)32$/ regular expression pattern to identify Windows.
However, this pattern does not correctly identify Windows when using Ruby 3.1 or later.
Since Ruby 3.1, the platform reported by the RubyInstaller for Windows is x64-mingw-ucrt.
Please consider updating the code to support this platform.
Currently, we're using the
/(win|w)32$/
regular expression pattern to identify Windows. However, this pattern does not correctly identify Windows when using Ruby 3.1 or later. Since Ruby 3.1, the platform reported by the RubyInstaller for Windows isx64-mingw-ucrt
. Please consider updating the code to support this platform.https://github.com/ddollar/foreman/blob/a5f9b78fa5cf657733c8a4cfd01b2c0c151b4fce/lib/foreman.rb#L13-L15