summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Nageleisen <loic.nageleisen@gmail.com>2020-11-24 13:52:13 +0100
committergit <svn-admin@ruby-lang.org>2022-08-23 05:50:20 +0900
commit615f79be3cef210c26b967f06979ed464bf9e178 (patch)
tree4f41e90b52843f977dd39f1f3c2bb706f4e52bfc
parent085790bdc0936aec793f6798f9b78c10916c8292 (diff)
downloadruby-615f79be3cef210c26b967f06979ed464bf9e178.tar.gz
[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
-rw-r--r--lib/rubygems/platform.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb
index ed3571dbff..0c0520e1db 100644
--- a/lib/rubygems/platform.rb
+++ b/lib/rubygems/platform.rb
@@ -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