diff options
author | f <f@sutty.nl> | 2019-09-20 12:54:48 -0300 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-09-26 17:48:01 +0900 |
commit | 73633683c5a880af0207a55c6f3ea42c13cb5de1 (patch) | |
tree | 88780dacf4cf09872423ba816699b63492145d9d /lib/rubygems | |
parent | 1fb44d2b8c324afdb969c37df48b0ff5856fa65f (diff) |
[rubygems/rubygems] add tests
https://github.com/rubygems/rubygems/commit/8a7e27381c
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/platform.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb index dc2640eb6d..521c552bea 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-?(\w+)?/ then [ 'linux', $1 ] + when /linux-?((?!gnu)\w+)?/ then [ 'linux', $1 ] when /mingw32/ then [ 'mingw32', nil ] when /(mswin\d+)(\_(\d+))?/ then os, version = $1, $3 |