From 1fb44d2b8c324afdb969c37df48b0ff5856fa65f Mon Sep 17 00:00:00 2001 From: f Date: Fri, 20 Sep 2019 10:38:10 -0300 Subject: [rubygems/rubygems] Detect libc version, closes #2918 https://github.com/rubygems/rubygems/commit/1d18b12a26 --- lib/rubygems/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rubygems') diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb index 603d8ae8b8..dc2640eb6d 100644 --- a/lib/rubygems/platform.rb +++ b/lib/rubygems/platform.rb @@ -88,7 +88,7 @@ class Gem::Platform when /^dalvik(\d+)?$/ then [ 'dalvik', $1 ] when /^dotnet$/ then [ 'dotnet', nil ] when /^dotnet([\d.]*)/ then [ 'dotnet', $1 ] - when /linux/ then [ 'linux', $1 ] + when /linux-?(\w+)?/ then [ 'linux', $1 ] when /mingw32/ then [ 'mingw32', nil ] when /(mswin\d+)(\_(\d+))?/ then os, version = $1, $3 -- cgit v1.2.3