mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Check if Gem::Specification is defined
https://github.com/ruby/irb/commit/005ade74dd
This commit is contained in:
parent
4576cdca73
commit
c94718e39f
1 changed files with 2 additions and 2 deletions
|
@ -59,8 +59,8 @@ module IRB
|
|||
File.join(s.full_gem_path, p)
|
||||
end
|
||||
}
|
||||
}.flatten
|
||||
(gem_paths + $LOAD_PATH).uniq.sort
|
||||
}.flatten if defined?(Gem::Specification)
|
||||
(gem_paths.to_a | $LOAD_PATH).sort
|
||||
end
|
||||
|
||||
def self.retrieve_files_to_require_from_load_path
|
||||
|
|
Loading…
Reference in a new issue