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 | |
parent | 1fb44d2b8c324afdb969c37df48b0ff5856fa65f (diff) | |
download | ruby-73633683c5a880af0207a55c6f3ea42c13cb5de1.tar.gz |
[rubygems/rubygems] add tests
https://github.com/rubygems/rubygems/commit/8a7e27381c
-rw-r--r-- | lib/rubygems/platform.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_platform.rb | 1 |
2 files changed, 2 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 diff --git a/test/rubygems/test_gem_platform.rb b/test/rubygems/test_gem_platform.rb index 61d1966119..289f078867 100644 --- a/test/rubygems/test_gem_platform.rb +++ b/test/rubygems/test_gem_platform.rb @@ -76,6 +76,7 @@ class TestGemPlatform < Gem::TestCase 'i386-solaris2.8' => ['x86', 'solaris', '2.8'], 'mswin32' => ['x86', 'mswin32', nil], 'x86_64-linux' => ['x86_64', 'linux', nil], + 'x86_64-linux-musl' => ['x86_64', 'linux', 'musl'], 'x86_64-openbsd3.9' => ['x86_64', 'openbsd', '3.9'], 'x86_64-openbsd4.0' => ['x86_64', 'openbsd', '4.0'], 'x86_64-openbsd' => ['x86_64', 'openbsd', nil], |