summaryrefslogtreecommitdiff
path: root/lib/rubygems/platform.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-03 19:56:58 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-03-30 12:48:23 +0900
commit061add792e658878c839887682716737d9f6d677 (patch)
treeb111148a604c7f2ab09f26b1804a2725d7c19680 /lib/rubygems/platform.rb
parentc16815cca7c223698c11b4c520b75caeb0499f93 (diff)
[rubygems/rubygems] Enable `Style/ExtraSpacing` and auto-correct
https://github.com/rubygems/rubygems/commit/6fa0b1b679
Diffstat (limited to 'lib/rubygems/platform.rb')
-rw-r--r--lib/rubygems/platform.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb
index 521c552bea..1692eb7e5d 100644
--- a/lib/rubygems/platform.rb
+++ b/lib/rubygems/platform.rb
@@ -56,7 +56,7 @@ class Gem::Platform
when String then
arch = arch.split '-'
- if arch.length > 2 and arch.last !~ /\d/ # reassemble x86-linux-gnu
+ if arch.length > 2 and arch.last !~ /\d/ # reassemble x86-linux-gnu
extra = arch.pop
arch.last << "-#{extra}"
end
@@ -68,7 +68,7 @@ class Gem::Platform
else cpu
end
- if arch.length == 2 and arch.last =~ /^\d+(\.\d+)?$/ # for command-line
+ if arch.length == 2 and arch.last =~ /^\d+(\.\d+)?$/ # for command-line
@os, @version = arch
return
end