mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to RubyGems 0.9.5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cae4fb76dc
commit
db74541efe
19 changed files with 275 additions and 95 deletions
|
@ -22,13 +22,13 @@ class Gem::Indexer::QuickIndexBuilder < Gem::Indexer::AbstractIndexBuilder
|
|||
end
|
||||
|
||||
def add(spec)
|
||||
@file.puts spec.full_name
|
||||
@file.puts spec.original_name
|
||||
add_yaml(spec)
|
||||
add_marshal(spec)
|
||||
end
|
||||
|
||||
def add_yaml(spec)
|
||||
fn = File.join @directory, "#{spec.full_name}.gemspec.rz"
|
||||
fn = File.join @directory, "#{spec.original_name}.gemspec.rz"
|
||||
zipped = zip spec.to_yaml
|
||||
File.open fn, "wb" do |gsfile| gsfile.write zipped end
|
||||
end
|
||||
|
@ -38,7 +38,7 @@ class Gem::Indexer::QuickIndexBuilder < Gem::Indexer::AbstractIndexBuilder
|
|||
FileUtils.mkdir_p File.join(@directory, "Marshal.#{Gem.marshal_version}")
|
||||
|
||||
fn = File.join @directory, "Marshal.#{Gem.marshal_version}",
|
||||
"#{spec.full_name}.gemspec.rz"
|
||||
"#{spec.original_name}.gemspec.rz"
|
||||
|
||||
zipped = zip Marshal.dump(spec)
|
||||
File.open fn, "wb" do |gsfile| gsfile.write zipped end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue