[ANN] RubyGems 0.8.5

It was actually gone in CVS before Francis's email came through :slight_smile: Good catch.

ยทยทยท

On Thu, 3 Mar 2005 09:39:06 +0900, Jim Weirich <jim@weirichhouse.org> wrote:

On Wednesday 02 March 2005 05:46 pm, Francis Hwang wrote:
> > C:\>gem -v
> > Config file /.gemrc does not exist
> > 0.8.6
>
> Maybe there was discussion of this already and I missed it, but: Is it
> planned to leave that warning in by default? Seems to me that's the
> sort of thing to just skip silently. I don't get warnings if I'm not
> using an .emacsrc, for example.

That one slipped by me. All my machines have a .gemrc file so I didn't
realized that it was printing the warning. That will come out in the next
release.

--

Chad Fowler
http://chadfowler.com

http://rubygems.rubyforge.org (over 100,000 gems served!)

Hi,

Jim Weirich wrote:

RubyGems checks for the following environment variables in searching for a home directory:

   ENV['HOME']
   ENV['USERPROFILE']
   ENV['HOMEDRIVE']:ENV['HOMEPATH']

If none the above are defined, it tries to expand "~". If that fails, it defaults to "C:/" on windows and "/" otherwise.

I get the same result even though ENV['USERPROFILE'] and
ENV['HOMEDRIVE']+ENV['HOMEPATH'] are defined and have the same value.

I'm not sure why it is not picking it up your situation. Hmmmm.

Thanks for your attention,
-- shanko

Hmmmm ... I double checked the code again. It seems that we very carefully
check all the environment variables I mention above when we look for a
location to put the source index cache, but not when we look for the .gemrc
file.

I've fixed this in CVS.

In the mean time, you can set HOME if you want your .gemrc file in a location
other than c:\.

ยทยทยท

On Sunday 27 February 2005 09:14 pm, Shashank Date wrote:

Hi,

Jim Weirich wrote:
> RubyGems checks for the following environment variables in searching for
> a home directory:
>
> ENV['HOME']
> ENV['USERPROFILE']
> ENV['HOMEDRIVE']:ENV['HOMEPATH']
>
> If none the above are defined, it tries to expand "~". If that fails, it
> defaults to "C:/" on windows and "/" otherwise.

I get the same result even though ENV['USERPROFILE'] and
ENV['HOMEDRIVE']+ENV['HOMEPATH'] are defined and have the same value.

--
-- Jim Weirich jim@weirichhouse.org http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)