Permalink
Browse files

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

  • Loading branch information...
1 parent 8636192 commit 8b5a58a0636aa48b947bf443afa22763590c909d @sferik committed Jul 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 8b5a58a

Please sign in to comment.