End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem.find_config_file
find_config_file
lib/rubygems/defaults.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/defaults.rb, line 120
def self.find_config_file
gemrc = File.join Gem.user_home, ".gemrc"
if File.exist? gemrc
gemrc
else
File.join Gem.config_home, "gem", "gemrc"
end
end
Finds the user’s config file
See also
.env_requirement
.find_files
.ensure_gem_subdirectories
.find_home
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0