ddollar / foreman

Manage Procfile-based applications
http://ddollar.github.com/foreman
MIT License
6.01k stars 630 forks source link

Support for x64-mingw-ucrt platform #789

Open sk-ys opened 1 year ago

sk-ys commented 1 year ago

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.

https://github.com/ddollar/foreman/blob/a5f9b78fa5cf657733c8a4cfd01b2c0c151b4fce/lib/foreman.rb#L13-L15