[Rubygems-developers] --gen-rdoc b0rked?

Dick Davies rasputnik at hellooperator.net
Thu Apr 29 07:16:08 EDT 2004


* Chad Fowler <chad at chadfowler.com> [0442 11:42]:
> Hi Dick.  I'll try to check this out later today.  Thanks for the 
> message.

Better yet, here's a fix. Let you concentrate on releases.

The unit tests still pass, and I get doc
now (I know the tests aren't complete, but it doesn't seem to affect
any other parts of rubygems)

rasputin at lb:gems$ cvs diff lib/rubygems/doc_manager.rb
Index: lib/rubygems/doc_manager.rb
===================================================================
RCS file: /var/cvs/rubygems/rubygems/lib/rubygems/doc_manager.rb,v
retrieving revision 1.7
diff -r1.7 doc_manager.rb
12c12
<       @rdoc_args = rdoc_args.split
---
>       @rdoc_args = rdoc_args.nil? ? [] : rdoc_args.split
rasputin at lb:gems$

And the output:

rasputin at lb:gems$ gem -i copland --gen-rdoc
Attempting local installation of 'copland'
 -> Local installation can't proceed: Unknown gem file 'copland'
Attempting remote installation of 'copland'
Successfully installed copland version 0.3.0
Installing RDoc documentation for copland-0.3.0...

                         copland.rb:
                      exceptions.rb: mcccccccccc
                     rule-engine.rb: mc...c...c....c..c...c..c..c..
                   service-point.rb: mm.c....c.....c..c....c..c...c..
                   service-model.rb: mc....c.c.c.c...c.c.c.c....c...
                        registry.rb: mc.........
                          module.rb: mc....c..................
                       delegator.rb: mm..
                     log-factory.rb: mc...........
             configuration-point.rb: mc.......
                           utils.rb: m.....
                    interceptors.rb: mc.c..c.c..
                       multicast.rb: mc..c.
                   symbol-source.rb: mc....
                         builder.rb: mc.c.c...
                      drb-server.rb: mc......c..
                     soap-server.rb: mc.......c.
Generating HTML...

Files:   17
Classes: 54
Modules: 18
Methods: 154
Elapsed: 28.310s


 
> Gavin, how's that library stub stuff coming?  I'm itching to release 
> something! :)
> 
> Chad
> 
> On 28/4/2004, at 12:14 PM, Dick Davies wrote:
> 
> >
> >I may be missing something, but when playing with gem_server I
> >noticed I don't have rdoc installed - so like a fool I tried
> >installing with
> >
> >gem -i copland --gen-rdoc
> >
> >This makes doc_manager.rb go boom:
> >
> >rasputin at lb:misc$ gem -i copland --gen-rdoc
> >Attempting local installation of 'copland'
> > -> Local installation can't proceed: Unknown gem file 'copland'
> >Attempting remote installation of 'copland'
> >Successfully installed copland version 0.3.0
> >/data/ruby/lib/ruby/site_ruby/1.9/rubygems/doc_manager.rb:12:in 
> >`initialize': private method `split' called for nil:NilClass 
> >(NoMethodError)
> >        from /data/ruby/bin/gem:423:in `new'
> >        from /data/ruby/bin/gem:423:in `install'
> >        from /data/ruby/bin/gem:422:in `each'
> >        from /data/ruby/bin/gem:422:in `install'
> >        from /data/ruby/bin/gem:115:in `run'
> >        from /data/ruby/bin/gem:694
> >
> >A quick glance at the code shows that the gem command passes in
> >@options.rdoc_args, (which is nil by default, but initialize takes it,
> >bypasses it's default "" arg and you get the error above).
> >
> >I was going to send a patch, but ISTR that there was another rdoc
> >patch doing the rounds. Does it address this?
> >
> >-- 
> >Sex is not the answer.  Sex is the question.  "Yes" is the answer.
> >		-- Swami X
> >Rasputin :: Jack of All Trades - Master of Nuns
> >_______________________________________________
> >Rubygems-developers mailing list
> >Rubygems-developers at rubyforge.org
> >http://rubyforge.org/mailman/listinfo/rubygems-developers
> 
> 

-- 
Ray's Rule of Precision:
	Measure with a micrometer.  Mark with chalk.  Cut with an axe.
Rasputin :: Jack of All Trades - Master of Nuns


More information about the Rubygems-developers mailing list