[rubygems/rubygems] util/rubocop -A --only Style/IfUnlessModifierOfIfUnless

https://github.com/rubygems/rubygems/commit/97e0af2518
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 14:05:21 +09:00
parent ee7475734f
commit be4cc74e26
3 changed files with 9 additions and 3 deletions

View File

@ -185,7 +185,9 @@ command to remove old versions.
system Gem.ruby, "--disable-gems", "setup.rb", *args
end
say "RubyGems system software updated" if installed unless options[:silent]
unless options[:silent]
say "RubyGems system software updated" if installed
end
end
end

View File

@ -1136,7 +1136,9 @@ class Gem::Specification < Gem::BasicSpecification
result = {}
specs.reverse_each do |spec|
next if spec.version.prerelease? unless prerelease
unless prerelease
next if spec.version.prerelease?
end
result[spec.name] = spec
end

View File

@ -62,7 +62,9 @@ class Gem::Validator
errors = Hash.new {|h,k| h[k] = {} }
Gem::Specification.each do |spec|
next unless gems.include? spec.name unless gems.empty?
unless gems.empty?
next unless gems.include? spec.name
end
next if spec.default_gem?
gem_name = spec.file_name