зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Test platform's version-ness consistently
The symmetry with the "for command line" case is made more apparent. https://github.com/rubygems/rubygems/commit/ab85d3558f
This commit is contained in:
Родитель
085790bdc0
Коммит
615f79be3c
|
@ -70,7 +70,7 @@ class Gem::Platform
|
|||
when String then
|
||||
arch = arch.split "-"
|
||||
|
||||
if arch.length > 2 && arch.last !~ (/\d/) # reassemble x86-linux-gnu
|
||||
if arch.length > 2 && arch.last !~ /\d+(\.\d+)?$/ # reassemble x86-linux-{libc}
|
||||
extra = arch.pop
|
||||
arch.last << "-#{extra}"
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче