summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorf <f@sutty.nl>2019-09-20 10:38:10 -0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-09-26 17:48:01 +0900
commit1fb44d2b8c324afdb969c37df48b0ff5856fa65f (patch)
treec9128aacca5a93cf9797736dd2452463494c7af6 /lib/rubygems
parentea5b1361557690569a33204c122a08f2faefdf91 (diff)
[rubygems/rubygems] Detect libc version, closes #2918
https://github.com/rubygems/rubygems/commit/1d18b12a26
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/platform.rb2
1 files changed, 1 insertions, 1 deletions
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