From 0357ac8a38a710a6b64bd8b2bb38f8ba91545eea Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 30 Jul 2012 14:04:48 +0000 Subject: * lib/rubygems/platform.rb (Gem::Platform#initialize): Support pattern like x86_64-netbsd6.99.7. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rubygems') diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb index 682714a5de..f67e4022b6 100644 --- a/lib/rubygems/platform.rb +++ b/lib/rubygems/platform.rb @@ -81,7 +81,7 @@ class Gem::Platform os, version = $1, $3 @cpu = 'x86' if @cpu.nil? and os =~ /32$/ [os, version] - when /netbsdelf/ then [ 'netbsdelf', nil ] + when /(netbsd[a-z]*)(\d+)/ then [ $1, $2 ] when /openbsd(\d+\.\d+)/ then [ 'openbsd', $1 ] when /solaris(\d+\.\d+)/ then [ 'solaris', $1 ] # test -- cgit v1.2.3