[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gems install - sans docs?

Tom Allison

7/30/2006 12:24:00 AM

Something can't be right....

notebook:~# gem install calendar_grid
Install required dependency activesupport? [Yn] Y
Successfully installed calendar_grid-1.0.2
Successfully installed activesupport-1.3.1
Installing ri documentation for calendar_grid-1.0.2...
Installing ri documentation for activesupport-1.3.1...
Installing RDoc documentation for calendar_grid-1.0.2...
Installing RDoc documentation for activesupport-1.3.1...



ri CalendarGrid returns nothing. So where would the docs be?

3 Answers

Eric Hodel

7/30/2006 1:24:00 AM

0

On Jul 29, 2006, at 5:23 PM, Tom Allison wrote:

> Something can't be right....
>
> notebook:~# gem install calendar_grid
> Install required dependency activesupport? [Yn] Y
> Successfully installed calendar_grid-1.0.2
> Successfully installed activesupport-1.3.1
> Installing ri documentation for calendar_grid-1.0.2...
> Installing ri documentation for activesupport-1.3.1...
> Installing RDoc documentation for calendar_grid-1.0.2...
> Installing RDoc documentation for activesupport-1.3.1...
>
>
>
> ri CalendarGrid returns nothing. So where would the docs be?

Use gemri unless you have 1.8.5p1 or newer installed.

--
Eric Hodel - drbrain@segment7.net - http://blog.se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...



Tom Allison

7/30/2006 12:18:00 PM

0

Eric Hodel wrote:
> On Jul 29, 2006, at 5:23 PM, Tom Allison wrote:
>
>> Something can't be right....
>>
>> notebook:~# gem install calendar_grid
>> Install required dependency activesupport? [Yn] Y
>> Successfully installed calendar_grid-1.0.2
>> Successfully installed activesupport-1.3.1
>> Installing ri documentation for calendar_grid-1.0.2...
>> Installing ri documentation for activesupport-1.3.1...
>> Installing RDoc documentation for calendar_grid-1.0.2...
>> Installing RDoc documentation for activesupport-1.3.1...
>>
>>
>>
>> ri CalendarGrid returns nothing. So where would the docs be?
>
> Use gemri unless you have 1.8.5p1 or newer installed.
>

That was very helpful. Thank you.
The docs are "thin" but present.

New Problem:

irb can't see it.

require 'calendar_grid'
returns
LoadError: no such file to load -- calendar_grid
from (irb):3:in `require'
from (irb):3
from :0

So this kind of sucks. I made the assumption that it would just work.
I'll assume there is some path that's fuggered up. I'll think about
fixing it later, it's an annoyance. But the other question that came up
while I was staring at this is:
if I install 'calendar_grid' then how am I supposed to know that the
object name is 'CalendarGrid' and how do you keep the two in your head
for the 100's of objects?
I found it by reading the source file of the gem I installed.

Chad Fowler

7/30/2006 3:07:00 PM

0

On 7/30/06, Tom Allison <tallison@tacocat.net> wrote:
> Eric Hodel wrote:
> > On Jul 29, 2006, at 5:23 PM, Tom Allison wrote:
> >
> >> Something can't be right....
> >>
> >> notebook:~# gem install calendar_grid
> >> Install required dependency activesupport? [Yn] Y
> >> Successfully installed calendar_grid-1.0.2
> >> Successfully installed activesupport-1.3.1
> >> Installing ri documentation for calendar_grid-1.0.2...
> >> Installing ri documentation for activesupport-1.3.1...
> >> Installing RDoc documentation for calendar_grid-1.0.2...
> >> Installing RDoc documentation for activesupport-1.3.1...
> >>
> >>
> >>
> >> ri CalendarGrid returns nothing. So where would the docs be?
> >
> > Use gemri unless you have 1.8.5p1 or newer installed.
> >
>
> That was very helpful. Thank you.
> The docs are "thin" but present.
>
> New Problem:
>
> irb can't see it.
>
> require 'calendar_grid'
> returns
> LoadError: no such file to load -- calendar_grid
> from (irb):3:in `require'
> from (irb):3
> from :0
>

Try adding:

require 'rubygems'



--
Chad Fowler
http://chad...
http://pragmaticprogrammer.com/tit... (Rails Recipes)
http://pragmaticprogrammer.com/tit... (My Job Went to India,
and All I Got Was This Lousy Book)
http://rubyc...
http://ruby...
http://rubygems.rub... (over four million gems served!)