[rubygems/rubygems] bin/rubocop -a --only Style/MultipleComparison
https://github.com/rubygems/rubygems/commit/677e17aa2e
This commit is contained in:
parent
cdbadafd25
commit
425cfcff85
@ -126,7 +126,7 @@ module Bundler
|
||||
end
|
||||
|
||||
def removable?
|
||||
type == :lock || type == :gem
|
||||
[:lock, :gem].include?(type)
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user