> > def dir
> > ### Debian ###
> > [EMAIL PROTECTED] ||= nil
> > set_home(ENV['GEM_HOME']) if ENV['GEM_HOME']
> > @gem_home ||= File.join("/var/lib/gems",
> > Config::CONFIG['ruby_version'])
> > #set_home(ENV['GEM_HOME'] || default_dir) unless @gem_home
> > ##############
> > @gem_home
> > end
>
> I can't believe that they did that. There's better ways to do this
> than they did.
I'd be interested in hearing what the better ways are.
A few weeks ago I was looking to set up ruby on a windows box, and I wanted to
have gems install into a directory outside of the ruby install directory (so
they'd stay around when I upgraded ruby), and I ended up using the Debian hack
because I couldn't find anything better.
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers