@@ -97,16 +97,15 @@ def initialize(arch)
9797 end
9898
9999 cpu = arch . shift
100- if cpu . nil? || "" == cpu
100+ if cpu . nil? || cpu == ""
101101 raise ArgumentError , "empty cpu in platform #{ arch_str . inspect } "
102102 end
103103
104-
105104 @cpu = if cpu . match? ( /i\d 86/ )
106- "x86"
107- else
108- cpu
109- end
105+ "x86"
106+ else
107+ cpu
108+ end
110109
111110 if arch . length == 2 && arch . last . match? ( /^\d +(\. \d +)?$/ ) # for command-line
112111 @os , @version = arch
@@ -127,10 +126,10 @@ def initialize(arch)
127126 when /^macruby$/ then [ "macruby" , nil ]
128127 when /freebsd(\d +)?/ then [ "freebsd" , $1]
129128 when /^java$/ , /^jruby$/ then [ "java" , nil ]
130- when /^java(\d +(?:\. \d +)*)?/ then [ "java" , $1]
129+ when /^java(\d +(?:\. \d +)*)?/ then [ "java" , $1]
131130 when /^dalvik(\d +)?$/ then [ "dalvik" , $1]
132131 when /^dotnet$/ then [ "dotnet" , nil ]
133- when /^dotnet(\d +(?:\. \d +)*)?/ then [ "dotnet" , $1]
132+ when /^dotnet(\d +(?:\. \d +)*)?/ then [ "dotnet" , $1]
134133 when /linux-?(\w +)?/ then [ "linux" , $1]
135134 when /mingw32/ then [ "mingw32" , nil ]
136135 when /mingw-?(\w +)?/ then [ "mingw" , $1]
0 commit comments