lib/yard/cli/diff.rb in yard-0.9.7 vs lib/yard/cli/diff.rb in yard-0.9.8
- old
+ new
@@ -129,10 +129,10 @@
end
# Next check installed RubyGems
gemfile_without_ext = gemfile.sub(/\.gem$/, '')
log.info "Searching for installed gem #{gemfile_without_ext}"
- YARD::GemIndex.find_all_by_name('').find do |spec|
+ YARD::GemIndex.each.find do |spec|
next unless spec.full_name == gemfile_without_ext
yardoc = Registry.yardoc_file_for_gem(spec.name, "= #{spec.version}")
if yardoc
Registry.load_yardoc(yardoc)
Registry.load_all