Permalink
Browse files

Use % instead of : for windows compatibility

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1777 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
1 parent 09134d5 commit b7ff40b6d54bf09f523a47a410a86bceca121402 drbrain committed Jun 17, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rubygems/spec_fetcher.rb
  2. +1 −1 test/test_gem_spec_fetcher.rb
@@ -50,7 +50,7 @@ def initialize
# Retuns the local directory to write +uri+ to.
def cache_dir(uri)
- File.join @dir, "#{uri.host}:#{uri.port}", File.dirname(uri.path)
+ File.join @dir, "#{uri.host}%#{uri.port}", File.dirname(uri.path)
end
##
@@ -272,7 +272,7 @@ def test_load_specs
assert_equal expected, specs
- cache_dir = File.join Gem.user_home, '.gem', 'specs', 'gems.example.com:80'
+ cache_dir = File.join Gem.user_home, '.gem', 'specs', 'gems.example.com%80'
assert File.exist?(cache_dir)
cache_file = File.join cache_dir, "specs.#{Gem.marshal_version}"

0 comments on commit b7ff40b

Please sign in to comment.