Re: Re: How do I install this gem?

Peter Vandenabeele
Wed, 01 Feb 2012 10:04:32 -0000

On Wed, Feb 1, 2012 at 8:35 AM, Robert Walker
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:

> Paet Worlds II wrote in post #1043392:
> > gem install nifty-generators
> >
> >
> > And this is what I get:
> >
> >
> > Successfully installed nifty-generators-0.4.6
> > 1 gem installed
> > Installing ri documentation for nifty-generators-0.4.6...
> > ERROR:  While generating documentation for nifty-generators-0.4.6
> > ... MESSAGE:   Invalid argument - ./</cdesc-<.ri
> > ... RDOC args: --ri --op
> > C:/Ruby193/lib/ruby/gems/1.9.1/doc/nifty-generators-0.4
> > .6/ri lib --title nifty-generators-0.4.6 Documentation --quiet
>
> It''s only failing to install the docs. Either add the option to
gem
> install to skip the docs, or do the actual right thing and put the gem
> in your Gemfile and use bundler to install. That will automatically skip
> installing the docs. The docs you probably won''t use anyway.
>

An alternative for this strategy is to install a .gemrc in your homedir.

~$ cat ~/.gemrc
---
gem: --no-ri --no-rdoc
:benchmark: false
:update_sources: true
:bulk_threshold: 1000
:backtrace: false
:verbose: true
:sources:
- http://rubygems.org


HTH,

Peter