[rubygems/rubygems] util/rubocop -A --only Style/DoubleNegation
https://github.com/rubygems/rubygems/commit/01c2b5542f
This commit is contained in:
parent
be4cc74e26
commit
2db7673825
@ -983,7 +983,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
|
|||||||
def self.win_platform?
|
def self.win_platform?
|
||||||
if @@win_platform.nil?
|
if @@win_platform.nil?
|
||||||
ruby_platform = RbConfig::CONFIG["host_os"]
|
ruby_platform = RbConfig::CONFIG["host_os"]
|
||||||
@@win_platform = !!WIN_PATTERNS.find {|r| ruby_platform =~ r }
|
@@win_platform = !WIN_PATTERNS.find {|r| ruby_platform =~ r }.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
@@win_platform
|
@@win_platform
|
||||||
|
@ -65,7 +65,7 @@ class Gem::DependencyInstaller
|
|||||||
# :build_args:: See Gem::Installer::new
|
# :build_args:: See Gem::Installer::new
|
||||||
|
|
||||||
def initialize(options = {})
|
def initialize(options = {})
|
||||||
@only_install_dir = !!options[:install_dir]
|
@only_install_dir = !options[:install_dir].nil?
|
||||||
@install_dir = options[:install_dir] || Gem.dir
|
@install_dir = options[:install_dir] || Gem.dir
|
||||||
@build_root = options[:build_root]
|
@build_root = options[:build_root]
|
||||||
|
|
||||||
|
@ -302,7 +302,7 @@ class Gem::Version
|
|||||||
|
|
||||||
def prerelease?
|
def prerelease?
|
||||||
unless instance_variable_defined? :@prerelease
|
unless instance_variable_defined? :@prerelease
|
||||||
@prerelease = !!(@version =~ /[a-zA-Z]/)
|
@prerelease = !(@version =~ /[a-zA-Z]/).nil?
|
||||||
end
|
end
|
||||||
@prerelease
|
@prerelease
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user