lib/yard/cli/yri.rb in yard-0.9.7 vs lib/yard/cli/yri.rb in yard-0.9.8
- old
+ new
@@ -159,10 +159,10 @@
# Adds all RubyGems yardoc files to search paths
# @return [void]
def add_gem_paths
require 'rubygems'
gem_paths = []
- YARD::GemIndex.find_all_by_name('').each do |spec|
+ YARD::GemIndex.each do |spec|
yfile = Registry.yardoc_file_for_gem(spec.name)
next if yfile.nil?
if spec.name =~ /^yard-doc-/
gem_paths.unshift(yfile)