mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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:
parent
085790bdc0
commit
615f79be3c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue