[rubygems/rubygems] bin/rubocop -a --only Style/MultipleComparison

https://github.com/rubygems/rubygems/commit/677e17aa2e
This commit is contained in:
Hiroshi SHIBATA 2025-02-20 15:54:13 +09:00
parent cdbadafd25
commit 425cfcff85
3 changed files with 4 additions and 4 deletions

View File

@ -126,7 +126,7 @@ module Bundler
end
def removable?
type == :lock || type == :gem
[:lock, :gem].include?(type)
end
def ==(other)

View File

@ -134,13 +134,13 @@ module Gem::LocalRemoteOptions
# Is local fetching enabled?
def local?
options[:domain] == :local || options[:domain] == :both
[:local, :both].include?(options[:domain])
end
##
# Is remote fetching enabled?
def remote?
options[:domain] == :remote || options[:domain] == :both
[:remote, :both].include?(options[:domain])
end
end

View File

@ -632,7 +632,7 @@ module Spec
destination = opts[:path] || _default_path
FileUtils.mkdir_p(lib_path.join(destination))
if opts[:gemspec] == :yaml || opts[:gemspec] == false
if [:yaml, false].include?(opts[:gemspec])
Dir.chdir(lib_path) do
Bundler.rubygems.build(@spec, opts[:skip_validation])
end