From 2bc2f579262943792d2f92e69444aaf33efe7d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hern=C3=A1n=20Lucas=20Pereira?= Date: Wed, 20 Mar 2024 15:17:36 -0300 Subject: [PATCH] Allow name variations of mingw when detecting platforms --- lib/biodiversity/parser/gnparser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/biodiversity/parser/gnparser.rb b/lib/biodiversity/parser/gnparser.rb index c29b0bf..f98c618 100644 --- a/lib/biodiversity/parser/gnparser.rb +++ b/lib/biodiversity/parser/gnparser.rb @@ -43,7 +43,7 @@ def start_gnparser 'linux' when 'darwin' 'mac' - when 'mingw32' + when /^mingw\d{2}?$/ 'win.exe' else raise "Unsupported platform: #{Gem.platforms[1].os}"