On Jun 4, 11:00 am, Josh Nichols <
j...@technicalpickles.com> wrote:
>
> Are you trying to get this to work for when gem install builds rdoc, or when
> you use `rake doc`? Also, what file are you trying to add now? Is it a .rb
> file in lib, or something else?
>
I am trying to get the link to the library file /lib/aruba/
cucumber_steps.rb included somewhere on the index page.
> For having it be in the gem-generated rdoc, all the .rb files in lib/ should
> already be included. On the Jeweler::Tasks declaration (ie the
> Gem::Specification), you can use `extra_rdoc_files` to add more files that
> aren't included. This would be at:
http://github.com/byrnejb/aruba/blob/master/Rakefile#L7-17
I have already tried that and I do not seem to change the resulting
index page.
Here is what I have in the Rakefile
<pre>
. . .
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.version = "0.1.9.jbb.20100601"
gem.name = "aruba"
gem.summary = %Q{CLI Steps for Cucumber}
gem.description = %Q{CLI Steps for Cucumber, hand-crafted for you
in Aruba}
gem.email = "
cu...@googlegroups.com"
gem.homepage = "
http://github.com/aslakhellesoy/aruba"
gem.authors = ["Aslak Hellesøy", "David Chelimsky"]
gem.add_development_dependency "rspec", ">= 1.3.0"
gem.add_development_dependency "cucumber", ">= 0.7.0.beta.6"
gem.extra_rdoc_files
end
. . .
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "aruba #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/aruba/cucumber_steps.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
end
</pre>
and here is the resulting index.html page when the gem is installed:
Files
* LICENSE
* README.rdoc
Classes/Modules
* Aruba
* Aruba::Api
Methods
The rake rdoc task builds a framed index page that contains links to
the files that I wish to include in the gem. It is only when I build
the gem that the links disappear. The documentation files are there,
there is simply no link to them.