diff options
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 73321ec47b..5026fc41e6 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -338,13 +338,6 @@ module Gem end ## - # The path to standard location of the user's .gemrc file. - - def self.config_file - @config_file ||= File.join Gem.user_home, '.gemrc' - end - - ## # The standard configuration object for gems. def self.configuration @@ -558,33 +551,6 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} end ## - # Finds the user's home directory. - #-- - # Some comments from the ruby-talk list regarding finding the home - # directory: - # - # I have HOME, USERPROFILE and HOMEDRIVE + HOMEPATH. Ruby seems - # to be depending on HOME in those code samples. I propose that - # it should fallback to USERPROFILE and HOMEDRIVE + HOMEPATH (at - # least on Win32). - #++ - #-- - # - #++ - - def self.find_home - Dir.home.dup - rescue - if Gem.win_platform? - File.expand_path File.join(ENV['HOMEDRIVE'] || ENV['SystemDrive'], '/') - else - File.expand_path "/" - end - end - - private_class_method :find_home - - ## # Top level install helper method. Allows you to install gems interactively: # # % irb @@ -1057,13 +1023,6 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} end ## - # The home directory for the user. - - def self.user_home - @user_home ||= find_home.tap(&Gem::UNTAINT) - end - - ## # Is this a windows platform? def self.win_platform? |