[Rubygems-developers] [ rubygems-Bugs-28049 ] GEM_HOME or XDG_CACHE_HOME should be used instead of $HOME/.gem

noreply at rubyforge.org noreply at rubyforge.org
Sat Apr 3 08:54:25 EDT 2010


Bugs item #28049, was opened at 2010-04-03 12:54
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28049&group_id=126

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Gioele Barabucci (gioele)
Assigned to: Nobody (None)
Summary: GEM_HOME or XDG_CACHE_HOME should be used instead of $HOME/.gem

Initial Comment:
The last few versions of rubygems started using the ~/.gem/ directory, cluttering the $HOME directory.

The files currently found in ~/.gem/ should be placed somewhere under the $GEM_HOME directory (if specified).

Otherwise, those files could be saved in $XDG_DATA_HOME or $XDG_CONFIG_HOME as described in the XDG Base Directory Specification:
<http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>. This article <http://ploum.frimouvy.org/?207-modify-your-application-to-use-xdg-folders> explains the importance of following the XDG Base Directory Specification.

  $ gem env
  RubyGems Environment:
    - RUBYGEMS VERSION: 1.3.6
    - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
    - INSTALLATION DIRECTORY: /home/gioele/foo_bar/ruby/gems
    - RUBYGEMS PREFIX: /home/gioele/foo_bar/ruby
    - RUBY EXECUTABLE: /usr/bin/ruby1.8
    - EXECUTABLE DIRECTORY: /home/gioele/foo_bar/ruby/gems/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-linux
    - GEM PATHS:
       - /home/gioele/foo_bar/ruby/gems
       - /home/gioele/.gem/ruby/1.8
       - /usr/lib/ruby/gems/1.8
    - GEM CONFIGURATION:
       - :update_sources => true
       - :verbose => true
       - :benchmark => false
       - :backtrace => false
       - :bulk_threshold => 1000
       - :sources => ["http://gems.rubyforge.org/"]
    - REMOTE SOURCES:
       - http://gems.rubyforge.org/


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

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


More information about the Rubygems-developers mailing list