diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-16 13:07:05 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-17 18:50:55 +0900 |
commit | 3d4c3f9e4ffc31e652b1bfab4d78f8b27d5b8126 () | |
tree | b70b311fcdaa115a33bce576a166994df4813504 /lib | |
parent | 4bb5ce8188c7623106d124d3398c6b73bfa8ecd4 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/ParallelAssignment
https://.com/rubygems/rubygems/commit/5c88c77873
-rw-r--r-- | lib/rubygems/deprecate.rb | 3 | ||||
-rw-r--r-- | lib/rubygems/ext/builder.rb | 3 | ||||
-rw-r--r-- | lib/rubygems/platform.rb | 8 | ||||
-rw-r--r-- | lib/rubygems/request_set.rb | 3 | ||||
-rw-r--r-- | lib/rubygems/resolver/api_set.rb | 3 | ||||
-rw-r--r-- | lib/rubygems/version.rb | 3 |
6 files changed, 16 insertions, 7 deletions
@@ -81,7 +81,8 @@ module Gem::Deprecate # Temporarily turn off warnings. Intended for tests only. def skip_during - Gem::Deprecate.skip, original = true, Gem::Deprecate.skip yield ensure Gem::Deprecate.skip = original @@ -59,7 +59,8 @@ class Gem::Ext::Builder verbose = Gem.configuration.really_verbose begin - rubygems_gemdeps, ENV["RUBYGEMS_GEMDEPS"] = ENV["RUBYGEMS_GEMDEPS"], nil if verbose puts("current directory: #{dir}") p(command) @@ -89,7 +89,10 @@ class Gem::Platform end os, = arch - @cpu, os = nil, cpu if os.nil? # legacy jruby @os, @version = case os when /aix(\d+)?/ then [ "aix", $1 ] @@ -106,7 +109,8 @@ class Gem::Platform when /mingw32/ then [ "mingw32", nil ] when /mingw-?(\w+)?/ then [ "mingw", $1 ] when /(mswin\d+)(\_(\d+))?/ then - os, version = $1, $3 @cpu = "x86" if @cpu.nil? && os =~ /32$/ [os, version] when /netbsdelf/ then [ "netbsdelf", nil ] @@ -254,7 +254,8 @@ class Gem::RequestSet end def install_into(dir, force = true, options = {}) - gem_home, ENV["GEM_HOME"] = ENV["GEM_HOME"], dir existing = force ? [] : specs_in(dir) existing.delete_if {|s| @always_install.include? s } @@ -75,7 +75,8 @@ class Gem::Resolver::APISet < Gem::Resolver::Set end def prefetch_now # :nodoc: - needed, @to_fetch = @to_fetch, [] needed.sort.each do |name| versions(name) @@ -366,7 +366,8 @@ class Gem::Version i = 0 while i <= limit - lhs, rhs = lhsegments[i] || 0, rhsegments[i] || 0 i += 1 next if lhs == rhs |