Skip to content

Instantly share code, notes, and snippets.

@knu
Created May 21, 2009 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knu/115607 to your computer and use it in GitHub Desktop.
Save knu/115607 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'rubygems/doc_manager'
Gem.source_index.each { |name, spec|
next if !spec.has_rdoc
doc = Gem::DocManager.new(spec)
next if doc.rdoc_installed?
doc.generate_ri
doc.generate_rdoc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment