End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::GemcutterUtilities#host
host
lib/rubygems/gemcutter_utilities.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/gemcutter_utilities.rb, line 66
def host
configured_host = Gem.host unless
Gem.configuration.disable_default_gem_server
@host ||=
begin
env_rubygems_host = ENV["RUBYGEMS_HOST"]
env_rubygems_host = nil if
env_rubygems_host && env_rubygems_host.empty?
env_rubygems_host || configured_host
end
end
The host to connect to either from the RUBYGEMS_HOST environment variable or from the user’s configuration
See also
#get_user_profile
#mfa_unauthorized?
#get_scope_params
#otp
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0