On 10/19/07, Trans <[EMAIL PROTECTED]> wrote:
> On 10/19/07, Eric Hodel <[EMAIL PROTECTED]> wrote:
> > What code are you looking at? Gem.path is not hard coded.
> Ah!!!!!!! Now I realize... whoever did the .deb jerry'd it!
>
> # The directory path where Gems are to be installed.
> #
> # Debian patch: search order of this directory.
> # 1. GEM_HOME enviroment variable
> # (Using this, Gems are to be installed in any path as you like)
> # 2. /var/lib/gems (This is the default path in Debian system)
> #
> # return:: [String] The directory path
> #
> 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.
-austin
--
Austin Ziegler * [EMAIL PROTECTED] * http://www.halostatue.ca/
* [EMAIL PROTECTED] * http://www.halostatue.ca/feed/
* [EMAIL PROTECTED]
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers