Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Gem.host instead of literal https://rubygems.org

  • Loading branch information...
commit 8b5a58a0636aa48b947bf443afa22763590c909d 1 parent 8636192
@sferik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gems/configuration.rb
View
2  lib/gems/configuration.rb
@@ -20,7 +20,7 @@ module Configuration
DEFAULT_FORMAT = :json.freeze
# Set the default API endpoint
- DEFAULT_HOST = ENV['RUBYGEMS_HOST'] ? ENV['RUBYGEMS_HOST'].freeze : 'https://rubygems.org'.freeze
+ DEFAULT_HOST = ENV['RUBYGEMS_HOST'] ? ENV['RUBYGEMS_HOST'].freeze : Gem.host.freeze
# Set the default credentials
DEFAULT_KEY = Gem.configuration.rubygems_api_key.freeze
Please sign in to comment.
Something went wrong with that request. Please try again.