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.
|
def self.windows? |
|
defined?(RUBY_PLATFORM) and RUBY_PLATFORM =~ /(win|w)32$/ |
|
end |
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.
foreman/lib/foreman.rb
Lines 13 to 15 in a5f9b78