[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
|
end
|
||||||
|
|
||||||
def removable?
|
def removable?
|
||||||
type == :lock || type == :gem
|
[:lock, :gem].include?(type)
|
||||||
end
|
end
|
||||||
|
|
||||||
def ==(other)
|
def ==(other)
|
||||||
|
@ -134,13 +134,13 @@ module Gem::LocalRemoteOptions
|
|||||||
# Is local fetching enabled?
|
# Is local fetching enabled?
|
||||||
|
|
||||||
def local?
|
def local?
|
||||||
options[:domain] == :local || options[:domain] == :both
|
[:local, :both].include?(options[:domain])
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# Is remote fetching enabled?
|
# Is remote fetching enabled?
|
||||||
|
|
||||||
def remote?
|
def remote?
|
||||||
options[:domain] == :remote || options[:domain] == :both
|
[:remote, :both].include?(options[:domain])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -632,7 +632,7 @@ module Spec
|
|||||||
destination = opts[:path] || _default_path
|
destination = opts[:path] || _default_path
|
||||||
FileUtils.mkdir_p(lib_path.join(destination))
|
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
|
Dir.chdir(lib_path) do
|
||||||
Bundler.rubygems.build(@spec, opts[:skip_validation])
|
Bundler.rubygems.build(@spec, opts[:skip_validation])
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user