[Rubygems-developers] [ rubygems-Bugs-27366 ] gem env command doesn't display ~/.gem as a gem path

noreply at rubyforge.org noreply at rubyforge.org
Thu Apr 22 00:06:12 EDT 2010


Bugs item #27366, was opened at 2009-10-28 09:24
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27366&group_id=126

Category: `gem` commands (other)
>Group: v1.3.x
Status: Open
Resolution: None
>Priority: 1
Submitted By: Roger Pack (rogerdpack)
>Assigned to: Eric Hodel (drbrain)
Summary: gem env command doesn't display ~/.gem as a gem path

Initial Comment:
Currently gem treats ~/.gem as a gem path, however running gem env doesn't hint at that fact.

rdp at li49-39:~/dev/downloads/rubygems-1.3.5$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.8.6 (2009-3-4 patchlevel 287) [i686-linux]
  - INSTALLATION DIRECTORY: /home/rdp/dev/downloads/rubygems-1.3.5
  - RUBY EXECUTABLE: /usr/local/bin/ruby
  - EXECUTABLE DIRECTORY: /home/rdp/dev/downloads/rubygems-1.3.5/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /home/rdp/dev/downloads/rubygems-1.3.5
  - GEM CONFIGURATION:
      ...

Thanks!
-r

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

>Comment By: Eric Hodel (drbrain)
Date: 2010-04-21 21:06

Message:
Mine shows ~/.gem as well.  I cannot reproduce.

gem env gemdir is the same as GEM_HOME

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

Comment By: Daniel Berger (djberg96)
Date: 2009-10-28 10:51

Message:
Hm, mine did on Snow Leopard:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/local/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-darwin-10
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/1.8
     - /Users/dberger/.gem/ruby/1.8
 ...

Interestingly, when I run "gem env gempath" it only shows my .gem path, while "gem env gemdir" only shows the /usr/local/lib path. Intentional? Not sure.

Not sure what to make of this yet.

Regards,

Dan

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

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


More information about the Rubygems-developers mailing list