mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
parent
f8936b3341
commit
44264b4fee
Notes:
git
2022-08-09 12:05:48 +09:00
80 changed files with 312 additions and 286 deletions
|
@ -71,7 +71,7 @@ requiring to see why it does not behave as you expect.
|
|||
dirs.each do |dir|
|
||||
Gem.suffixes.each do |ext|
|
||||
full_path = File.join dir, "#{package_name}#{ext}"
|
||||
if File.exist? full_path and not File.directory? full_path
|
||||
if File.exist?(full_path) && !File.directory?(full_path)
|
||||
result << full_path
|
||||
return result unless options[:show_all]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue