Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -140,20 +140,20 @@ def self.find_jruby_bin_dir
def self.find_repo(name)
[JRUBY_DIR, "#{JRUBY_DIR}/.."].each do |dir|
found = Dir.glob("#{dir}/#{name}*").first
return found if found
return File.expand_path(found) if found
end
raise "Can't find the #{name} repo - clone it into the repository directory or its parent"
end

def self.find_gem(name)
["#{JRUBY_DIR}/lib/ruby/gems/shared/gems"].each do |dir|
found = Dir.glob("#{dir}/#{name}*").first
return found if found
return File.expand_path(found) if found
end

[JRUBY_DIR, "#{JRUBY_DIR}/.."].each do |dir|
found = Dir.glob("#{dir}/#{name}").first
return found if found
return File.expand_path(found) if found
end
raise "Can't find the #{name} gem - gem install it in this repository, or put it in the repository directory or its parent"
end

0 comments on commit 56772b1

Please sign in to comment.