mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
db74541efe
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
17 lines
385 B
Ruby
17 lines
385 B
Ruby
require 'rubygems/indexer'
|
|
|
|
# Construct the master Gem index file.
|
|
class Gem::Indexer::MarshalIndexBuilder < Gem::Indexer::MasterIndexBuilder
|
|
def end_index
|
|
gems = {}
|
|
index = Gem::SourceIndex.new
|
|
|
|
@index.each do |name, gemspec|
|
|
gems[gemspec.original_name] = gemspec
|
|
end
|
|
|
|
index.instance_variable_get(:@gems).replace gems
|
|
|
|
@file.write index.dump
|
|
end
|
|
end
|