mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] add tests
https://github.com/rubygems/rubygems/commit/8a7e27381c
This commit is contained in:
parent
1fb44d2b8c
commit
73633683c5
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Add table
Reference in a new issue