ddollar / foreman

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

Fix insufficient Windows detection #799

Open daniel-rikowski opened 4 months ago

daniel-rikowski commented 4 months ago

This restores proper Windows detection for MSYS-based Ruby versions (e.g. Ruby 2.4+ with RubyInstaller2)

Fixes https://github.com/ddollar/foreman/issues/789, https://github.com/ddollar/foreman/issues/797, https://github.com/ddollar/foreman/issues/793

Instead of just adding more patterns, I decided to use Gem.win_platform?. It checks a comprehensive list of patterns specific to Windows. It is available since around 2007, the oldest Ruby officially supported by Foreman (i.e. 2.3) was released in 2015.