mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import rubygems 1.8.5 (released @ 137c80f)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4752539e3f
commit
d22130922e
103 changed files with 4890 additions and 3599 deletions
|
@ -42,12 +42,11 @@ class TestGemCommandsSourcesCommand < Gem::TestCase
|
|||
def test_execute_add
|
||||
util_setup_fake_fetcher
|
||||
|
||||
si = Gem::SourceIndex.new
|
||||
si.add_spec @a1
|
||||
install_specs @a1
|
||||
|
||||
specs = si.map do |_, spec|
|
||||
specs = Gem::Specification.map { |spec|
|
||||
[spec.name, spec.version, spec.original_platform]
|
||||
end
|
||||
}
|
||||
|
||||
specs_dump_gz = StringIO.new
|
||||
Zlib::GzipWriter.wrap specs_dump_gz do |io|
|
||||
|
@ -187,18 +186,18 @@ beta-gems.example.com is not a URI
|
|||
@cmd.handle_options %w[--update]
|
||||
|
||||
util_setup_fake_fetcher
|
||||
source_index = util_setup_spec_fetcher @a1
|
||||
util_setup_spec_fetcher @a1
|
||||
|
||||
specs = source_index.map do |name, spec|
|
||||
specs = Gem::Specification.map { |spec|
|
||||
[spec.name, spec.version, spec.original_platform]
|
||||
end
|
||||
}
|
||||
|
||||
@fetcher.data["#{@gem_repo}specs.#{Gem.marshal_version}.gz"] =
|
||||
util_gzip Marshal.dump(specs)
|
||||
|
||||
latest_specs = source_index.latest_specs.map do |spec|
|
||||
latest_specs = Gem::Specification.latest_specs.map { |spec|
|
||||
[spec.name, spec.version, spec.original_platform]
|
||||
end
|
||||
}
|
||||
|
||||
@fetcher.data["#{@gem_repo}latest_specs.#{Gem.marshal_version}.gz"] =
|
||||
util_gzip Marshal.dump(latest_specs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue