mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
This commit is contained in:
parent
ef481c120c
commit
955f1837a1
Notes:
git
2020-06-15 21:21:04 +09:00
99 changed files with 469 additions and 469 deletions
|
@ -276,7 +276,7 @@ class Gem::BasicSpecification
|
|||
def matches_for_glob(glob) # TODO: rename?
|
||||
glob = File.join(self.lib_dirs_glob, glob)
|
||||
|
||||
Dir[glob].map { |f| f.tap(&Gem::UNTAINT) } # FIX our tests are broken, run w/ SAFE=1
|
||||
Dir[glob].map {|f| f.tap(&Gem::UNTAINT) } # FIX our tests are broken, run w/ SAFE=1
|
||||
end
|
||||
|
||||
##
|
||||
|
@ -335,12 +335,12 @@ class Gem::BasicSpecification
|
|||
def have_file?(file, suffixes)
|
||||
return true if raw_require_paths.any? do |path|
|
||||
base = File.join(gems_dir, full_name, path.tap(&Gem::UNTAINT), file).tap(&Gem::UNTAINT)
|
||||
suffixes.any? { |suf| File.file? base + suf }
|
||||
suffixes.any? {|suf| File.file? base + suf }
|
||||
end
|
||||
|
||||
if have_extensions?
|
||||
base = File.join extension_dir, file
|
||||
suffixes.any? { |suf| File.file? base + suf }
|
||||
suffixes.any? {|suf| File.file? base + suf }
|
||||
else
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue