lib/yard/cli/gems.rb in yard-0.9.4 vs lib/yard/cli/gems.rb in yard-0.9.5
- old
+ new
@@ -33,12 +33,13 @@
else
yfile = Registry.yardoc_file_for_gem(spec.name, ver, true)
next unless yfile
next unless File.directory?(spec.full_gem_path)
Registry.clear
- Dir.chdir(spec.full_gem_path)
- log.info "Building yardoc index for gem: #{spec.full_name}"
- Yardoc.run('--no-stats', '-n', '-b', yfile)
+ Dir.chdir(spec.full_gem_path) do
+ log.info "Building yardoc index for gem: #{spec.full_name}"
+ Yardoc.run('--no-stats', '-n', '-b', yfile)
+ end
end
end
end
def add_gems(gems)
\ No newline at end of file