mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: update to 1.3.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
65544f575b
commit
b551e8c8b3
119 changed files with 2735 additions and 2613 deletions
|
@ -51,7 +51,7 @@ Multiple sources and destinations may be specified.
|
|||
Dir.mkdir gems_dir
|
||||
end
|
||||
|
||||
sourceindex_data = ''
|
||||
source_index_data = ''
|
||||
|
||||
say "fetching: #{get_from}/Marshal.#{Gem.marshal_version}.Z"
|
||||
|
||||
|
@ -70,18 +70,18 @@ Multiple sources and destinations may be specified.
|
|||
end
|
||||
|
||||
open File.join(get_from.to_s, "Marshal.#{Gem.marshal_version}.Z"), "rb" do |y|
|
||||
sourceindex_data = Zlib::Inflate.inflate y.read
|
||||
source_index_data = Zlib::Inflate.inflate y.read
|
||||
open File.join(save_to, "Marshal.#{Gem.marshal_version}"), "wb" do |out|
|
||||
out.write sourceindex_data
|
||||
out.write source_index_data
|
||||
end
|
||||
end
|
||||
|
||||
sourceindex = Marshal.load(sourceindex_data)
|
||||
source_index = Marshal.load source_index_data
|
||||
|
||||
progress = ui.progress_reporter sourceindex.size,
|
||||
"Fetching #{sourceindex.size} gems"
|
||||
sourceindex.each do |fullname, gem|
|
||||
gem_file = "#{fullname}.gem"
|
||||
progress = ui.progress_reporter source_index.size,
|
||||
"Fetching #{source_index.size} gems"
|
||||
source_index.each do |fullname, gem|
|
||||
gem_file = gem.file_name
|
||||
gem_dest = File.join gems_dir, gem_file
|
||||
|
||||
unless File.exist? gem_dest then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue