[Rubygems-developers] [ rubygems-Bugs-23429 ] gem cache goes to wrong drive in windows if ruby is run from a non C drive

noreply at rubyforge.org noreply at rubyforge.org
Sat May 2 18:53:18 EDT 2009


Bugs item #23429, was opened at 2009-01-03 20:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=23429&group_id=126

Category: other
>Group: v1.3.x
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Roger Pack (rogerdpack)
Assigned to: Luis Lavena (luislavena)
Summary: gem cache goes to wrong drive in windows if ruby is run from a non C drive

Initial Comment:
After running a rails project from
g:\something
I got this directory tree:
G:\Documents and Settings\Melissa.BLACKY\.gem\ruby\1.8\specifications
where 
C:\Documents and Settings\Melissa.BLACKY\.gem\ruby\1.8\specifications

is I think where it actually wanted to save it.
thoughts?
-=r

----------------------------------------------------------------------

>Comment By: Eric Hodel (drbrain)
Date: 2009-05-02 15:53

Message:
Closing since this works for us.

----------------------------------------------------------------------

Comment By: Luis Lavena (luislavena)
Date: 2009-03-14 09:35

Message:
Yes, my user profile and home is located there.

This is my gem env information, after unsetting HOME, HOMEDRIVE and HOMEPATH:

Luis at KEORE (D:\Users\Luis)
$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.1
  - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/Ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/Ruby/lib/ruby/gems/1.8
     - C:/Documents and Settings/Luis/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/

Installed progressbar gem in that drive:

Luis at KEORE (D:\Users\Luis)
$ gem install progressbar
Successfully installed progressbar-0.0.3
1 gem installed
Updating ri class cache with 153 classes...


And took a look into the root of D:\ to see if a new folder was created:

Luis at KEORE (D:\Users\Luis)
$ dir d:\
 Volume in drive D is Data
 Volume Serial Number is 54C3-9D4F

 Directory of d:\

[Downloads] [Temp]      [Users]
               0 File(s)              0 bytes
               3 Dir(s)  98,614,943,744 bytes free

So, if you provide the "gem env" output will be easier for me replicate your setup.


----------------------------------------------------------------------

Comment By: Roger Pack (rogerdpack)
Date: 2009-03-14 09:24

Message:
did you try installing a new gem within D: maybe?

----------------------------------------------------------------------

Comment By: Luis Lavena (luislavena)
Date: 2009-03-14 09:22

Message:
Can you provide the output of gem env here?

I've put Ruby in C: and put a Rails application in D and couldn't replicate this.

Thank you.

----------------------------------------------------------------------

Comment By: Roger Pack (rogerdpack)
Date: 2009-01-05 07:39

Message:
just copied a rails app from c:\something to g:\something, 
ran it from there [i.e. ruby script\server] and that 
directory popped up :)

----------------------------------------------------------------------

Comment By: Daniel Berger (djberg96)
Date: 2009-01-04 05:52

Message:
What do you mean by "running a rails project"? You mean you did a 'gem install rails' from the G:\ drive? Or simply running 'ruby script/server' within a Rails project caused that directory to be created?

Regards,

Dan

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=23429&group_id=126


More information about the Rubygems-developers mailing list