1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Import RubyGems 1.0.0, r1575

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2007-12-20 08:39:12 +00:00
parent 40d8543fbd
commit 8289771e32
47 changed files with 1170 additions and 1010 deletions

View file

@ -34,7 +34,12 @@ class TestGemCommandsMirrorCommand < RubyGemTestCase
File.open File.join(Gem.user_home, '.gemmirrorrc'), 'w' do |fp|
fp.puts "---"
fp.puts "- from: file://#{@tempdir}"
# tempdir could be a drive+path (under windows)
if @tempdir.match(/[a-z]:/i)
fp.puts "- from: file:///#{@tempdir}"
else
fp.puts "- from: file://#{@tempdir}"
end
fp.puts " to: #{mirror}"
end
@ -42,9 +47,9 @@ class TestGemCommandsMirrorCommand < RubyGemTestCase
@cmd.execute
end
assert File.exist?(File.join(mirror, 'gems', "#{@a0_0_1.full_name}.gem"))
assert File.exist?(File.join(mirror, 'gems', "#{@a0_0_2.full_name}.gem"))
assert File.exist?(File.join(mirror, 'gems', "#{@b0_0_2.full_name}.gem"))
assert File.exist?(File.join(mirror, 'gems', "#{@a1.full_name}.gem"))
assert File.exist?(File.join(mirror, 'gems', "#{@a2.full_name}.gem"))
assert File.exist?(File.join(mirror, 'gems', "#{@b2.full_name}.gem"))
assert File.exist?(File.join(mirror, 'gems', "#{@c1_2.full_name}.gem"))
assert File.exist?(File.join(mirror, "Marshal.#{@marshal_version}"))
ensure