I wrote this stone, which contains more than 10,000 generated classes. When installing this gem, you need to install ri and rdoc forever.
I know that I can disable the ri and rdoc installation by passing the -no-ri and -no-rdoc commands to the gem install, but I need to do something during the gem build process, specify a list of rb files and then exclude the rest.
I want the gem install command to automatically generate ri and rdoc only for these files.
I tried
Rake::RDocTask.new do |rdoc|
files =['README.rdoc', 'LICENSE', 'lib/myclass.rb']
rdoc.rdoc_files.add(files)
rdoc.main = "README.rdoc"
rdoc.title = "mobilesrepo Docs"
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.options << '--line-numbers'
end
enable myclass.rb to generate rdoc and ri, but still the gem installation command tries to generate rdoc and ri for all my * .rb files.
Any help would be appreciated.
source
share