    # File lib/yard/server/library_version.rb, line 191
          def load_yardoc_from_gem
            require 'rubygems'
            ver = version ? "= #{version}" : ">= 0"
            self.yardoc_file = Registry.yardoc_file_for_gem(name, ver)
            unless yardoc_file && File.directory?(yardoc_file)
              Thread.new do
                # Build gem docs on demand
                log.debug "Building gem docs for #{to_s(false)}"
                CLI::Gems.run(name, ver)
                self.yardoc_file = Registry.yardoc_file_for_gem(name, ver)
                FileUtils.touch(File.join(yardoc_file, 'complete'))
              end
            end
            unless yardoc_file && File.exist?(File.join(yardoc_file, 'complete'))
              raise LibraryNotPreparedError
            end
          end