Skip to content

Commit 4a988b7

Browse files
committed
Inject tsort path before rdoc
1 parent 9c49084 commit 4a988b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tool/rdoc-srcdir

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!ruby -W0
22

3-
rdoc_path = Dir.glob("#{File.dirname(__dir__)}/.bundle/gems/rdoc-*").first
4-
$LOAD_PATH.unshift("#{rdoc_path}/lib")
3+
%w[tsort rdoc].each do |lib|
4+
path = Dir.glob("#{File.dirname(__dir__)}/.bundle/gems/#{lib}-*").first
5+
$LOAD_PATH.unshift("#{path}/lib")
6+
end
57
require 'rdoc/rdoc'
68

79
# Make only the output directory relative to the invoked directory.

0 commit comments

Comments
 (0)