utils/gems: add dependencies to LOAD_PATH.
This commit is contained in:
parent
5e0b08dd01
commit
c3ea073a07
@ -88,7 +88,10 @@ module Homebrew
|
|||||||
specs = Gem.install name, version, document: []
|
specs = Gem.install name, version, document: []
|
||||||
end
|
end
|
||||||
|
|
||||||
# Add the new specs to the $LOAD_PATH.
|
specs += specs.flat_map(&:runtime_dependencies)
|
||||||
|
.flat_map(&:to_specs)
|
||||||
|
|
||||||
|
# Add the specs to the $LOAD_PATH.
|
||||||
specs.each do |spec|
|
specs.each do |spec|
|
||||||
spec.require_paths.each do |path|
|
spec.require_paths.each do |path|
|
||||||
full_path = File.join(spec.full_gem_path, path)
|
full_path = File.join(spec.full_gem_path, path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user