custom version of rdoc with gems?

View: New views
5 Messages — Rating Filter:   Alert me  

custom version of rdoc with gems?

by Roger Pack-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Anyone know if it's possible to specify a version of rdoc to use to do
the rdoc'ing for a gem?

gem rdoc gem_name # use rdoc 2.2.2
?
Thanks!
-r


Re: custom version of rdoc with gems?

by Tim Harper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What? You can install multiple versions of rdoc?

On Tue, Oct 13, 2009 at 8:50 AM, Roger Pack <rogerdpack@...> wrote:
Anyone know if it's possible to specify a version of rdoc to use to do
the rdoc'ing for a gem?

gem rdoc gem_name # use rdoc 2.2.2
?
Thanks!
-r



Re: custom version of rdoc with gems?

by Roger Pack-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 13, 2009 at 9:14 AM, Tim Harper <timcharper@...> wrote:
> What? You can install multiple versions of rdoc?

LOL.
$ gem install rdoc -v2.2.2
$ gem install rdoc -v2.3

That's what I mean :)
-r


Re: custom version of rdoc with gems?

by Tim Harper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

oh, in that case, there's a standard way of specifying gem version to use in all gem executables:

rdoc _2.2.2_ ...
rdoc _2.3_ ...

check out the installed executable, the code for it is right there at the top.

On Tue, Oct 13, 2009 at 9:27 AM, Roger Pack <rogerdpack@...> wrote:
On Tue, Oct 13, 2009 at 9:14 AM, Tim Harper <timcharper@...> wrote:
> What? You can install multiple versions of rdoc?

LOL.
$ gem install rdoc -v2.2.2
$ gem install rdoc -v2.3

That's what I mean :)
-r



Re: custom version of rdoc with gems?

by Roger Pack-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> all gem executables:
> rdoc _2.2.2_ ...
> rdoc _2.3_ ...

Yeah...that has potential actually.
I was originally asking if the gem command [which uses rdoc
internally] had a way of specifying which rdoc version to use
internally.
-r