Permalink
Browse files

Remove call to Gem.host for RubyGems 1.3.7 support

  • Loading branch information...
1 parent f649cbc commit 05c0bc72ddd6acffcf570ca56fb3f740969a3309 @sferik sferik committed Jan 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/gems/configuration.rb
View
6 lib/gems/configuration.rb
@@ -14,13 +14,13 @@ module Configuration
]
# Set the default API endpoint
- DEFAULT_HOST = ENV['RUBYGEMS_HOST'] ? ENV['RUBYGEMS_HOST'].freeze : Gem.host.freeze
+ DEFAULT_HOST = ENV['RUBYGEMS_HOST'] ? ENV['RUBYGEMS_HOST'] : "https://rubygems.org"
# Set the default credentials
- DEFAULT_KEY = Gem.configuration.rubygems_api_key.freeze
+ DEFAULT_KEY = Gem.configuration.rubygems_api_key
# Set the default 'User-Agent' HTTP header
- DEFAULT_USER_AGENT = "Gems #{Gems::VERSION}".freeze
+ DEFAULT_USER_AGENT = "Gems #{Gems::VERSION}"
attr_accessor *VALID_OPTIONS_KEYS

0 comments on commit 05c0bc7

Please sign in to comment.