Skip to content

Commit

Permalink
Use Gem.host instead of literal https://rubygems.org
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jul 3, 2011
1 parent 8636192 commit 8b5a58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gems/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b5a58a

Please sign in to comment.